/* KUYANA - Servicios: UX refresh */
:root {
  --brand-900: #0b1f2a;
  --brand-800: #0b2d3c;
  --brand-teal: #0b6d8a;
  --brand-green: #1fbf7a;
  --brand-700: #0b6d8a;
  --brand-600: #12a89a;
  --brand-500: #1fbf7a;
  --bg: #f5f9fc;
  --surface: #ffffff;
  --surface-muted: #f0f6fb;
  --border: #e1e9f2;
  --muted: #5e6b79;
  --shadow-sm: 0 10px 24px rgba(12, 30, 50, 0.08);
  --shadow-md: 0 18px 50px rgba(12, 30, 50, 0.12);
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Manrope", "Poppins", sans-serif;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(31, 191, 122, 0.18), transparent 55%),
    radial-gradient(700px 420px at 80% 100%, rgba(31, 191, 122, 0.12), transparent 60%),
    linear-gradient(180deg, #f9fbff 0%, #eef4fb 100%);
  color: var(--brand-900);
  overflow-x: hidden;
  margin: 0;
}

a {
  text-decoration: none;
}

.services-main {
  position: relative;
  z-index: 1;
}

/* --- NAVBAR --- */
.navbar-custom {
  background: rgba(5, 20, 35, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.navbar-custom .nav-link {
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 600;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: #ffffff !important;
}

.navbar-custom .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.navbar-custom .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-gradient {
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-green));
  color: #ffffff;
  border: none;
  box-shadow: 0 12px 24px rgba(11, 109, 138, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-gradient:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(11, 109, 138, 0.3);
}

/* --- SECCION SERVICIOS --- */
.servicios {
  position: relative;
  padding: 140px 0 110px;
}

.servicios::before {
  content: "";
  position: absolute;
  inset: -120px 0 auto 0;
  height: 380px;
  background: radial-gradient(600px 240px at 15% 20%, rgba(20, 184, 166, 0.18), transparent 70%),
    radial-gradient(600px 240px at 85% 10%, rgba(31, 191, 122, 0.2), transparent 70%);
  pointer-events: none;
}

.servicios .container {
  position: relative;
  z-index: 1;
}

.servicios-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(31, 191, 122, 0.35);
  background: linear-gradient(135deg, rgba(11, 109, 138, 0.14), rgba(31, 191, 122, 0.18));
  color: var(--brand-green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.servicios h2 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--brand-900);
  margin: 16px 0 12px;
  letter-spacing: -0.02em;
}

.subtitulo {
  color: var(--muted);
  margin: 0 auto 24px;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 620px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid rgba(31, 191, 122, 0.18);
  border-radius: 999px;
  color: var(--brand-900);
  font-size: 0.92rem;
  box-shadow: 0 10px 24px rgba(12, 30, 50, 0.06);
}

.trust-item i {
  color: var(--brand-green);
  font-size: 0.95rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* --- TARJETAS --- */
.card-servicio {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  min-height: 320px;
}

.card-servicio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(11, 109, 138, 0.9), rgba(31, 191, 122, 0.9));
}

.card-servicio::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  top: -80px;
  right: -80px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}

.card-servicio:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(31, 191, 122, 0.28);
}

.card-servicio:hover::after {
  opacity: 1;
}

.icon-servicio {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-green));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 12px 24px rgba(11, 109, 138, 0.25);
  position: relative;
  z-index: 1;
}

.card-servicio:nth-child(even) .icon-servicio {
  background: linear-gradient(135deg, #0fb7a7, #22c55e);
}

.icon-servicio::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  border: 1px solid rgba(31, 191, 122, 0.22);
  opacity: 0.85;
}

.card-servicio h5 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-900);
  margin: 0;
}

.card-servicio p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}

.btn-servicio {
  margin-top: auto;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-green));
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(11, 109, 138, 0.2);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.card-servicio:nth-child(even) .btn-servicio {
  background: linear-gradient(135deg, var(--brand-green), #22c55e);
}

.btn-servicio:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #0a5f78, #17a26a);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(11, 109, 138, 0.28);
}

/* --- BANNER SEGURIDAD --- */
.security-banner {
  margin-top: 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.security-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-teal), var(--brand-green));
}

.security-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.security-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-green));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 10px 20px rgba(11, 109, 138, 0.25);
}

.security-banner h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-900);
}

.security-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 520px;
}

.security-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-security {
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-green));
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(11, 109, 138, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-security:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(11, 109, 138, 0.28);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--brand-900);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  background: #ffffff;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn-ghost:hover {
  border-color: rgba(11, 109, 138, 0.3);
  color: var(--brand-700);
  box-shadow: 0 10px 20px rgba(12, 30, 50, 0.08);
}

/* --- FOOTER --- */
.footer-tech {
  background: #0a1b2a;
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 80px;
}

.footer-tech a {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 10px;
  font-size: 1.2rem;
  transition: color var(--transition), transform var(--transition);
}

.footer-tech a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .security-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .servicios {
    padding: 120px 0 90px;
  }

  .servicios-head {
    margin-bottom: 36px;
  }

  .card-servicio {
    padding: 26px;
  }

  .trust-item {
    font-size: 0.88rem;
  }
}
