/* ============================================================
   ALIADA CRUZ PATRIMONIAL — styles.css
   Estructura:
   01 · Variables y reset
   02 · Tipografía base
   03 · Navegación
   04 · Hero
   05 · Carousel de promociones
   06 · ¿Por qué elegirme?
   07 · Servicios
   08 · Testimonios
   09 · Con quién trabajo (marquee)
   10 · Contacto y formulario
   11 · Footer
   12 · WhatsApp flotante
   13 · Utilidades y animaciones
   14 · Responsive — tablet (max 1024px)
   15 · Responsive — móvil (max 768px)
============================================================ */

/* ── 01 · Variables y reset ── */
:root {
  --azul-oscuro:    #022B4F;
  --azul-medio:     #177DA6;
  --azul-principal: #023E73;
  --azul-claro:     #E5F0FE;
  --azul-suave:     #B5D4F4;
  --azul-palido:    #E6F1FB;
  --blanco:         #ffffff;
  --gris-claro:     #F7F8FA;
  --gris-texto:     #5A6272;
  --gris-borde:     #E2E8F0;
  --cat-salud:      #E9F8EF;
  --cat-vida:       #FDECEF;
  --cat-inversion:  #FFF7E6;
  --cat-hogar:      #F4F0FF;
  --cat-mas:        #EEF4F7;
  --serif: 'Inter', sans-serif;
  --sans:  'Inter', sans-serif;
  --radio: 16px;
  --radio-sm: 8px;
  --sombra: 0 6px 6px rgba(4,44,83,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--sans); color: var(--gris-texto); background: var(--blanco); overflow-x: hidden; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; }
ul    { list-style: none; }

/* ── 02 · Tipografía base ── */
.section-label {
  font-size: 30px; font-weight: 300; color: var(--azul-medio);
  letter-spacing: -0.03em; margin-bottom: 12px;
  display: block;
}
.section-title {
  font-family: var(--serif); font-size: clamp(26px, 2.8vw, 60px);
  font-weight: 300; color: var(--azul-oscuro); line-height: 1.2; margin-bottom: 12px;
}
.section-sub {
  font-size: 16px; color: var(--gris-texto); font-weight: 300;
  /* max-width: 520px;*/ line-height: 1.75;
}

/* Botones globales */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--azul-principal); color: var(--blanco);
  padding: 13px 24px; border-radius: var(--radio-sm);
  font-size: 14px; font-weight: 500; font-family: var(--sans);
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--azul-medio); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--azul-principal);
  padding: 13px 24px; border-radius: var(--radio-sm);
  font-size: 14px; font-weight: 500;
  border: 1.5px solid var(--azul-principal);
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover { border-color: var(--azul-suave); background: var(--azul-palido); }


/* ── 03 · Navegación ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 72px;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gris-borde);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(4,44,83,0.08); }

    #navbar .nav-links a.nav-active {
      color: var(--azul-principal);
      font-weight: 500;
    }
    #navbar .nav-links a.nav-active::after {
      content: '';
      display: block;
      height: 2px;
      background: var(--azul-medio);
      border-radius: 1px;
      margin-top: 2px;
    }

.logo { display: flex; align-items: center; gap: 12px; }
./*logo-icon { width: 38px; height: 38px; flex-shrink: 0; }*/
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text span:first-child { font-weight: 500; font-size: 15px; color: var(--azul-oscuro); }
.logo-text span:last-child  { font-weight: 300; font-size: 9px; letter-spacing: .18em; color: var(--azul-claro); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--gris-texto); transition: color .2s; }
.nav-links a:hover { color: var(--azul-principal); }
.nav-cta {
  background: var(--azul-principal) !important; color: var(--blanco) !important;
  padding: 9px 20px; border-radius: 6px; font-weight: 500 !important;
  font-size: 13px !important; transition: background .2s !important;
}
.nav-cta:hover { background: var(--azul-medio) !important; }

/* Hamburguesa */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--azul-oscuro); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--blanco); z-index: 190;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 8px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-link {
  font-size: 22px; font-weight: 400; color: var(--azul-oscuro);
  padding: 12px 24px; display: block; text-align: center;
  transition: color .2s;
}
.mobile-link:hover { color: var(--azul-principal); }
.mobile-cta {
  margin-top: 16px;
  background: var(--azul-principal); color: var(--blanco) !important;
  border-radius: var(--radio-sm); padding: 14px 40px !important;
}


/* ── 04 · Hero ── */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 72px; overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 6% 80px 8%;
}
/*.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--azul-palido); color: var(--azul-medio);
  font-size: 12px; font-weight: 500; padding: 6px 14px;
  border-radius: 20px; margin-bottom: 28px; width: fit-content;
  animation: fadeUp .6s ease both;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--azul-principal); }*/

.hero-title {
  font-family: var(--serif); font-size: clamp(34px, 3.8vw, 50px);
  font-weight: 700; color: var(--azul-medio); line-height: 1.15;
  margin-bottom: 24px; animation: fadeUp .6s .1s ease both;
}

.hero-sub {
  font-size: 15px; font-weight: 300; color: var(--azul-principal);
  line-height: 1.8; max-width: 460px; margin-bottom: 40px;
  animation: fadeUp .6s .2s ease both;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; animation: fadeUp .6s .3s ease both; }
.hero-stats { display: flex; gap: 32px; margin-top: 52px; flex-wrap: wrap; animation: fadeUp .6s .4s ease both; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num   { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--azul-oscuro); }
.stat-label { font-size: 12px; color: var(--gris-texto); }

.hero-right {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--azul-palido) 0%, #d4e8f8 100%); overflow: hidden;
}
.hero-img-bg     { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80%; height: 85%; background: var(--azul-suave); border-radius: 240px 240px 0 0; opacity: .35; }
.hero-img-circle  { position: absolute; top: 15%; right: 8%; width: 120px; height: 120px; border-radius: 50%; border: 1px solid rgba(24,95,165,.2); }
.hero-img-circle2 { position: absolute; bottom: 20%; left: 6%; width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(24,95,165,.15); }
.hero-photo-frame { position: relative; z-index: 2; width: 300px; height: 400px; border-radius: 160px 160px 0 0; overflow: hidden; }
.hero-photo       { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.floating-card {
  position: absolute; z-index: 4; background: var(--blanco);
  border-radius: 12px; padding: 12px 16px;
  box-shadow: 0 4px 24px rgba(4,44,83,.12);
  display: flex; align-items: center; gap: 10px;
  animation: float 4s ease-in-out infinite;
}
.fc-1 { bottom: 15%; left: -20px; }
.fc-2 { top: 22%; right: -10px; animation-delay: 2s; }
.fc-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--azul-palido); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fc-dot svg { width: 18px; height: 18px; }
.fc-val  { font-size: 13px; font-weight: 500; color: var(--azul-oscuro); }
.fc-desc { font-size: 11px; color: var(--gris-texto); }


/* ── 05 · Carousel de promociones ── */
.promo-section { background: var(--azul-oscuro); }
.promo-header  { display: flex; align-items: center; justify-content: space-between; padding: 28px 8% 20px; }
.promo-label   { font-size: 11px; font-weight: 500; color: var(--azul-suave); letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.promo-label::before { content: ''; width: 20px; height: 1px; background: var(--azul-claro); }
.promo-nav-btns { display: flex; gap: 8px; }
.promo-nav-btn  {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: transparent;
  color: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.promo-nav-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.promo-nav-btn svg { width: 16px; height: 16px; }

.carousel-track-wrap { overflow: hidden; padding: 0 8% 32px; }
.carousel-track { display: flex; gap: 16px; transition: transform .5s cubic-bezier(.4,0,.2,1); will-change: transform; }
.promo-card { flex-shrink: 0; width: calc(33.333% - 11px); border-radius: var(--radio); overflow: hidden; cursor: pointer; transition: transform .25s; }
.promo-card:hover { transform: translateY(-3px); }
.promo-card-inner { height: 168px; padding: 24px 28px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }

/* Colores por aseguradora */
.pc-inbursa { background: linear-gradient(135deg,#1a3a6b,#0d5fa3); }
.pc-gnp     { background: linear-gradient(135deg,#70A9E3,#B5D4F4); }
.pc-qualitas{ background: linear-gradient(135deg,#70A9E3,#B5D4F4); }
.pc-axa     { background: linear-gradient(135deg,#70A9E3,#B5D4F4); }
.pc-hdi     { background: linear-gradient(135deg,#70A9E3,#B5D4F4); }
.pc-mapfre  { background: linear-gradient(135deg,#70A9E3,#B5D4F4); }

.promo-card-inner::before { content:''; position:absolute; top:-40px; right:-40px; width:160px; height:160px; border-radius:50%; background:rgba(255,255,255,.06); }
.promo-card-inner::after  { content:''; position:absolute; bottom:-30px; right:20px; width:100px; height:100px; border-radius:50%; background:rgba(255,255,255,.04); }
.promo-aseg   { font-size:11px; font-weight:500; color:rgba(255,255,255,.7); letter-spacing:.12em; text-transform:uppercase; }
.promo-titulo { font-family:var(--serif); font-size:20px; font-weight:700; color:white; line-height:1.2; }
.promo-desc   { font-size:12px; color:rgba(255,255,255,.75); margin-top:4px; font-weight:300; }
.promo-cta    {
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px; font-weight:500; color:white;
  background:rgba(255,255,255,.18); border-radius:20px; padding:5px 14px;
  width:fit-content; backdrop-filter:blur(4px); transition:background .2s;
}
.promo-cta:hover { background:rgba(255,255,255,.28); }
.promo-cta svg { width:12px; height:12px; }

.carousel-dots { display:flex; justify-content:center; gap:6px; padding-bottom:28px; }
.cdot {
  width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.25);
  border:none; cursor:pointer; padding:0;
  transition:background .2s, width .3s;
}
.cdot.active { background:var(--azul-claro); width:20px; border-radius:3px; }


/* ── 06 · ¿Por qué elegirme? ── */
.txt-center {text-align: center; }
.porque { padding: 100px 8%; background: var(--blanco); }
.porque-header { margin-bottom: 56px; }
.porque-grid   { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.porque-card {
  background: var(--blanco); border-radius: var(--radio); padding: 40px 32px;
  border: 1px solid var(--gris-borde); transition: box-shadow .2s, transform .2s;
}
.porque-card:hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.porque-icon  { width: 160px; height: 160px; border-radius: 14px;  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.porque-icon svg { width: 26px; height: 26px; stroke: var(--azul-principal); }
.porque-titulo { font-size: 17px; font-weight: 500; color: var(--azul-oscuro); margin-bottom: 12px; line-height: 1.3; }
.porque-desc   { font-size: 14px; color: var(--gris-texto); line-height: 1.75; font-weight: 300; }


/* ── 07 · Servicios ── */
.servicios { background: var(--gris-claro); }
.servicios-intro { padding: 100px 8% 60px; }

.serv-row {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 0; border-top: 1px solid var(--gris-borde);
}
.serv-row-reverse { direction: rtl; }
.serv-row-reverse > * { direction: ltr; }

.serv-img { overflow: hidden; height: 380px; display: flex; align-items: center; justify-content: center; }
.serv-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.serv-row:hover .serv-img img { transform: scale(1.03); }

.serv-content {padding: 60px 8%; text-align: left;}
.serv-category {
  display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .12em;
  background: var(--azul-claro); color: var(--azul-medio); padding: 4px 12px; border-radius: 20px;
  text-transform: uppercase; margin-bottom: 12px;
}
.serv-titulo { font-family: var(--serif); font-size: clamp(22px,2.2vw,30px); font-weight: 700; color: var(--azul-oscuro); margin-bottom: 12px; }
.serv-desc   { font-size: 15px; color: var(--gris-texto); line-height: 1.75; font-weight: 300; margin-bottom: 20px; }
.serv-tags   { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.serv-tag    { font-size: 12px;  font-weight: 500;  display: flex; align-items: center; gap: 6px; margin-right: 10px;}


/* ── 08 · Testimonios ── */
.testimonios { padding: 100px 8%; background: var(--blanco); }
.testimonios .section-title { margin-bottom: 48px; }
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.testi-card {
  background: var(--gris-claro); border-radius: var(--radio); padding: 32px;
  border: 1px solid var(--gris-borde);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: box-shadow .2s;
}
.testi-card:hover { box-shadow: var(--sombra); }
.testi-top     { margin-bottom: 20px; }
.testi-stars   { display: flex; gap: 3px; margin-bottom: 16px; }
.star          { width: 14px; height: 14px; fill: var(--azul-claro); }
.testi-quote   { font-size: 14px; color: var(--gris-texto); line-height: 1.8; font-weight: 300; font-style: italic; }
.testi-author  { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--gris-borde); }
.testi-avatar  { width: 40px; height: 40px; border-radius: 50%; background: var(--azul-palido); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: var(--azul-principal); flex-shrink: 0; }
.testi-name    { font-size: 13px; font-weight: 500; color: var(--azul-oscuro); }
.testi-role    { font-size: 12px; color: var(--gris-texto); }


/* ── 09 · Con quién trabajo — marquee ── */
.aseguradoras { padding: 80px 0; background: var(--blanco); overflow: hidden; border-top: 1px solid var(--gris-borde); border-bottom: 1px solid var(--gris-borde); text-align: center; }
.aseg-title { margin-bottom: 8px; }
.aseg-sub   { font-size: 14px; color: var(--gris-texto); font-weight: 300; max-width: 540px; margin: 0 auto 48px; line-height: 1.7; }

.marquee-wrap  { overflow: hidden; position: relative; }
/* Difuminado en los bordes */
.marquee-wrap::before,
.marquee-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee-wrap::before { left: 0;  background: linear-gradient(to right, var(--blanco), transparent); }
.marquee-wrap::after  { right: 0; background: linear-gradient(to left,  var(--blanco), transparent); }

.marquee-track {
  display: flex; align-items: center; gap: 0;
  animation: marquee 22s linear infinite;
  will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }

.marquee-item  { padding: 0 48px; flex-shrink: 0; display: flex; align-items: center; }
/* Separador vertical entre logos */
.marquee-item + .marquee-item { border-left: 1px solid var(--gris-borde); }

.marquee-item:hover .aseg-logo { color: var(--azul-principal); }

/* ── 10 · Contacto y formulario ── */
.contacto {
  padding: 100px 8%; background: var(--gris-claro);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.contacto-left .section-sub { margin-bottom: 36px; }
.contacto-info  { display: flex; flex-direction: column; gap: 16px; }
.contacto-item  { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--gris-texto); }
.contacto-item svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--azul-principal); }

.form-card   { background: var(--blanco); border-radius: 20px; padding: 40px; border: 1px solid var(--gris-borde); }
.form-title  { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--azul-oscuro); margin-bottom: 6px; }
.form-sub    { font-size: 13px; color: var(--gris-texto); margin-bottom: 28px; font-weight: 300; }
.form-row-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group  { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; color: var(--azul-oscuro); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--gris-borde); border-radius: var(--radio-sm);
  font-family: var(--sans); font-size: 14px; color: var(--azul-oscuro);
  background: var(--blanco); outline: none; transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--azul-principal); }
.form-group textarea  { resize: vertical; min-height: 80px; }
.form-group select    { appearance: none; cursor: pointer; }
/* Error state */
.form-group input.error,
.form-group select.error { border-color: #dc2626; }
.form-error { font-size: 11px; color: #dc2626; margin-top: 4px; display: none; }
.form-error.visible { display: block; }

.form-submit {
  width: 100%; padding: 14px; margin-top: 8px;
  background: var(--azul-principal); color: var(--blanco);
  border: none; border-radius: var(--radio-sm);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: background .2s, transform .15s;
}
.form-submit:hover    { background: var(--azul-medio); transform: translateY(-1px); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-disclaimer { font-size: 11px; color: var(--gris-texto); text-align: center; margin-top: 12px; line-height: 1.5; }

/* Mensaje de éxito */
.form-success {
  display: none; text-align: center; padding: 32px 16px;
  color: var(--azul-oscuro);
}
.form-success.visible { display: block; }
.form-success svg { width: 48px; height: 48px; stroke: #059669; fill: none; stroke-width: 1.5; margin: 0 auto 16px; }
.form-success h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 8px; }
.form-success p  { font-size: 14px; color: var(--gris-texto); }


/* ── 11 · Footer ── */
footer {
  background: var(--azul-oscuro); color: rgba(255,255,255,.6); padding: 48px 8%;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-logo      { display: flex; align-items: center; gap: 10px; }
.footer-logo-text { display: flex; flex-direction: column; }
.footer-logo-text span:first-child { font-size: 14px; font-weight: 500; color: var(--blanco); }
.footer-logo-text span:last-child  { font-size: 10px; letter-spacing: .15em; color: var(--azul-suave); text-transform: uppercase; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-links a:hover { color: var(--blanco); }
.footer-copy { font-size: 12px; }


/* ── 12 · WhatsApp flotante ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg   { width: 28px; height: 28px; fill: white; }


/* ── 13 · Utilidades y animaciones ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); } /* 1 bloque de 4 = 25% del total */
}

/* Reveal on scroll */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ── 14 · Responsive — tablet (max 1024px) ── */
@media (max-width: 1024px) {
  .porque-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid  { grid-template-columns: 1fr 1fr; }
  .contacto    { gap: 48px; }
  .promo-card  { width: calc(50% - 8px); }
  .serv-row, .serv-row-reverse { grid-template-columns: 1fr; direction: ltr; }
  .serv-img    { height: 280px; }
}

/* ── 15 · Responsive — móvil (max 768px) ── */
@media (max-width: 768px) {
  /* Navegación */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  /* Hero */
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 48px 6%; }
  .hero-right { min-height: 300px; }
  .hero-photo-frame { width: 220px; height: 300px; }
  .floating-card { display: none; }
  .hero-stats { gap: 20px; }

  /* Secciones */
  .porque { padding: 64px 6%; }
  .porque-grid { grid-template-columns: 1fr; }
  .servicios-intro { padding: 64px 6% 40px; }
  .serv-content { padding: 40px 6%; text-align: right;}
  .testimonios { padding: 64px 6%; }
  .testi-grid  { grid-template-columns: 1fr; }
  .aseguradoras { padding: 56px 0; }
  .contacto { grid-template-columns: 1fr; padding: 64px 6%; gap: 40px; }
  .form-card { padding: 28px 20px; }
  .form-row-2 { grid-template-columns: 1fr; }

  /* Carousel */
  .promo-card  { width: calc(85% - 8px); }
  .promo-header, .carousel-track-wrap { padding-left: 6%; padding-right: 6%; }

  /* Footer */
  .footer { flex-direction: column; align-items: flex-start; padding: 40px 6%; }
  .footer-links { flex-direction: column; gap: 12px; }
}


/* ── Dots de testimonios (generados por JS) ── */
.testi-dots {
  display: none; /* JS lo activa en tablet/móvil */
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.testi-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gris-borde); border: none; cursor: pointer; padding: 0;
  transition: background .2s, width .3s;
}
.testi-dot.active {
  background: var(--azul-principal);
  width: 22px; border-radius: 4px;
}

/* Ajuste para testi-grid en tablet/móvil (JS asigna position:absolute a los cards) */
@media (max-width: 1023px) {
  .testimonios .testi-grid {
    position: relative;
  }
}

/*============================================================
  Para ti y tu familia FILTER TABS STYLES
============================================================ */

/* Nav */
  .header__nav {
    display: flex;
    align-items: center;
    gap: .25rem;
  }

  .header__nav a {
    font-size: 13.5px;
    font-weight: 400;
    color: var(--color-text-muted);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
  }

  .header__nav a:hover {
    color: var(--color-navy);
    background: var(--color-sky-light);
  }

  .navbar a.is-active {
    color: var(--color-navy);
    font-weight: 600;
    border-bottom: 2.5px solid var(--color-teal);
    border-radius: 0;
    padding-bottom: 4px;
    background: transparent;
  }

  /* Breadcrumb */
  .breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.75rem;
    font-size: 13px;
    color: var(--color-text-light);
  }

  .breadcrumb a {
    color: var(--color-text-light);
    transition: color var(--transition-fast);
  }

  .breadcrumb a:hover { color: var(--color-teal); }

  .breadcrumb__sep {
    color: var(--color-border);
    font-size: 12px;
  }

  .breadcrumb__current {
    color: var(--color-text-muted);
    font-weight: 500;
  }

  /* Page title block */
  .hero__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.1;
    letter-spacing: -.025em;
    margin-bottom: 1rem;
  }

  .hero__desc {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 580px;
    margin-bottom: 2.5rem;
  }
 /* FILTER TABS STYLES  */
  .filter-wrap {
    background: var(--color-white);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
  }

  .filter-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: .5rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar { display: none; }

  .filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    user-select: none;
  }

  .filter-tab:hover {
    color: var(--color-navy);
    border-color: var(--color-teal);
    background: var(--color-sky-light);
  }

  .filter-tab.is-active {
    background: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
  }

  /* Divider below tabs */
  .filter-divider {
    max-width: 1200px;
    margin: 0 auto;
    border: none;
    border-top: 1px solid var(--color-border);
    margin-bottom: 2.5rem;
  }

 /*  ============================================================
  5. CARDS GRID STYLES
============================================================  */
  .cards-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem 1rem;
  }

  .cards-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
  }

  .cards-meta__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--color-teal);
    margin-bottom: .3rem;
  }

  .cards-meta__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-navy);
  }

  .cards-meta__count {
    font-size: 13px;
    color: var(--color-text-light);
  }

  /* Grid */
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
  }

  /* Card */
  .card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  }

  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-sky);
  }

  .card--featured {
    border: 1.5px solid var(--color-teal);
  }

  .card__header {
    padding: 1.25rem 1.25rem .75rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
  }

  .card__icon--blue   { background: #DBEAFE; }
  .card__icon--teal   { background: #CCFBF1; }
  .card__icon--green  { background: #DCFCE7; }
  .card__icon--navy   { background: #E0E7FF; }
  .card__icon--purple { background: #EDE9FE; }

  .card__meta { flex: 1; }

  .card__category {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-teal);
    margin-bottom: .3rem;
  }

  .card__name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-navy);
    line-height: 1.3;
  }

  .card__body {
    padding: .25rem 1.25rem .85rem;
    flex: 1;
  }

  .card__desc {
    font-size: 13.5px;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: .85rem;
  }

  .card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
  }

  .tag--blue   { background: var(--color-sky-light); color: var(--color-navy); }
  .tag--teal   { background: #CCFBF1; color: #0f6e56; }
  .tag--light  { background: var(--color-bg); color: var(--color-text-muted); }

  .card__footer {
    padding: .75rem 1.25rem;
    border-top: 1px solid #F0F4F8;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .card__cta {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-teal);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap var(--transition-fast), color var(--transition-fast);
  }

  .card:hover .card__cta { gap: 8px; color: var(--color-navy); }

  .card__badge {
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
  }

  .card__badge--primary { background: var(--color-navy);        color: var(--color-white); }
  .card__badge--neutral { background: var(--color-sky-light);   color: var(--color-navy); }



/*============================================================
  6. PAGINATION STYLES
============================================================ */ 
  .pagination-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .pg-btn {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .pg-btn:hover:not(:disabled) {
    border-color: var(--color-teal);
    color: var(--color-navy);
    background: var(--color-sky-light);
  }

  .pg-btn.is-active {
    background: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
  }

  .pg-btn:disabled {
    opacity: .35;
    cursor: default;
  }

  .pg-arrow svg {
    width: 14px;
    height: 14px;
  }

  .pg-dots {
    font-size: 14px;
    color: var(--color-text-light);
    padding: 0 4px;
    user-select: none;
  }

    
/* ============================================================
  7. ANIMATIONS & TRANSITIONS
============================================================ */ 
  /* Fade-in-up for cards on load/filter */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .card--animate {
    animation: fadeInUp 320ms ease both;
  }

  /* Stagger delays (applied via JS data-index) */
  .card--animate[data-delay="0"] { animation-delay:   0ms; }
  .card--animate[data-delay="1"] { animation-delay:  50ms; }
  .card--animate[data-delay="2"] { animation-delay: 100ms; }
  .card--animate[data-delay="3"] { animation-delay: 150ms; }
  .card--animate[data-delay="4"] { animation-delay: 200ms; }
  .card--animate[data-delay="5"] { animation-delay: 250ms; }
  .card--animate[data-delay="6"] { animation-delay: 300ms; }
  .card--animate[data-delay="7"] { animation-delay: 350ms; }
  .card--animate[data-delay="8"] { animation-delay: 400ms; }

  /* Respect prefers-reduced-motion */
  @media (prefers-reduced-motion: reduce) {
    .card--animate { animation: none; }
  }

  /* Tab active transition */
  .filter-tab { position: relative; }

  /* Hero title fade on load */
  @keyframes heroFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .hero__title { animation: heroFade 400ms ease both; }
  .hero__desc  { animation: heroFade 400ms 80ms ease both; }
  .filter-wrap { animation: heroFade 400ms 140ms ease both; }




