/* =========================
   TOKENS Y BASE
========================= */
:root {
  --azul: rgb(8, 32, 65);
  --naranja: #fa8207;
  --amarillo: #f0dca0;
  --radius: 12px;

  /* Escala tipográfica VIPA unificada */
  --fs-h1: clamp(1.4rem, 0.5vw + 1.1rem, 2rem);        /* títulos principales */
  --fs-h2: clamp(1.6rem, 0.6vw + 1.2rem, 2.2rem);      /* subtítulos / secciones */
  --fs-body: clamp(1rem, 0.3vw + 0.9rem, 1.125rem);    /* texto normal / párrafos */
  --fs-small: clamp(.85rem, 0.2vw + .8rem, .95rem);    /* footer / microtexto */
  --fs-h3: clamp(1.2rem, 0.4vw + 1rem, 1.6rem); /* subtítulos secundarios / apartados */

  --footer-h: clamp(56px, 7vh, 72px);
  font-family: 'Poppins','Open Sans','Roboto','Montserrat',Arial,Helvetica,sans-serif;
}

/* Ya tienes estas, pero asegúrate de que aplican también si .logo-titulo es <a> */
.logo-titulo {
  display: flex;
  align-items: center;
  gap: clamp(8px,1.2vw,15px);
  margin-left: 15%;
  text-decoration: none;   /* que no aparezca subrayado por ser enlace */
  color: inherit;          /* mantiene tu color */
  margin-top: 0.5%;
}

/* por si el enlace necesita comportarse como bloque dentro del header flex */
.logo-titulo { display: flex; }

.logo-titulo:focus-visible {
  outline: 2px dashed var(--naranja);
  outline-offset: 4px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--azul);
  overflow-x: hidden;
  max-width: 100vw;
  font-family: 'Poppins','Open Sans','Roboto','Montserrat',Arial,Helvetica,sans-serif;
  background-color: #fff;
  padding-bottom: calc(var(--footer-h) + 12px); /* evita solape footer desktop */
}

/* Tipografía global coherente */
h1 {
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.2;
  color: var(--azul);
  margin: 0 0 1rem 0;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.2;
  color: var(--azul);
  margin: 0 0 1rem 0;
  text-wrap: balance;
  font-family: 'Poppins','Open Sans','Roboto','Montserrat',Arial,Helvetica,sans-serif;
}

p,
li,
span,
a,
button,
input,
textarea,
.cuadro p,
.texto-superpuesto p,
.texto-video h3,
.cuadro-estadistica h3,
.cuadro-estadistica3 h3 {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--azul);
  margin: 0 0 1rem 0;
  font-family: 'Poppins','Open Sans','Roboto','Montserrat',Arial,Helvetica,sans-serif;
}

footer p,
footer h6,
#footer p,
#footer h6,
#footer a,
.footer-linea p,
.footer-linea a {
  font-size: var(--fs-small);
  line-height: 1.4;
  font-weight: 400;
  color: var(--azul);
  margin: 0;
  font-family: 'Poppins','Open Sans','Roboto','Montserrat',Arial,Helvetica,sans-serif;
}

h2 strong{
  font-weight: 600;
}

body,
h1,
h2,
h3,
h4,
h5,
p,
li,
a,
span,
button,
input,
textarea {
  font-weight: 400;
  color: var(--azul);
  font-family: 'Poppins','Open Sans','Roboto','Montserrat',Arial,Helvetica,sans-serif;
}

/* utilidades texto */
.u-nooverflow {
  overflow: hidden;
  text-overflow: ellipsis;
}
.u-wrap {
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* =========================
   BARRA SUPERIOR
========================= */
.barra {
  background: var(--amarillo);
  padding: 5px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  height: 50px;
}

.acceso {
  display: flex;
  gap: clamp(8px,5vw,12%);
  justify-content: center;
  margin-right: 13%;
}

.iconos,
.iconos-linkedin {
  width: clamp(22px,2.2vw,30px);
  margin: 5px;
  transition: transform .2s ease;
}

.iconos:hover,
.iconos-linkedin:hover {
  transform: scale(1.2);
}

.icono-correo {
  display: flex;
  margin-right: clamp(8px,6vw,18%);
}

.demas-iconos {
  display: flex;
}

/* =========================
   HEADER + NAV (DESKTOP BASE)
========================= */

/* Header desktop */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  height: clamp(56px, 7vw, 77px);
  padding-inline: clamp(12px,4vw,24px);
  position: relative;
  z-index: 10000;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
  width: 100%;
}

.logo-titulo {
  display: flex;
  align-items: center;
  gap: clamp(8px,1.2vw,15px);
  margin-left: 15%;
}

.logo {
  height: clamp(44px,5.5vw,60px);
  display: block;
}

.logo-titulo h1 {
  margin: 0;
  line-height: 1;
  font-size: var(--fs-h1);
  font-weight: 600;
  color: var(--azul);
}

/* NAV DESKTOP */
.nav-buttons {
  display: flex;
  align-items: center;
  gap: clamp(10px,1.5vw,20px);
  margin-right: clamp(8px,10vw,15%);
  margin-top: 1%;
  font-family: 'Poppins','Montserrat',Arial,Helvetica,sans-serif;
}

.nav-buttons a,
.dropbtn {
  display: flex;
  align-items: center;
  padding: 0 clamp(10px,1.2vw,15px);
  text-decoration: none;
  color: var(--azul);
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  transition: color .3s ease;
  font-size: var(--fs-body);
  line-height: 1.2;
  font-family: 'Poppins','Montserrat',Arial,Helvetica,sans-serif;
}

.nav-buttons a:hover,
.dropbtn:hover {
  color: var(--naranja);
}

.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 999;
  padding: clamp(6px,1.2vw,12px);
  background: #fff;
  min-width: 240px;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  transition:
    opacity .15s ease,
    transform .15s ease,
    visibility .15s ease;
}

.dropdown-content a {
  padding: .5rem;
  display: block;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.4;
  color: var(--azul);
  text-decoration: none;
}

.dropdown-content a:hover {
  color: var(--naranja);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* =========================
   HERO / IMAGEN DESTACADA
========================= */
.jaime-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.imagen-con-texto {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: 55vh;
  object-fit: cover;
  display: block;
}

.desktop-img {
  display: block;
}
.mobile-img {
  display: none;
}

.texto-superpuesto {
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translate(-50%,-50%);
  background: rgba(255,255,255,.6);
  color: var(--azul);
  text-align: center;
  padding: clamp(12px,1.5vw,20px);
  border-radius: var(--radius);
  max-width: min(80%,740px);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.texto-superpuesto h2 {
  margin: 0 0 .5rem 0;
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.2;
  color: var(--azul);
  text-wrap: balance;
}

.texto-superpuesto p {
  font-size: var(--fs-body);
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* =========================
   VIDEO CARRUSEL
========================= */
body { overflow-x: hidden; }

.video-carousel-container {
  max-width: 800px;
  margin: 50px auto;
  position: relative;
  overflow: hidden;
}

.carousel-item {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.iframe-wrapper { position: relative; width: 100%; height: 100%; }
.iframe-wrapper iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}

.carousel-control-prev, .carousel-control-next {
  width: 50px; height: 50px; top: 50%; transform: translateY(-50%);
  background-color: #fa8207; border-radius: 50%; position: absolute; z-index: 2;
}

.video-carousel-container {
  text-align: center;
  width: 100%;
  margin: clamp(20px,6vw,50px) auto;
  position: relative;
}

.video-carousel-container h2 {
  margin: 3% 0 8%;
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.2;
  color: var(--azul);
}

.carousel-inner {
  position: relative;
}

.carousel-item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}

.movil-con-botones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px,3vw,24px);
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  width: clamp(36px,4vw,44px);
  height: clamp(36px,4vw,44px);
  background: var(--naranja);
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
  opacity: .95;
}

.carousel-control-prev { left: 0; }
.carousel-control-next { right: 0; }

.movil-superpuesto {
  position: relative;
  width: 26%;
  margin: 0 auto;
  --screen-top: 3%;
  --screen-left: 6.5%;
  --screen-width: 90%;
  --screen-height: 94%;
  margin-bottom: 6%;
}

.pantalla-video {
  position: absolute;
  top: var(--screen-top);
  left: var(--screen-left);
  width: var(--screen-width);
  height: var(--screen-height);
  z-index: 1;
  pointer-events: auto;
  overflow: hidden;
  clip-path: inset(0);
  border-radius: 20px;
}

.fondo-movil {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none;
  display: block;
}

.pantalla-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.pantalla-video iframe::-webkit-scrollbar {
  display: none;
}

.circulo-amarillo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(240px,30vw,400px);
  height: clamp(240px,30vw,400px);
  transform: translate(-50%,-50%);
  background: var(--amarillo);
  border-radius: 50%;
  z-index: 0;
}

/* =========================
   SERVICIOS (CUADROS)
========================= */
.servicios-container {
  text-align: center;
  background: #fff;
  margin-top: 4%;
  overflow: visible;
  padding-bottom: 9%;
}

.servicios-container h2 {
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.cuadros-container {
  width: 60vw;
  margin: 5.5% auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 2%;
  min-height: 300px;
}

.cuadro {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: var(--azul);
  background: #fff;
  transition: transform .25s ease, background-color .45s ease;
  padding: 6%;
  margin: 0 auto clamp(12px,3vw,24px);
  border: 2px solid var(--naranja);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
}

.cuadro:hover {
  transform: scale(1.03);
  background: var(--amarillo);
}

.cuadro img {
  width: 100%;
  height: clamp(140px,16vw,200px);
  max-height: 100%;
  border-radius: 6px;
  margin-bottom: 8%;
  object-fit: cover;
  object-position: center 80%;
}

.cuadro h3 {
  margin: 6px 0 4px;
  font-size: var(--fs-h3);
  color: var(--naranja);
  font-weight: 600;
  line-height: 1.2;
}

.cuadro p {
  text-align: match-parent;
  font-size: var(--fs-body);
  line-height: 1.45;
  width: 100%;
  margin-top: 6%;
  max-width: 52ch;
  overflow-wrap: anywhere;
}

/* === CAMBIO AQUÍ: contenedor saber más, ancho completo, sin overflow hidden y manteniendo abajo === */
.cuadro .saber {
  width: 100%;
  display: flex;
  justify-content: flex-end;   /* se alinea a la derecha dentro del card */
  align-items: center;
  gap: 6px;
  margin-top: auto;            /* empuja "Saber más" al fondo de la tarjeta */
  text-align: left;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: visible;           /* ← ya no recorta la flecha */
  padding-bottom: 5%;
}

.cuadro .saber p {
  margin: 0;
  font-weight: 600;
  text-decoration: none;
  color: var(--naranja);
  font-size: var(--fs-body);
  line-height: 1.4;
  white-space: nowrap;
}

/* === CAMBIO AQUÍ: flecha responsive y uniforme con clamp() === */
.cuadro .saber .flechita {
  width: clamp(22px, 2vw, 40px);  /* mínimo 22px, crece con viewport, máximo 40px */
  height: auto;
  display: inline-block;
  object-fit: contain;
  flex-shrink: 0;
  margin-top:0;
}

/* =========================
   SECCIÓN CIFRAS / FONDO
========================= */
.seccionabajo {
  width: 100%;
  min-height: 30vh;
  background-image: url('../Img/despacho azul.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  margin-top: 4.5%;
  margin-bottom: 5.2%;
  overflow: hidden;
}

/* "Nuestra asesoría en cifras" */
.seccionabajo h3 {
  font-size: var(--fs-h2);
  font-weight: 650;
  color: var(--amarillo);
  margin: 0 8% 0 12%;
  line-height: 1.2;
  max-width: 90%;
  text-wrap: balance;
}

.seccionabajo span {
  color: var(--amarillo);
  font-size: inherit;
}

.pruebatodos {
  padding: 5%;
  display: flex;
  font-weight: 600;
  gap: clamp(16px,10vw,16%);
}

.cuadros-estadisticas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(12px,3vw,24px);
}

.cuadro-estadistica,
.cuadro-estadistica3 {
  width: clamp(140px,12vw,180px);
  height: clamp(120px,12vw,160px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

.cuadro-estadistica3 {
  width: clamp(280px,32vw,450px);
}

.cuadro-estadistica .contador,
.cuadro-estadistica3 .contador {
  order: 0;
  margin: 0;
  line-height: 1;
  font-weight: 800;
  font-size: clamp(2rem,4vw,3.5rem);
  color: var(--amarillo);
}

.cuadro-estadistica h3,
.cuadro-estadistica3 h3 {
  order: 1;
  margin: .25rem 0 0;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--amarillo);
}

.cuadro-estadistica p,
.cuadro-estadistica3 p {
  margin: 6px 0 0;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--amarillo);
  line-height: 1.3;
}

.texto-video h3 {
  font-style: italic;
  font-weight: 200;
  margin-top: 2%;
  font-size: var(--fs-h2);
  line-height: 1.4;
  color: var(--azul);
}

.pruebatodos p {
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--amarillo);
  font-weight: 600;
  margin: 0;
}

/* título especial "nuestra" base */
.nuestra {
  font-size: var(--fs-h2);
  line-height: 1.2;
  font-weight: 650;
  color: var(--amarillo);
}

/* =========================
   BOTÓN WHATSAPP
========================= */
#icono-flotante {
  position: fixed;
  bottom: 10%;
  right: 20px;
  z-index: 9999;
  padding: 12px;
  transition: transform .3s ease;
}

#icono-flotante img {
  width: 80px;
}

#icono-flotante:hover {
  transform: scale(1.5);
}

/* =========================
   FOOTER (fijo desktop / estático móvil)
========================= */
#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--footer-h);
  background: var(--amarillo);
  box-shadow: 0 -2px 5px rgba(0,0,0,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px,3vw,30px);
  font-size: var(--fs-small);
  line-height: 1.4;
  z-index: 9999;
  padding-inline: clamp(8px,2vw,16px);
  text-align: center;
  flex-wrap: wrap;
}

#footer > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

#footer img.iconos {
  height: clamp(28px,5vh,40px);
}

#footer p,
#footer h6 {
  margin: 0;
  line-height: 1.4;
  text-align: left;
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--azul);
}

#footer.amarillo {
  background: var(--amarillo);
  color: #fff;
}

#footer.blanco {
  background: #fff;
  color: var(--amarillo);
}

.iconos-footer {
  width: clamp(22px,2.6vw,30px);
  transition: transform .2s ease;
}

.iconos-footer:hover {
  transform: scale(1.2);
}

#footer a {
  text-decoration: none;
  font-size: var(--fs-small);
  line-height: 1.4;
  font-weight: 400;
  color: var(--azul);
}

/* =========================
   RESPONSIVE — MÓVIL (≤768)
========================= */
@media (max-width:768px) {

  body {
    padding-bottom: 0;
  }

  .main-image{
    height: 30vh;
  }

  .servicios-container {
    margin-top: 8%;
  }

  .circulo-amarillo{
    width: 270px;
    height: 270px;
    top: 50%;
  }

  /* Hero / overlay responsivo */
  .desktop-img {
    display: none;
  }
  .mobile-img {
    display: block;
  }

  .texto-superpuesto {
    left: 60%;
    top: 50%;
    transform: translate(-13%, -50%);
    max-width: 85vw;
    width: auto;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,.7);
  }

  .texto-superpuesto h2 {
    font-size: var(--fs-h2);
    margin: 0 0 6px 0;
    line-height: 1.2;
    word-break: break-word;
    text-wrap: balance;
  }

  .texto-superpuesto p {
    font-size: var(--fs-body);
    line-height: 1.3;
    margin: 0;
    word-break: break-word;
    text-wrap: balance;
  }

  br { display: none; }

  /* --- Barra superior en móvil --- */
  .barra {
    justify-content: space-between;
    align-items: center;
    height: 40px;
  }

  .acceso {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-right: 0;
    gap: 0;
    height: 40px;
  }

  .icono-correo {
    order: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
  }

  .demas-iconos {
    order: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 0;
  }

  .barra img.iconos,
  .barra img.iconos-linkedin {
    width: 28px;
    height: auto;
  }

  /* HEADER móvil */
  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding-inline: 16px;
    gap: 10px;
    height: 56px;
    max-width: 100%;
  }

  .logo-titulo {
    margin-left: 0;
    justify-content: flex-start;
    width: auto;
    gap: 10px;
  }

  .logo {
    height: 50px;
  }

  /* NAV móvil: panel lateral */
  .nav-buttons {
    position: absolute;
    top: clamp(56px,6vw,70px);
    right: 0;
    width: 70vw;
    max-width: 260px;
    background: #fff;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    display: none; /* cerrado por defecto */
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    z-index: 99999;
    margin-right: 0;
  }

  .nav-buttons.is-open {
    display: flex; /* abierto */
  }

  .nav-buttons > a,
  .nav-buttons > .dropdown > .dropbtn {
    width: 100%;
    display: block;
    text-align: left;
    justify-content: flex-start;
    font-size: var(--fs-body);
    font-weight: 600;
    line-height: 1.3;
    color: var(--azul);
    background: none;
    border: 0;
    margin: 0;
    text-decoration: none;
  }

  .nav-buttons>a:last-child{
    padding-top:0
  }

  .nav-buttons > a:hover,
  .nav-buttons > .dropdown > .dropbtn:hover {
    color: var(--naranja);
  }

  .nav-buttons .dropdown {
    position: static;
    width: 100%;
    display: block;
  }

  .nav-buttons .dropdown-content {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    background: #fff;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .nav-buttons .dropdown-content a {
    width: 100%;
    display: block;
    text-align: left;
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.3;
    color: var(--azul);
    text-decoration: none;
  }

  .nav-buttons .dropdown-content a:hover {
    color: var(--naranja);
  }

  /* Carrusel / móvil */
  .movil-con-botones {
    flex-direction: column;
  }

  .movil-superpuesto {
    width: min(60vw,420px);
    --screen-top: 3%;
    --screen-left: 6%;
    --screen-width: 89%;
    --screen-height: 94%;
  }

  .pantalla-video {
    top: var(--screen-top);
    left: var(--screen-left);
    width: var(--screen-width);
    height: var(--screen-height);
  }

  .fondo-movil {
    width: 100%;
    height: auto;
    left: 0;
  }

  /* Servicios: 1 columna en móvil */
  .cuadros-container {
    width: 90vw;
    margin: 6% auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: -2%;
  }

  .cuadro {
    max-width: 100%;
    width: 100%;
    margin-top: 2.5%;
  }

  .cuadro img {
    height: auto;
    max-height: 260px;
    object-fit: contain;
  }

  /* IMPORTANTE: ya no machacamos el tamaño de flecha aquí, usamos el clamp global */

  /* Sección cifras móvil */
  .seccionabajo {
    background-attachment: scroll;
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    min-height: auto;
    height: auto;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
  }

  .seccionabajo h3 {
    margin: 0 auto 24px auto;
    font-size: var(--fs-h2);
    line-height: 1.3;
    max-width: 90vw;
    word-break: break-word;
    text-wrap: balance;
    color: var(--amarillo);
  }

  .pruebatodos {
    width: 100%;
    padding: 0;
    margin: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }

  .cuadros-estadisticas {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
  }

  .cuadro-estadistica,
  .cuadro-estadistica3 {
    width: auto;
    max-width: 90vw;
    height: auto;
    text-align: center;
  }

  .cuadro-estadistica .contador,
  .cuadro-estadistica3 .contador {
    font-size: clamp(3rem,4vw,3rem);
    color: var(--amarillo);
  }

  .cuadro-estadistica h3,
  .cuadro-estadistica3 h3 {
    font-size: var(--fs-body);
    line-height: 1.3;
    color: var(--amarillo);
  }

  .cuadro-estadistica p,
  .cuadro-estadistica3 p {
    font-size: var(--fs-body);
    line-height: 1.4;
    color: var(--amarillo);
  }

  .texto-video h3{
    width: 90%;
    margin: 0 auto;
    font-size: var(--fs-body);
    line-height: 1.4;
    text-align: center;
    margin-bottom: 2.2%;
  }

  /* Footer NO fijo en móvil */
  #footer {
    position: static;
    width: 100%;
    background: var(--amarillo);
    box-shadow: none;
    height: 18vh;
    border-top: 2px solid rgba(0,0,0,.08);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 14px;
    font-size: var(--fs-small);
    text-align: center;
  }

  .footer-linea {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    text-align: center;
  }

  .footer-linea p,
  .footer-linea a {
    margin: 0;
    font-size: var(--fs-small);
    font-weight: 500;
    line-height: 1.3;
    color: var(--azul);
    text-decoration: none;
  }

  .footer-linea a:hover {
    text-decoration: underline;
    color: var(--naranja);
  }

  .icono-linea {
    width: clamp(22px,3.5vw,28px);
    height: auto;
  }

  #icono-flotante {
    bottom: 2%;
  }

  #icono-flotante img{
    width: 60px;
  }
}

/* =========================
   TÍTULO ESPECIAL "Nuestra asesoría en cifras"
========================= */

/* Desktop */
@media (min-width: 769px) {
  .nuestra {
    display: inline-block;
    text-align: left;
    font-weight: 650;
    color: var(--amarillo);
    font-size: var(--fs-h2);
    line-height: 0.9 !important;
  }

  .nuestra span {
    display: block;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    color: var(--amarillo);
    line-height: 0.9 !important;
  }

  .nuestra br {
    display: block;
  }
}

/* Móvil */
@media (max-width: 768px) {
  .nuestra {
    display: block;
    white-space: normal;
    text-align: center;
    font-weight: 650;
    color: var(--amarillo);
    font-size: var(--fs-h2);
    line-height: 1.3 !important;
  }

  .nuestra span {
    display: inline;
    white-space: normal;
    margin: 0;
    padding: 0;
    color: var(--amarillo);
    line-height: 1.3 !important;
  }

  .nuestra br {
    display: none;
  }
}


/* =========================
   HEADER + NAV (DESKTOP BASE) (redefinición)
========================= */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  height: clamp(56px,7vw,77px);
  padding-inline: clamp(12px,4vw,24px);
  position: relative;
  z-index: 10000;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
  width: 100%;
}

.logo-titulo {
  display: flex;
  align-items: center;
  gap: clamp(8px,1.2vw,15px);
  margin-left: 15%;
}

.logo{
  height:clamp(44px,5.5vw,60px);
  display:block;
  margin-top: -1.8%;
}

.logo-titulo h1 {
  margin: 0;
  line-height: 1;
  font-size: var(--fs-h1);
  font-weight: 600;
  color: var(--azul);
}

/* NAV DESKTOP */
.nav-buttons {
  display: flex;
  align-items: center;
  gap: clamp(10px,1.5vw,20px);
  margin-right: clamp(8px,10vw,15%);
  margin-top: 1%;
  font-family: 'Poppins','Montserrat',Arial,Helvetica,sans-serif;
}

.nav-buttons a,
.dropbtn {
  display: flex;
  align-items: center;
  padding: 0 clamp(10px,1.2vw,15px);
  text-decoration: none;
  color: var(--azul);
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  transition: color .3s ease;
  font-size: var(--fs-body);
  line-height: 1.2;
  font-family: 'Poppins','Montserrat',Arial,Helvetica,sans-serif;
}

.nav-buttons a:hover,
.dropbtn:hover {
  color: var(--naranja);
}

.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 999;
  padding: clamp(6px,1.2vw,12px);
  background: #fff;
  min-width: 240px;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  transition:
    opacity .15s ease,
    transform .15s ease,
    visibility .15s ease;
}

.dropdown-content a {
  padding: .5rem;
  display: block;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.4;
  color: var(--azul);
  text-decoration: none;
}

.dropdown-content a:hover {
  color: var(--naranja);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* =========================
   BOTÓN HAMBURGUESA
========================= */

/* Estado base (desktop): oculto */
.hamburger {
  display: none;
  box-sizing: border-box;
  /* caja del botón */
  width: 52px;
  height: 39px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 2px transparent;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  /* para alinear las barritas cuando se haga visible en móvil */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: background .3s ease, transform .3s ease;
  z-index: 100000; /* por encima del nav deslizable */
}

/* las barritas */
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--naranja);
  border-radius: 2px;
  transition: all .3s ease;
  line-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  outline: 0;
}

/* X perfectamente centrada */
.hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(50%, 50%);
  transform-origin: center;
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(50%, 50%);
  transform-origin: center;
}
.hamburger.is-active span:nth-child(1){ transform: rotate(45deg) translate(4px, 8px); }
.hamburger.is-active span:nth-child(3){ transform: rotate(-45deg) translate(4px, -8px); }

/* =========================
   VERSIÓN MÓVIL (≤768px) HAMBURGUER + NAV
========================= */

@media (max-width:768px) {

  /* estructura header en móvil */
  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding-inline: 16px;
    gap: 10px;
    height: 56px;
    max-width: 100%;
  }

  .logo-titulo {
    margin-left: 0;
    justify-content: flex-start;
    width: auto;
    gap: 10px;
    margin-top: 5%;
  }

  .logo {
    height: 50px;
  }

  .hamburger {
    display: flex; /* visible en móvil */
    margin-left: auto;
    margin-right: 12px;
    background: rgba(255,255,255,0.6);
    margin-top: 5%;
  }

  /* menú lateral móvil */
  .nav-buttons {
    position: absolute;
    top: clamp(56px,6vw,70px);
    right: 0;
    width: 70vw;
    max-width: 260px;
    background: #fff;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    display: none; /* cerrado por defecto */
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    z-index: 99999;
    margin-right: 0;
  }

  .dropdown{
    margin-top: 5%;
    margin-left: -5%;
  }
  .nav-buttons.is-open {
    margin-top: 0%;
    display: flex; /* se abre con JS */
    padding: 16px;
  }

  .nav-buttons > a,
  .nav-buttons > .dropdown > .dropbtn {
    width: 100%;
    display: block;
    text-align: left;
    justify-content: flex-start;
    font-size: var(--fs-body);
    font-weight: 600;
    line-height: 1.3;
    color: var(--azul);
    background: none;
    border: 0;
    padding: 12px 0;
    margin: 0;
    text-decoration: none;
  }

  .dropbtn{
    margin-left: -5%;
  }

  .nav-buttons > a:hover,
  .nav-buttons > .dropdown > .dropbtn:hover {
    color: var(--naranja);
  }

  .nav-buttons .dropdown {
    position: static;
    width: 100%;
    display: block;
  }

  .nav-buttons .dropdown-content {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    background: #fff;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .nav-buttons .dropdown-content a {
    width: 100%;
    display: block;
    text-align: left;
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.3;
    color: var(--azul);
    text-decoration: none;
  }

  .nav-buttons .dropdown-content a:hover {
    color: var(--naranja);
  }
}

/* =========================
   BANNER COOKIES
========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000; /* por encima de todo, incluso footer fijo */
  background-color:var(--amarillo);
  padding: 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.25);
  font-family: 'Poppins','Montserrat',Arial,Helvetica,sans-serif;
  display: none; /* por defecto oculto, JS lo mostrará si hace falta */
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.cookie-text {
  flex: 1 1 260px;
  font-size: clamp(.9rem,0.25vw,.95rem);
  line-height: 1.4;
  color: var(--azul);
  margin: 0;
}

.cookie-link {
  color: var(--azul);
  text-decoration: underline;
  font-weight: 400;
  margin-left: 10%;
}

.cookie-link:hover {
  color: var(--naranja);
}

.cookie-btn {
  flex-shrink: 0;
  background-color: var(--naranja);
  color: var(--azul);
  border: 0;
  border-radius: 6px;
  font-size: clamp(.9rem,0.25vw,1rem);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  padding: 10px 16px;
  min-width: 110px;
  transition: all .2s ease;
}

.cookie-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* responsive: stack en pantallas pequeñas */
@media (max-width:480px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-btn {
    width: 100%;
  }
}

/* =========================
   COOKIES: BANNER (segunda versión oscura)
========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000; /* encima de footer fijo */
  background-color: rgba(8,32,65,0.95); /* var(--azul) semitransparente */
  color: #fff;
  padding: 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.25);
  font-family: 'Poppins','Montserrat',Arial,Helvetica,sans-serif;
  display: none; /* JS la muestra si hace falta */
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  justify-content: space-between;
}

.cookie-text {
  flex: 1 1 260px;
  font-size: clamp(.9rem,0.25vw,.95rem);
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

.cookie-link {
  color: var(--amarillo);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-link:hover {
  color: var(--naranja);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-btn {
  border: 0;
  border-radius: 6px;
  font-size: clamp(.9rem,0.25vw,1rem);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  padding: 10px 14px;
  min-width: 110px;
  transition: all .2s ease;
  font-family: inherit;
}

.cookie-btn-primario {
  background-color: var(--naranja);
  color: #082041;
}

.cookie-btn-primario:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.cookie-btn-secundario {
  background-color: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
}

.cookie-btn-secundario:hover {
  background-color: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.7);
  transform: translateY(-1px);
}

/* ajuste footer cuando banner está visible */
body.cookie-banner-visible {
  padding-bottom: calc(var(--footer-h) + 120px);
}

/* responsive banner */
@media (max-width:480px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
  }
}

/* =========================
   COOKIES: MODAL
========================= */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 100001; /* encima del banner */
  display: none;   /* JS -> block cuando se abre */
  align-items: center;
  justify-content: center;
  font-family: 'Poppins','Montserrat',Arial,Helvetica,sans-serif;
}

.cookie-modal[aria-hidden="false"] {
  display: flex;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}

.cookie-modal-card {
  position: relative;
  background: #fff;
  color: var(--azul);
  width: 90%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
  z-index: 2;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.cookie-modal-header {
  padding: 20px 24px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cookie-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--azul);
}

.cookie-close {
  background: transparent;
  border: 0;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--azul);
  opacity: .6;
  font-weight: 400;
  padding: 0;
}
.cookie-close:hover {
  opacity: 1;
}

.cookie-modal-body {
  padding: 16px 24px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.cookie-group {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 16px 16px 12px;
  margin-bottom: 16px;
  background: #fff;
}

.cookie-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-group-head h4 {
  margin: 0;
  font-size: .95rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--azul);
}

.cookie-required {
  background: var(--naranja);
  color: #082041;
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 4px 8px;
}

.cookie-optional {
  background: var(--amarillo);
  color: var(--azul);
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 4px 8px;
}

.cookie-group p {
  margin: 8px 0 12px;
  font-size: .85rem;
  line-height: 1.4;
  color: var(--azul);
}

/* Toggle switch */
.cookie-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: .85rem;
  font-weight: 500;
  color: var(--azul);
}

.cookie-toggle input {
  display: none;
}

.cookie-toggle .slider {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(8,32,65,.3);
  position: relative;
  transition: all .2s ease;
}

.cookie-toggle .slider::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
  transition: all .2s ease;
}

.cookie-toggle input:checked + .slider {
  background: var(--naranja);
}

.cookie-toggle input:checked + .slider::after {
  transform: translateX(18px);
}

.cookie-toggle.disabled {
  opacity: .5;
  cursor: not-allowed;
}

.cookie-modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(0,0,0,.08);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-modal-footer .cookie-btn {
  min-width: 140px;
}

.carousel-control-next-icon,.carousel-control-prev-icon{
  margin-top: 44%;
  margin-right: 16%;
  width: 100%;
}

.carousel-control-next-icon {
  margin-right: 0%;
  margin-left: 16%;
}
.carousel-control-next{
  right: 4%;
}
.carousel-control-prev{
  left: 4%;
}
.nuestra span{
  font-weight: 600;
}

/* =========================
   NAV: espaciado uniforme
========================= */
:root{
  --nav-gap: clamp(12px, 1.2vw, 20px);
  --nav-item-px: clamp(10px, 1.2vw, 16px);
  --nav-item-py: 10px;

  /* móvil */
  --nav-mob-item-py: 12px;
  --nav-mob-item-px: 0; /* sin sangría para que todos queden alineados igual */
}

/* Desktop */
.nav-buttons{
  gap: var(--nav-gap);
  margin-top: 0; /* evita micro-descuadres verticales */
}

/* Ítems de primer nivel + "Servicios" (que es un <a> dentro de .dropdown) */
.nav-buttons > a,
.nav-buttons > .dropdown > a{
  padding: var(--nav-item-py) var(--nav-item-px) !important;
  margin: 0 !important;
  line-height: 1.2;
}

/* Ítems del desplegable con el MISMO padding */
.dropdown-content a{
  padding: var(--nav-item-py) var(--nav-item-px) !important;
  margin: 0 !important;
  line-height: 1.2;
}

/* Asegura que el contenedor del dropdown no mete desplazamientos raros */
.dropdown{
  align-items: center;
}

/* =========================
   MÓVIL (panel lateral)
========================= */
@media (max-width:768px){

  /* quita márgenes que descuadraban */
  .nav-buttons .dropdown{
    margin: 0 !important;
  }
  .dropbtn{
    margin-left: 0 !important;
  }

  /* mismo espaciado para TODOS los enlaces (nivel 1 y submenu) */
  .nav-buttons > a,
  .nav-buttons > .dropdown > a,
  .nav-buttons .dropdown-content a{
    padding: var(--nav-mob-item-py) var(--nav-mob-item-px) !important;
    margin: 0 !important;
    line-height: 1.3;
    text-indent: 0; /* sin sangría para que todos queden alineados */
  }

  /* evita huecos entre elementos */
  .nav-buttons{ gap: 0; }
}

/* Forzamos el comportamiento de Bootstrap: solo el slide activo visible */
.carousel .carousel-item { display: none !important; }
.carousel .carousel-item.active { display: block !important; }

/* (Opcional) Asegura tamaño/centrado del “móvil” */
.carousel .movil-superpuesto { margin: 0 auto; max-width: 520px; margin-bottom: 8%;}

/* Garantiza que en el hero solo se muestre 1 imagen según viewport */
.desktop-img { display: block; }
.mobile-img  { display: none; }
@media (max-width: 768px){
  .desktop-img { display: none; }
  .mobile-img  { display: block; }
}

/* TABLET 769–1024 */
@media (min-width:769px) and (max-width:1024px){

  /* --- Base / tipografías un pelín más grandes para legibilidad --- */
  :root{
    --fs-h1: clamp(1.6rem, 0.8vw + 1.2rem, 2.2rem);
    --fs-h2: clamp(1.4rem, 0.7vw + 1.1rem, 2rem);
    --fs-h3: clamp(1.15rem, 0.5vw + 1rem, 1.5rem);
    --fs-body: clamp(1rem, 0.35vw + .95rem, 1.15rem);
  }
  body{ padding-bottom: 0; } /* evitamos solapes con footer fijo */

  /* --- Barra superior --- */
  .barra{
    padding: 8px 12px;
    height: 46px;
    justify-content: space-between;
  }
  .acceso{
    margin-right: 6%;
    gap: 6%;
  }
  .iconos, .iconos-linkedin{ width: clamp(24px,2.2vw,30px); }

  /* --- Header + nav (tocar con el pulgar) --- */
  header{
    height: 64px;
    padding-inline: 20px;
    gap: 12px;
  }
  .logo-titulo{
    margin-left: 0%;
    gap: 12px;
    white-space: nowrap;
    margin-top: 1%;
  }
  .logo{ height: 54px; }

  .nav-buttons{
    margin-right: 6%;
    gap: clamp(12px,1.6vw,18px);
  }
  .nav-buttons a,
  .dropbtn{
    padding: 12px 10px;          /* >44px alto táctil */
    line-height: 1.2;
  }

  /* Mejor experiencia táctil en dropdown: mantener apertura por focus */
  .dropdown-content{
    min-width: 220px;
    padding: 8px;
  }
  .dropdown-content a{
    padding: 10px 8px;
  }

  /* --- Hero --- */
  .main-image{ height: 48vh; object-fit: cover; }
  .texto-superpuesto{
    left: 66%;
    top: 50%;
    transform: translate(-50%,-50%);
    max-width: 70vw;
    padding: 16px 18px;
    backdrop-filter: saturate(115%) blur(2px);
  }

  /* --- Carrusel vídeo en “móvil” simulado --- */
  .video-carousel-container{
    max-width: 880px;
    margin: 36px auto;
  }
  .carousel-control-prev,
  .carousel-control-next{
    width: 50x; height: 50px; top: 50%;
  }

  .carousel-control-next{
    width: 60x; height: 60px; top: 50%; right: 10%;
  }

  .carousel-control-prev{
    width: 60x; height: 60px; top: 50%; left: 10%;
  }
  .movil-superpuesto{
    width: 36%;
    --screen-top: 3%;
    --screen-left: 6.5%;
    --screen-width: 89%;
    --screen-height: 94%;
    margin-bottom: 5%;
  }
  .circulo-amarillo{
    width: clamp(300px,28vw,360px);
    height: clamp(300px,28vw,360px);
  }

  /* --- Servicios: 2 columnas más anchas y cards respirando --- */
  .servicios-container{ margin-top: 5%; padding-bottom: 7%; }
  .cuadros-container{
    width: 84vw;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 5% auto 0;
  }
  .cuadro{
    padding: 5%;
    border-radius: 10px;
  }
  .cuadro img{
    height: clamp(160px,18vw,220px);
    object-fit: cover;
  }
  .cuadro .saber{
    width: 100%;
    margin: 12px 0 0 0;
    justify-content: flex-end;
  }
  .cuadro .saber .flechita{ margin-top: 0; }

  /* --- Sección cifras: evitar parallax en iPad y mejorar layout --- */
  .seccionabajo {
    padding: 48px 24px;
    margin: 0;
    background-attachment: scroll !important; /* iPad fix */
    overflow: visible !important;
  }

  .seccionabajo h3 {
    margin: 0 auto 20px auto !important;
    max-width: 88%;
    text-align: center;
  }

  .pruebatodos {
    padding: 0;
    margin: 0 auto;
    gap: 40px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .cuadros-estadisticas {
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .cuadro-estadistica3{
    width: auto;
  }

  /* --- Footer en tablet: mejor estático para no tapar contenido --- */
  #footer{
    position: static;
    height: auto;
    padding: 14px 16px;
    row-gap: 10px;
    box-shadow: none;
  }

  /* --- WhatsApp flotante un poco menor --- */
  #icono-flotante{ bottom: 6%; right: 18px; }
  #icono-flotante img{ width: 68px; }
}

.cuadro .saber {
  width: 100%;
  display: flex;
  justify-content: flex-end;   /* o flex-start si lo quieres pegado a la izquierda */
  align-items: center;         /* ⭐ clave: los centra verticalmente */
  gap: 6px;
  margin-top: auto;            /* para que “Saber más” quede abajo del card */
  white-space: nowrap;
  overflow: visible;
}

/* =========================
   FLECHA RESPONSIVE REAL
   (BLOQUE FINAL DE PRIORIDAD)
========================= */

.cuadro .saber .flechita {
  width: clamp(36px, 3.2vw, 60px) !important; /* AUMENTA AQUÍ EL TAMAÑO */
  height: auto !important;
  margin: 0 !important;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

/* Garantizar alineación perfecta */
.cuadro .saber {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  overflow: visible !important;
}

.cuadro .saber p {
  margin: 0 !important;
  line-height: 1 !important;
}
