:root {
  --primary: #002664;     /* navy principal: recuadros, botones, titulos, footer */
  --secondary: #f27663;   /* salmon secundario: efecto hover, acentos */
  --tertiary: #ffb558;    /* ambar terciario: acentos calidos */
  --dark: #002664;
  --ink: #002664;         /* color de titulos */
  --text: #5a6478;        /* texto de parrafos */
  --gray: #6b7280;
  --light: #f5f7fa;       /* gris de las secciones (rgb 245,247,250, igual al tema) */
  --border: #e2e8f0;
  --radius: 16px;
  --radius-lg: 30px;
  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: #fff;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { color: var(--ink); }

a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.center { text-align: center; }

/* ---------- Franjas diagonales (decoracion de fondo, como el tema de referencia) ----------
   Igual que Wexico: un unico SVG (icon-section-bg.svg) con los dos slashes,
   usado como background-image anclado abajo-izquierda. */
.franjas {
  position: relative;
  background-image: url("/images/icon-section-bg.svg");
  background-repeat: no-repeat;
  background-position: 30px 100%;
  background-size: 270px;
}

/* ---------- Botones (pildora con flecha) ---------- */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn::after {
  content: "↗";
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .22);
  font-size: 1rem;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

/* Boton primario: navy en reposo, barrido salmon (::before) de izq. a der. al hover */
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 26px -12px rgba(0, 38, 100, .55);
  transition: background .45s ease-in-out, transform .15s ease, box-shadow .15s ease;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  background: var(--secondary);
  z-index: -1;
  transition: width .4s ease-in-out;
}
.btn-primary:hover { background: var(--secondary); }
.btn-primary:hover::before { width: 106%; }

/* Boton invertido: salmon en reposo, barrido navy al hover (igual que WhatsApp pero al revés) */
.btn-accent {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 14px 26px -12px rgba(242, 118, 99, .55);
  transition: background .45s ease-in-out, transform .15s ease, box-shadow .15s ease;
}
.btn-accent::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  background: var(--primary);
  z-index: -1;
  transition: width .4s ease-in-out;
}
.btn-accent:hover { background: var(--primary); }
.btn-accent:hover::before { width: 106%; }

.btn-soft {
  background: color-mix(in srgb, var(--secondary) 16%, #fff);
  color: var(--secondary);
}
.btn-soft::after { background: color-mix(in srgb, var(--secondary) 22%, #fff); }
.btn-soft:hover { background: color-mix(in srgb, var(--secondary) 24%, #fff); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}
.brand-name { font-weight: 800; font-size: 1.3rem; color: var(--primary); }
.brand-logo { max-height: 62px; width: auto; }
.brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a { color: var(--primary); font-weight: 500; }
.nav-links a:hover { color: var(--secondary); text-decoration: none; }

/* ---------- Barra superior (contacto + redes) ---------- */
.top-bar { background: var(--primary); color: #c2cbde; font-size: .82rem; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 1rem; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 1.7rem; }
.top-bar a, .top-bar .tb-item { display: inline-flex; align-items: center; gap: .45rem; color: #c2cbde; }
.top-bar a:hover { color: #fff; text-decoration: none; }
.tb-ic { display: inline-flex; color: var(--secondary); flex: 0 0 auto; }
.tb-ic svg { width: 15px; height: 15px; }
.tb-social { display: inline-flex; gap: .5rem; }
.tb-social a { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; color: #fff; }
.tb-social a:hover { background: var(--secondary); }
.nav-phone {
  display: inline-flex; align-items: center; gap: .55rem;
  background: color-mix(in srgb, var(--secondary) 10%, #fff);
  padding: .3rem .95rem .3rem .32rem;
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}
.nav-phone:hover { background: color-mix(in srgb, var(--secondary) 18%, #fff); text-decoration: none; transform: translateY(-1px); }
.nav-phone-ic {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--secondary); color: #fff;
  display: grid; place-items: center; flex: 0 0 auto;
}
.nav-phone-txt { display: flex; flex-direction: column; line-height: 1.05; }
.nav-phone-txt small { font-size: .66rem; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.nav-phone-txt strong { font-size: .92rem; color: var(--primary); font-weight: 700; }

.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- Hero (dividido: texto + cuadro coral) ---------- */
.hero {
  background-color: var(--light);
  margin: 1.25rem 1.5rem 0;
  border-radius: var(--radius-lg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 2.5rem 4.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.12;
  margin: 0 0 1.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero-sub {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--text);
  margin: 0 0 2rem;
  max-width: 540px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-media { display: flex; justify-content: center; }
.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1.02;
  background: var(--secondary);
  border-radius: 28px;
  display: grid;
  place-items: center;
  box-shadow: 0 28px 56px -26px rgba(242, 118, 99, .55);
}
/* La persona (recorte PNG) sobresale por arriba del recuadro */
.hero-cutout {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 116%;
  width: auto;
  max-width: 128%;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(0, 38, 100, .22));
}
.hero-photo-ph {
  color: rgba(255, 255, 255, .92);
  font-weight: 700;
  text-align: center;
  font-size: 1.15rem;
}
.hero-photo-ph small { font-weight: 500; opacity: .8; }

/* Badge "Corresponsal de SMS Latinoamérica" flotante, centrado bajo el recuadro */
.hero-sms-badge {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  z-index: 3;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 22px 44px -16px rgba(0, 38, 100, .42);
  padding: .85rem 1.9rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}
.hero-sms-label { font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray); }
.hero-sms-badge img { height: 48px; width: auto; display: block; }
.hero-cutout { z-index: 1; }

/* Pill flotante con la bandera de Panamá */
.hero-flag {
  position: absolute; top: 18px; left: -16px; z-index: 3;
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border-radius: 999px;
  padding: .42rem .95rem .42rem .45rem;
  box-shadow: 0 12px 26px -10px rgba(0, 38, 100, .35);
}
.hero-flag > img { width: 30px; height: 20px; border-radius: 4px; object-fit: cover; display: block; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.hero-flag > span { font-weight: 700; color: var(--primary); font-size: .85rem; }

/* ---------- Secciones ---------- */
.section { padding: 4.5rem 0; }
.section-alt {
  background-color: var(--light);
  border-radius: var(--radius-lg);
  margin: 1.5rem;
  padding: 4rem 0;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  margin: 0 0 2rem;
  letter-spacing: -0.5px;
}
.section-title.center { text-align: center; }

/* Eyebrow / etiqueta coral opcional sobre titulos */
.eyebrow {
  display: inline-block;
  color: var(--secondary);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

/* Nosotros */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-grid.has-image { grid-template-columns: 1.2fr 1fr; }
.about-media img { border-radius: var(--radius); box-shadow: 0 24px 48px -24px rgba(28,40,88,.35); }

/* Servicios */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.2rem 2rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(28,40,88,.3); }
.card-icon {
  font-size: 1.7rem;
  width: 66px; height: 66px;
  display: grid; place-items: center;
  margin-bottom: 1.2rem;
}
.svc-ico-img { width: 100%; height: 100%; object-fit: contain; }
.card h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.card p { margin: 0; color: var(--text); }

/* Galeria */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(28,40,88,.85));
  color: #fff; padding: 1.5rem .8rem .7rem; font-size: .9rem;
}

/* Contacto */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1.05fr; align-items: stretch; }
.contact-list { list-style: none; padding: 0; margin: 0; font-size: 1.1rem; }
.contact-list li { display: flex; gap: .7rem; align-items: center; padding: .5rem 0; }
.contact-list span { font-size: 1.2rem; }

/* Tarjetas de contacto */
.contact-info { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-item {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--light); border-radius: 16px; padding: 1.3rem 1.5rem;
}
.ci-ic {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--secondary); color: #fff;
  display: grid; place-items: center; flex: 0 0 auto;
}
.ci-ic svg { width: 22px; height: 22px; }
.contact-item h4 { margin: 0 0 .25rem; color: var(--primary); font-size: 1.02rem; }
.contact-item p { margin: 0; color: var(--text); }
.contact-item a { display: block; color: var(--text); }
.contact-item a:hover { color: var(--secondary); }
.contact-info .wa-btn { align-self: flex-start; margin-top: .5rem; }

.contact-map { border-radius: var(--radius); overflow: hidden; min-height: 460px; background: var(--light); }
.contact-map iframe, .contact-map :is(iframe) { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }

/* ---------- Utilidades de contenido ---------- */
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.15rem; color: var(--text); }
.center-block { display: block; text-align: center; }

/* Hero badge */
.hero-badge {
  display: inline-block;
  background: color-mix(in srgb, var(--tertiary) 28%, #fff);
  color: #8a5512;
  padding: .45rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .82rem;
  margin-bottom: 1.1rem;
}

/* Selector de idioma */
.lang-switch { display: inline-flex; align-items: center; gap: .15rem; font-weight: 700; font-size: .9rem; }
.lang-switch a { color: var(--gray); }
.lang-switch a.active { color: var(--primary); }
.lang-switch a:hover { color: var(--secondary); text-decoration: none; }
.lang-sep { color: var(--border); }

/* CFO Virtual */
.cfo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.cfo-items { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.cfo-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.3rem; }
.cfo-item h3 { margin: 0 0 .4rem; font-size: 1.05rem; color: var(--primary); }
.cfo-item p { margin: 0; color: var(--text); font-size: .95rem; }

/* Corresponsal (tarjeta centrada con logo protagonista) */
.corresponsal-card {
  position: relative;
  background-color: var(--light);
  border-radius: var(--radius-lg);
  padding: 3.6rem 2rem 3.9rem;
  text-align: center;
}
.corresponsal-card .section-title { text-align: center; margin-bottom: 1rem; }
.corresponsal-card .lead { max-width: 680px; margin: 0 auto 2.3rem; }
.corresponsal-logo-lg {
  display: inline-flex; align-items: center;
  background: #fff; border-radius: 18px;
  padding: 1.4rem 2.6rem;
  box-shadow: 0 22px 46px -18px rgba(0, 38, 100, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.corresponsal-logo-lg:hover { transform: translateY(-4px); box-shadow: 0 30px 54px -18px rgba(0, 38, 100, .36); }
.corresponsal-logo-lg img { height: 66px; width: auto; display: block; }

/* Encabezado de página interior */
.page-hero {
  background-color: var(--light);
  margin: 1.25rem 1.5rem 0;
  border-radius: var(--radius-lg);
  padding: 2.4rem 0 3rem;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0; color: var(--primary); letter-spacing: -.5px; }
.page-hero-sub { color: var(--text); max-width: 660px; margin: .9rem 0 0; font-size: 1.12rem; }
.page-hero-head { display: flex; gap: 2rem; align-items: center; justify-content: space-between; }
.page-hero-text { min-width: 0; }

/* Ícono a la derecha, en círculo, con aro coral que late y zoom al hover */
.page-hero-badge { position: relative; flex: 0 0 auto; width: 132px; height: 132px; }
.page-hero-badge::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: color-mix(in srgb, var(--secondary) 22%, #fff);
  animation: heroPulse 2.8s ease-in-out infinite;
}
.page-hero-icon {
  position: relative; z-index: 1;
  width: 132px; height: 132px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 16px 34px -18px rgba(0, 38, 100, .4);
  display: grid; place-items: center;
  font-size: 2.4rem;
  transition: transform .35s ease, box-shadow .35s ease;
}
.page-hero-icon .svc-ico-img { width: 58%; height: 58%; }
.page-hero-icon-svg { color: var(--secondary); }
.page-hero-icon-svg svg { width: 54px; height: 54px; }
.page-hero-badge:hover .page-hero-icon { transform: scale(1.06) rotate(-3deg); box-shadow: 0 22px 40px -18px rgba(0, 38, 100, .5); }
@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: .65; }
  50% { transform: scale(1.1); opacity: .3; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero-badge::before { animation: none; }
}
.breadcrumb { display: flex; gap: .5rem; font-size: .9rem; color: var(--gray); margin-bottom: 1.2rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb .current { color: var(--primary); font-weight: 600; }

/* Detalle de servicio */
.service-detail { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.service-body > p { font-size: 1.08rem; color: var(--text); }
.service-sub { margin-top: 2rem; color: var(--primary); }
.check-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.check-list li { padding-left: 1.8rem; position: relative; color: var(--text); }
.check-list li::before { content: "✔"; position: absolute; left: 0; color: var(--secondary); font-weight: 700; }
.service-cta { margin-top: 2rem; }
.service-aside { background: var(--light); border-radius: 18px; padding: 1.5rem; position: sticky; top: 100px; }
.service-aside h4 { margin: 0 0 1rem; color: var(--primary); }
.aside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.aside-list a { display: block; padding: .5rem .6rem; border-radius: 8px; color: var(--primary); font-size: .95rem; }
.aside-list a:hover { background: #fff; text-decoration: none; }
.aside-list li.active a { background: var(--secondary); color: #fff; }

/* Grid de 3 columnas */
.cards-3 { grid-template-columns: repeat(3, 1fr); }

/* Tarjeta de servicio (enlazable) */
.service-card {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 22px;
  padding: 2.3rem 2rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  text-decoration: none;
  transform: translateY(-8px);
  box-shadow: 0 32px 56px -30px rgba(0, 38, 100, .32);
  border-color: color-mix(in srgb, var(--secondary) 50%, #fff);
}
.service-card .card-icon {
  width: 74px; height: 74px;
  background: var(--light);
  border-radius: 18px;
  display: grid; place-items: center;
  margin-bottom: 1.3rem;
  transition: background .25s ease, transform .25s ease;
}
.service-card .card-icon img { width: 58%; height: 58%; object-fit: contain; }
.service-card:hover .card-icon {
  background: color-mix(in srgb, var(--secondary) 14%, #fff);
  transform: scale(1.06);
}
.service-card h3 { color: var(--primary); }
.card-link {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: 1.1rem; color: var(--secondary); font-weight: 700; font-size: .9rem;
  transition: gap .25s ease;
}
.service-card:hover .card-link { gap: .75rem; }

/* CTA contacto (tarjeta liviana con foto) */
.cta-light {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cta-light-media { position: relative; min-height: 300px; }
.cta-light-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-light-body { padding: 3rem 3.4rem; }
.cta-light-body .section-title { text-align: left; margin-bottom: .7rem; }
.cta-light-body .lead { margin-bottom: 0; max-width: 440px; }
.cta-light-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.7rem; }

.contact-list-lg li { font-size: 1.15rem; padding: .55rem 0; }
.contact-map-ph {
  background: var(--light); border-radius: var(--radius); min-height: 320px;
  display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--gray);
}

/* ---------- Menú desplegable de Servicios ---------- */
.nav-dropdown { position: relative; }
.nav-drop-toggle .caret { font-size: .7rem; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 4px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 22px 44px -22px rgba(0,0,0,.3);
  padding: .5rem; min-width: 260px; z-index: 70;
  display: none; flex-direction: column; gap: .1rem;
}
.nav-dropdown:hover .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: 9px; color: var(--primary); font-weight: 500; }
.nav-dropdown-menu a:hover { background: var(--light); color: var(--secondary); text-decoration: none; }
.dd-ic { font-size: 1.05rem; display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; }
.dd-ic .svc-ico-img { width: 24px; height: 24px; object-fit: contain; }

/* ---------- Página interior de servicio ---------- */
.service-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: stretch; /* la columna lateral se estira para que el sticky tenga recorrido */
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}
.service-main { min-width: 0; }
.service-block { margin-bottom: 3rem; }
.service-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2.5rem; }
.service-image img { width: 100%; height: auto; display: block; }
.img-ph {
  background: var(--light); border-radius: var(--radius-lg); aspect-ratio: 16 / 9;
  display: grid; place-items: center; color: var(--gray); text-align: center; font-weight: 600;
}
.img-ph.small { aspect-ratio: 4 / 3; }

/* Características */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.feature-card { background: var(--light); border-radius: 18px; padding: 1.6rem; }
.feature-icon, .process-icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--secondary); color: #fff;
  display: grid; place-items: center; margin-bottom: 1rem;
}
.feature-card h3, .process-card h3 { margin: 0 0 .4rem; color: var(--primary); font-size: 1.1rem; }
.feature-card p, .process-card p { margin: 0; color: var(--text); }

/* Proceso */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.process-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 1.6rem; }
.process-num { position: absolute; top: .9rem; right: 1.1rem; font-weight: 800; color: var(--border); font-size: 1.6rem; }

/* Beneficios: la imagen se ajusta a la altura del texto (equilibrado) */
.benefits-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.8rem; align-items: stretch; }
.benefits-media {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
}
.benefits-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.benefits-media .img-ph { position: absolute; inset: 0; }
.benefits-text { align-self: center; }

/* Sidebar sticky */
.sidebar-sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.2rem; }
.sidebar-card { border-radius: 20px; }
.sidebar-services { background: var(--light); padding: 1.5rem; }
.sidebar-services h4 { margin: 0 0 1rem; color: var(--primary); }
.sidebar-services ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.sidebar-services a {
  position: relative; overflow: hidden; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  background: #fff; border-radius: 10px; padding: .7rem .9rem;
  color: var(--primary); font-weight: 600; font-size: .92rem;
  transition: color .35s ease-in-out;
}
/* Mismo efecto "fill slide" que los botones: barrido salmón de izq. a der. */
.sidebar-services a::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 0;
  background: var(--secondary); z-index: -1; transition: width .4s ease-in-out;
}
.sidebar-services a:hover { color: #fff; text-decoration: none; }
.sidebar-services a:hover::before { width: 106%; }
.sidebar-services a .arr { color: var(--secondary); transition: color .35s ease-in-out; }
.sidebar-services a:hover .arr { color: #fff; }
.sidebar-services li.active a { background: var(--secondary); color: #fff; }
.sidebar-services li.active a .arr { color: #fff; }
.sidebar-help {
  position: relative;
  overflow: hidden;
  background-color: var(--primary);
  background-image: url("/images/icon-section-bg-light.svg");
  background-repeat: no-repeat;
  background-position: right -34px bottom -44px;
  background-size: 170px;
  color: #fff;
  padding: 2.1rem 1.5rem;
  text-align: center;
}
.sidebar-help > * { position: relative; z-index: 1; }
.help-ico {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--secondary); color: #fff;
  margin-bottom: 1rem;
}
.sidebar-help h3 { color: #fff; margin: 0 0 1.2rem; font-size: 1.2rem; line-height: 1.35; }
.sidebar-help .btn-light { width: 100%; justify-content: center; }
.btn-light { background: #fff; color: var(--primary); transition: color .4s ease-in-out, transform .15s ease; }
.btn-light::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 0;
  background: var(--secondary); z-index: -1; transition: width .4s ease-in-out;
}
.btn-light::after { background: color-mix(in srgb, var(--primary) 12%, #fff); }
.btn-light:hover { background: var(--secondary); color: #fff; }
.btn-light:hover::before { width: 106%; }
.btn-light:hover::after { background: rgba(255, 255, 255, .25); }

/* ---------- Sección "Sobre nosotros" (texto + 3 imágenes en fila) ---------- */
.about-head { max-width: 880px; margin: 0 auto; text-align: center; }
.about-home .section-title { text-align: center; line-height: 1.08; margin-bottom: 1rem; }
.about-head .lead { line-height: 1.45; }

.about-features-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin: 2.6rem 0; }
.about-feature { display: flex; gap: 1rem; align-items: flex-start; }
.af-ic {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--secondary); color: #fff;
  display: grid; place-items: center; flex: 0 0 auto;
}
.about-feature h3 { margin: 0 0 .25rem; color: var(--primary); font-size: 1.1rem; line-height: 1.2; }
.about-feature p { margin: 0; color: var(--text); line-height: 1.45; }
.whyus-card .af-ic { margin-bottom: 1.1rem; }
.whyus-card h3 { color: var(--primary); }

.about-images-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.about-images-3 img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 40px -24px rgba(0, 38, 100, .28);
}

/* ---------- Footer (moderno, 4 columnas + barra inferior) ---------- */
.site-footer { padding: 0 1.5rem 1.5rem; background: #fff; }
.footer-box {
  background: #0d1526;
  color: #aab3c7;
  border-radius: var(--radius-lg);
  padding: 4rem 0 2.2rem;
}
.footer-box .container { padding: 0 3rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-wordmark { color: #fff; font-weight: 800; font-size: 1.5rem; letter-spacing: -.5px; display: block; margin-bottom: 1rem; }
.footer-logo { height: 150px; width: auto; display: block; margin-bottom: 1.4rem; margin-left: -8px; }
.footer-about { color: #9aa6c2; line-height: 1.6; margin: 0 0 1.5rem; max-width: 320px; font-size: .95rem; }
.footer-social { display: flex; gap: .55rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: #fff; transition: background .2s ease; }
.footer-social a:hover { background: var(--secondary); }
.footer-box h4 { color: #fff; margin: 0 0 1.2rem; font-size: 1.05rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { padding: .35rem 0; }
.footer-list a { color: #aab3c7; transition: color .2s ease; }
.footer-list a:hover { color: var(--secondary); }
.footer-contact-list li { display: flex; gap: .65rem; align-items: flex-start; color: #aab3c7; padding: .4rem 0; }
.footer-contact-list a { color: #aab3c7; }
.footer-contact-list a:hover { color: var(--secondary); }
.fc-ic { color: var(--secondary); flex: 0 0 auto; margin-top: 3px; display: inline-flex; }
.fc-ic svg { width: 15px; height: 15px; }

.footer-bottom-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; padding-top: 1.8rem;
}
.footer-copy { margin: 0; font-size: .9rem; color: #8b95ac; }
.footer-copy a { color: #aab3c7; font-weight: 600; }
.footer-copy a:hover { color: var(--secondary); }
.footer-affiliation { display: flex; align-items: center; gap: .85rem; }
.aff-label { color: #8b95ac; font-size: .75rem; text-transform: uppercase; letter-spacing: 1.2px; }
.footer-sms { height: 48px; width: auto; opacity: .98; }

/* Botón de WhatsApp (usado en el CTA) */
.wa-btn { display: inline-flex; align-items: center; gap: .6rem; background: #25d366; color: #fff; font-weight: 600; padding: .75rem 1.3rem; border-radius: 999px; transition: transform .15s ease, background .15s ease; }
.wa-btn:hover { background: #1ebe5a; text-decoration: none; transform: translateY(-2px); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 60px; height: 60px;
  background-color: #25d366;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M.057 24l1.687-6.163a11.867 11.867 0 0 1-1.587-5.945C.16 5.335 5.495 0 12.05 0a11.82 11.82 0 0 1 8.413 3.488 11.82 11.82 0 0 1 3.48 8.414c-.003 6.557-5.338 11.892-11.893 11.892a11.9 11.9 0 0 1-5.688-1.448L.057 24zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884a9.86 9.86 0 0 0 1.51 5.26l-.999 3.648 3.477-.755zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px 32px;
  border-radius: 50%;
  font-size: 0;
  box-shadow: 0 8px 22px -6px rgba(37, 211, 102, .7);
  z-index: 60;
  transition: transform .15s ease;
  animation: waPulse 2.2s ease-out infinite;
}
.wa-float:hover { text-decoration: none; transform: scale(1.08); }
@keyframes waPulse {
  0% { box-shadow: 0 8px 22px -6px rgba(37, 211, 102, .7), 0 0 0 0 rgba(37, 211, 102, .45); }
  70% { box-shadow: 0 8px 22px -6px rgba(37, 211, 102, .7), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 22px -6px rgba(37, 211, 102, .7), 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem 3.5rem; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-media { order: -1; }
  .hero-photo-frame { max-width: 320px; }

  .cfo-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .service-detail { grid-template-columns: 1fr; gap: 2rem; }
  .service-aside { position: static; }

  .service-layout { grid-template-columns: 1fr; gap: 2.2rem; }
  .sidebar-sticky { position: static; }
  .benefits-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .process-grid { grid-template-columns: 1fr; }

  .about-features-row { grid-template-columns: 1fr; gap: 1.1rem; }
  .about-images-3 { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 860px) {
  .top-bar { display: none; }
  .about-grid.has-image, .contact-grid { grid-template-columns: 1fr; }
  .hero, .section-alt, .page-hero { margin-left: .8rem; margin-right: .8rem; }
  .cta-light { grid-template-columns: 1fr; }
  .cta-light-media { min-height: 220px; }
  .cta-light-body { padding: 2.2rem 1.8rem; }
  .cfo-items { grid-template-columns: 1fr; }
  .about-images-3 { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .corresponsal-card { padding: 2.5rem 1.5rem 2.8rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .page-hero-head { flex-direction: column-reverse; align-items: flex-start; gap: 1.4rem; }
  .page-hero-badge, .page-hero-icon { width: 96px; height: 96px; }
  .site-footer { padding: 0 .8rem .8rem; }
  .footer-box { padding: 2.5rem 0 1.5rem; }
  .footer-box .container { padding: 0 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom-bar { flex-direction: column; align-items: flex-start; }

  .nav-toggle-label {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: .4rem;
  }
  .nav-toggle-label span { width: 26px; height: 3px; background: var(--primary); border-radius: 3px; }
  .nav-links {
    position: absolute; top: 84px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem; gap: 1rem;
    max-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0;
    transition: max-height .25s ease, padding .25s ease;
  }
  .nav-toggle:checked ~ .nav-links { max-height: 720px; padding-top: 1rem; padding-bottom: 1rem; overflow-y: auto; }

  /* Desplegable como lista estática indentada en móvil */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu {
    position: static; display: flex; margin-top: .4rem;
    box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: auto; background: transparent;
  }
  .nav-dropdown-menu a { padding: .4rem .2rem; }
  .feature-grid { grid-template-columns: 1fr; }
}
