/* =========================================================
   Mendoza & Asociados — Home
   Paleta verde de la marca. Tipografía elegida por Ximena (27/10):
   Libre Baskerville (títulos) · Fraunces (cifras) · Figtree (texto).
   Zonas separadas por bloques de color y tarjetas superpuestas,
   sin líneas decorativas.
   ========================================================= */

/* ---------- 1. Variables (tokens) ---------- */
:root {
  /* Colores de la marca */
  --green: #385328;        /* verde institucional (logo, bandas) */
  --green-dark: #2C4220;   /* verde oscuro (paneles) */
  --green-deep: #1E2B17;   /* verde casi negro (footer, menú celular) */
  --green-light: #B9CFA9;  /* verde claro ("+" de las cifras, etiquetas, hover) */
  --stone: #F3F3EF;        /* gris cálido de fondo */
  --white: #FFFFFF;
  --ink: #23281F;          /* texto principal */
  --ink-soft: #545B4C;     /* texto secundario (cargos, notas) */
  --wa: #25D366;           /* verde de WhatsApp */

  /* Tipografías */
  --f-display: "Libre Baskerville", Georgia, serif;  /* títulos: hero y secciones */
  --f-num: "Fraunces", Georgia, serif;               /* cifras grandes */
  --f-head: "Figtree", system-ui, sans-serif;        /* subtítulos, enlaces, botones */
  --f-text: "Figtree", system-ui, sans-serif;        /* texto */

  /* Escala de tamaños (fluida: crece con el ancho de pantalla) */
  --t-hero: clamp(1.875rem, 0.9rem + 5.2vw, 6rem);
  --t-h1: clamp(1.5rem, 0.55rem + 4.2vw, 4.75rem);
  --t-h2: clamp(1.625rem, 1.1rem + 2.2vw, 3.25rem);
  --t-h3: 1.3125rem;
  --t-lead: clamp(1.125rem, 1rem + 0.35vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;

  /* Espacios */
  --gutter: clamp(20px, 3vw, 32px);          /* margen lateral de la página */
  --section: clamp(96px, 6vw + 64px, 168px); /* distancia entre secciones */
  --max: 1376px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green-light); outline-offset: 3px; }
::selection { background: var(--green-light); color: var(--ink); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- 3. Tipografía ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--t-h2);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.h2--light { color: var(--white); }
.h3 {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: var(--t-h3);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.lead { font-size: var(--t-lead); line-height: 1.55; }

/* ---------- 4. Botones y enlaces ---------- */
/* Botones en forma de píldora (bordes completamente redondeados) */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  font: 600 var(--t-small)/1 var(--f-text);
  text-decoration: none;
  border: 0; border-radius: 999px; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:active { transform: translateY(1px); }
.btn--light { background: var(--white); color: var(--green-dark); }
.btn--light:hover { background: var(--green-light); }
.btn--ghost { background: rgba(255,255,255,.12); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--dark { background: var(--green); color: var(--white); }
.btn--dark:hover { background: var(--green-dark); }
.btn--soft { background: var(--stone); color: var(--green-dark); }
.btn--soft:hover { background: var(--green-light); }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 1rem/1.3 var(--f-head);
  color: var(--green);
  text-decoration: none;
}
.link span { transition: transform .25s var(--ease); }
.link:hover { text-decoration: underline; text-underline-offset: 5px; }
.link:hover span { transform: translateX(4px); }

/* ---------- 5. Navbar: ver header.css (compartido con otras páginas) ---------- */

/* ---------- 6. 1.1 Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(700px, 100svh, 960px);
  display: flex;
  color: var(--white);
  background: var(--green-deep);
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% center;
}
/* Velo leve solo a la izquierda, detrás del texto: la derecha queda nítida, como el original (ajuste 24) */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(22,31,17,.66) 0%, rgba(22,31,17,.48) 34%, rgba(22,31,17,0) 62%), /* taste-skill-ignore: velo bajo texto */
    linear-gradient(0deg, rgba(22,31,17,.32) 0%, rgba(22,31,17,0) 38%); /* abajo a la izquierda, donde va el texto */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 70%);
          mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 70%);
}
/* Sombra muy suave en el texto, para leerlo bien sin oscurecer más la foto */
.hero__title, .hero__lead, .hero__areas a { text-shadow: 0 1px 18px rgba(10,14,8,.45); }
.mya-header .menu__link, .mya-header .mya-lang__opt { text-shadow: 0 1px 10px rgba(10,14,8,.55); }
.hero__content {
  position: relative; z-index: 2;
  width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 180px;
  padding-bottom: clamp(72px, 9vh, 112px); /* el texto queda en la parte baja del hero */
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 0.8rem + 3vw, 3.5rem); /* ajuste 16: más chico */
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
}
/* Una frase por línea */
.hero__title span { display: block; }
.hero__lead {
  margin-top: 24px;
  max-width: 34rem;
  font-size: var(--t-lead);
  line-height: 1.55;
  color: rgba(255,255,255,.94);
}
.hero__areas { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero__areas li { display: inline-flex; align-items: center; }
.hero__areas a {
  /* Ajuste 62: enlaces más grandes (antes 15 px; ahora entre 16 y 19 px según el ancho) */
  font: 600 clamp(1rem, .9rem + .35vw, 1.1875rem)/1.4 var(--f-head);
  color: var(--white);
  text-decoration: none;
  opacity: .9;
}
.hero__areas a::after { content: " →"; color: var(--green-light); }
/* Enlace largo: la flecha va en el HTML, pegada a "(p/ extranjeros)", para que no quede sola en otra línea */
.hero__areas .hero__link-largo::after { content: none; }
.hero__areas .nowrap { white-space: nowrap; }
.hero__flecha { color: var(--green-light); }
.hero__areas a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- 7. 1.2 Trayectoria ---------- */
.trayectoria { background: var(--stone); padding: var(--section) 0; }
/* Cuadro verde con cifras, debajo de la descripción */
.cifras {
  position: relative;
  width: 100%;
  background: var(--green);
  color: var(--white);
  padding: 32px 36px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  overflow: hidden;
}
.cifras__iso {
  position: absolute; right: -50px; top: 50%;
  width: 280px; transform: translateY(-50%);
  opacity: .08; pointer-events: none;
}
.cifra { position: relative; display: flex; flex-direction: column; gap: 6px; }
.cifra__num {
  font: 400 clamp(2.25rem, 1.2rem + 2vw, 3.5rem)/1 var(--f-num);
  font-variation-settings: "opsz" 144;
  font-variant-numeric: tabular-nums; /* los números no "bailan" mientras cuentan */
  letter-spacing: -0.03em;
}
.cifra__plus { color: var(--green-light); font-weight: 300; margin-left: 2px; }
.cifra__label { font-size: var(--t-small); line-height: 1.35; color: rgba(255,255,255,.9); }

.trayectoria__body {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  align-items: center;
}
.trayectoria__foto { grid-column: 1 / 7; position: relative; }
/* Bloque verde desplazado detrás de la foto */
.trayectoria__foto::before {
  content: ""; position: absolute;
  inset: 48px -32px -32px 48px;
  background: var(--green);
}
.trayectoria__foto img { position: relative; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 35%; }
/* Título a la derecha de la foto y la descripción debajo */
.trayectoria__text { grid-column: 7 / 13; padding-left: 64px; display: grid; gap: 28px; justify-items: start; }
.trayectoria__title { font-size: clamp(1.625rem, 0.9rem + 1.75vw, 2.625rem); }

/* ---------- 8. 1.3 Áreas de servicio (título + tarjetas en una pantalla) ---------- */
.areas { position: relative; padding: clamp(80px, 4vw + 48px, 120px) 0; background: var(--white); }
/* Banda verde detrás de la parte baja de las tarjetas */
.areas::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 42%;
  background: var(--green);
}
.areas__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 40px;
}
.areas__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  align-items: stretch; /* las 4 tarjetas en la misma línea y del mismo alto (ajuste 23) */
}
.area { background: var(--white); display: flex; flex-direction: column; }
.area__img { display: block; overflow: hidden; }
.area__img img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .8s var(--ease);
}
.area:hover .area__img img { transform: scale(1.045); }
.area__body { flex: 1; padding: 24px 24px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.area__body p { margin-bottom: 14px; }
.area__body .link { margin-top: auto; } /* "Conocer más" alineado abajo en todas */
/* Etiqueta "Para extranjeros" (pedido del cliente) */
.area__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green-light); color: var(--green-deep);
  font: 600 var(--t-small)/1 var(--f-text);
}

/* ---------- 9. 1.4 Por qué elegirnos ---------- */
.porque { padding: var(--section) 0; }
.porque__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
/* Texto a la izquierda y foto a la derecha, en columnas separadas (sin superposición) */
.porque__card {
  grid-column: 1 / 6; grid-row: 1;
  display: grid; gap: 28px; justify-items: start;
}
.porque__foto { grid-column: 7 / 13; grid-row: 1; }
.porque__foto img { width: 100%; height: auto; } /* foto completa, sin recorte */
.porque__items { display: grid; gap: 26px; }

/* ---------- 10. 1.5 Soft landing ---------- */
.soft { position: relative; color: var(--white); background: var(--green-deep); overflow: hidden; }
.soft__img {
  position: absolute; inset: -8% 0;
  width: 100%; height: 116%;
  object-fit: cover; object-position: 72% center;
  will-change: transform;
}
.soft__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22,31,17,.92) 0%, rgba(22,31,17,.78) 46%, rgba(22,31,17,.15) 85%); /* taste-skill-ignore: velo bajo texto */
}
.soft__content {
  position: relative; z-index: 2;
  padding-block: var(--section);
  display: grid; gap: 32px; justify-items: start;
}
.soft__title { font-size: var(--t-hero); letter-spacing: -0.025em; line-height: 1.04; }
.soft__statement { margin-top: -12px; font: 500 clamp(1.375rem, 1.1rem + 1vw, 2.125rem)/1.25 var(--f-head); letter-spacing: -0.015em; max-width: 24ch; }
.soft__lead { max-width: 36rem; font-size: var(--t-lead); color: rgba(255,255,255,.94); }
.soft__pasos { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 10px; }
.soft__pasos li { background: rgba(255,255,255,.1); padding: 18px 22px; font: 600 1rem/1.35 var(--f-head); }

/* ---------- 11. 1.6 Equipo ---------- */
.equipo { background: var(--green); padding: var(--section) 0; }
.equipo__title { margin-bottom: 64px; }
.equipo__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.persona a { display: block; text-decoration: none; color: var(--ink); cursor: pointer; }
.persona__foto { display: block; overflow: hidden; background: var(--green-dark); }
.persona__foto img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 18%;
  transition: transform .8s var(--ease);
}
/* Tarjeta del nombre, superpuesta al pie de la foto */
.persona__tarjeta {
  position: relative;
  display: grid; gap: 2px;
  margin: -44px 18px 0;
  padding: 18px 22px 20px;
  background: var(--white);
  transition: transform .3s var(--ease);
}
.persona__tarjeta strong { font: 600 1.0625rem/1.3 var(--f-head); }
.persona__tarjeta span { font-size: var(--t-small); color: var(--ink-soft); }
.persona a:hover .persona__foto img { transform: scale(1.04); }
.persona a:hover .persona__tarjeta { transform: translateY(-4px); }

/* Ficha del socio (ventana emergente) */
.ficha {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(20,28,15,.72);
  opacity: 0; transition: opacity .25s var(--ease);
}
.ficha[hidden] { display: none; }
.ficha.is-open { opacity: 1; }
.ficha__panel {
  position: relative;
  width: min(1080px, 100%); max-height: calc(100svh - 48px);
  overflow: auto;
  display: grid; grid-template-columns: 5fr 7fr;
  background: var(--white);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); /* taste-skill-ignore: ventana emergente real */
  transform: translateY(16px); transition: transform .3s var(--ease);
}
.ficha.is-open .ficha__panel { transform: none; }
.ficha__foto { background: var(--stone); }
.ficha__foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.ficha__body { padding: 56px 56px 48px; display: grid; gap: 20px; align-content: start; }
.ficha__rol { font: 600 1rem/1.3 var(--f-head); color: var(--green); }
.ficha__body .h2 { font-size: clamp(1.625rem, 1rem + 1.6vw, 2.5rem); margin-top: -8px; }
.ficha__bloques { display: grid; gap: 18px; margin-top: 8px; }
.ficha__bloques .h3 { font-size: 1.0625rem; color: var(--green-dark); margin-bottom: 4px; }
.ficha__bloques p { color: var(--ink-soft); }
.ficha__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.ficha__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--stone); border: 0; cursor: pointer; color: var(--ink);
  transition: background-color .2s;
}
.ficha__close:hover { background: var(--green-light); }
.ficha__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- 12. 1.7 Clientes ---------- */
.clientes { background: var(--stone); padding: clamp(72px, 3vw + 56px, 120px) 0; }
.clientes__title { text-align: center; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.375rem); }
/* Logos en filas centradas; cada uno en una caja del mismo tamaño */
.logos {
  margin-top: 56px;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 40px 48px;
  /* Ancho justo para 5 logos por fila (5 × 168 + 4 × 48): 15 logos = 3 filas parejas */
  max-width: 1032px; margin-inline: auto;
}
.logos li { width: 168px; height: 72px; display: grid; place-items: center; }
.logos img {
  width: auto; height: auto; max-width: 100%; max-height: 72px; /* alto máximo fijo: ningún logo se sale de su caja */
  filter: grayscale(1);
  opacity: .6;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
/* Logos de colores muy claros (Áncora): se oscurecen un poco para que se lean en gris */
.logos .logo--claro img { filter: grayscale(1) brightness(.62) contrast(1.4); opacity: .75; }
/* Al pasar el mouse, cada logo recupera su color */
@media (hover: hover) {
  .logos li:hover img, .logos .logo--claro:hover img { filter: none; opacity: 1; }
}

/* ---------- 13. 1.8 Cierre ---------- */
/* Ajuste 46: sección más baja (menos espacio exterior y menos relleno del bloque verde) */
.cierre { background: var(--white); padding: clamp(64px, 3vw + 44px, 88px) 0; }
.cierre__panel {
  position: relative; overflow: hidden;
  max-width: 960px; margin-inline: auto;
  background: var(--green-dark); color: var(--white);
  padding: 56px 64px;
  display: grid; gap: 20px; justify-items: center;
  text-align: center;
}
.cierre__iso { position: absolute; right: -70px; bottom: -60px; width: 380px; opacity: .07; pointer-events: none; }
.cierre__panel .h2 { position: relative; }
.cierre__lead { position: relative; font-size: var(--t-lead); max-width: 34rem; color: rgba(255,255,255,.94); }
.cierre__actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }

/* ---------- 14. Footer ---------- */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.82); font-size: var(--t-small); }
.footer__main { padding-top: 96px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 48px; }
.footer__brand { display: grid; gap: 20px; align-content: start; }
.footer__brand img { width: 240px; }
.footer__map { display: block; width: 100%; max-width: 380px; height: 190px; border: 0; border-radius: 10px; } /* mapa, igual que en las páginas internas (ajuste 38) */
.footer__title { font: 600 1rem/1.3 var(--f-head); color: var(--white); margin: 0 0 18px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom {
  margin-top: 80px; padding-block: 28px 32px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: rgba(255,255,255,.62); font-size: var(--t-small);
  padding-right: 88px; /* deja libre el botón de WhatsApp */
}

/* ---------- 15. WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: var(--white);
  box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); /* taste-skill-ignore: botón flotante real */
  transition: transform .2s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float:hover { transform: scale(1.06); }

/* Aviso breve (datos pendientes del prototipo) */
.toast {
  position: fixed; left: 50%; bottom: 100px; z-index: 70;
  transform: translateX(-50%);
  background: var(--green-deep); color: var(--white);
  padding: 14px 20px; font-size: var(--t-small);
  border-radius: 999px;
  max-width: 90vw; text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.25); /* taste-skill-ignore: aviso emergente */
  transition: opacity .25s;
}

/* ---------- 16. Animaciones de entrada ----------
   Solo se ocultan si el script cargó (clase .js en <html>).
   Si el script falla, el contenido se ve igual. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .soft__img { transform: none !important; }
  .area__img img, .persona__foto img, .persona__tarjeta, .ficha, .ficha__panel, .logos img { transition: none; }
}

/* ---------- 18. Tablet ---------- */
@media (max-width: 1100px) {
  .areas__grid { grid-template-columns: repeat(2, 1fr); }
  .areas::after { height: 30%; }
  .equipo__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .trayectoria__text { padding-left: 40px; }
  .porque__card { grid-column: 1 / 7; padding-right: 16px; }
  .porque__foto { grid-column: 7 / 13; }
  .footer__main { grid-template-columns: 1fr 1fr; }
}

/* ---------- 19. Celular y tablet vertical ---------- */
@media (max-width: 900px) {
  .hero { min-height: 100svh; }
  .hero__img { object-position: 35% center; }
  /* Celular: el texto ocupa todo el ancho; el velo va de abajo (más oscuro) hacia arriba (casi nada) */
  .hero__scrim {
    background: linear-gradient(0deg, rgba(22,31,17,.78) 0%, rgba(22,31,17,.5) 45%, rgba(22,31,17,.12) 100%); /* taste-skill-ignore: velo bajo texto */
    -webkit-mask-image: none; mask-image: none;
  }
  .hero__content { padding-top: 130px; padding-bottom: 64px; }
  .hero__lead { margin-top: 20px; }
  .hero__areas { margin-top: 28px; padding-right: 64px; } /* deja libre el botón flotante de WhatsApp */

  .cifras { padding: 28px 22px; gap: 16px; }
  .cifras__iso { width: 220px; right: -70px; }

  .trayectoria__body, .porque__grid { grid-template-columns: 1fr; gap: 0; }
  .trayectoria__foto, .trayectoria__text,
  .porque__foto, .porque__card { grid-column: 1; grid-row: auto; }
  .trayectoria__foto { margin-right: 16px; }
  .trayectoria__foto::before { inset: 24px -16px -16px 24px; }
  .trayectoria__text { margin-top: 56px; gap: 22px; padding-left: 0; }

  .areas__head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .areas__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .area__body { padding: 22px 20px 26px; }

  .porque__card { padding-right: 0; }
  .porque__foto { margin-top: 48px; }

  .soft__scrim { background: rgba(22,31,17,.8); }
  .soft__pasos { grid-template-columns: 1fr; width: 100%; }

  .equipo__title { margin-bottom: 40px; }
  .equipo__grid { gap: 32px 14px; }
  .persona__tarjeta { margin: -28px 8px 0; padding: 12px 14px 14px; }
  .persona__tarjeta strong { font-size: .9375rem; }
  .persona__tarjeta span { font-size: .8125rem; }

  .ficha { padding: 0; place-items: end stretch; }
  .ficha__panel { grid-template-columns: 1fr; max-height: 92svh; }
  .ficha__foto img { aspect-ratio: 4 / 3; height: auto; object-position: center 15%; }
  .ficha__body { padding: 32px 24px 40px; }

  .logos { margin-top: 40px; gap: 28px 20px; }
  .logos li { width: 132px; height: 56px; }
  .logos img { max-height: 56px; }

  .cierre__panel { padding: 44px 24px; }

  .footer__main { grid-template-columns: 1fr; gap: 36px; padding-top: 72px; }
  .footer__bottom { margin-top: 56px; flex-direction: column; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}

/* Celular: título del hero más chico para que cada frase entre en una línea */
@media (max-width: 600px) {
  .hero__title { font-size: 6.5vw; letter-spacing: -0.035em; }
  .cifra__num { font-size: 2rem; }
  .cifra__label { font-size: .8125rem; }
  .areas__grid { grid-template-columns: 1fr; }
  .areas::after { height: 16%; }
}


/* =========================================================
   Ajuste 78 — Servicios del hero como botones píldora (Ronda 15, 04/11)
   Mismo lenguaje que la píldora del idioma activo en la barra:
   borde blanco fino y fondo blanco muy transparente con desenfoque.
   Al pasar el mouse se rellena de blanco y el texto pasa a verde.
   ========================================================= */
.hero__areas { gap: 12px; }
.hero__areas a {
  display: inline-block; /* inline-flex juntaba "invertir" y "en" (se perdía el espacio) */
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55); /* taste-skill-ignore: píldora, pedido del cliente */
  background: rgba(255,255,255,.10);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  opacity: 1;
  text-shadow: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.hero__areas a::after { content: "\00a0→"; } /* espacio fijo: la flecha nunca queda sola */
.hero__areas a:hover, .hero__areas a:focus-visible {
  background: var(--white); border-color: var(--white); color: var(--green-dark);
  text-decoration: none;
}
.hero__areas a:hover::after, .hero__areas a:hover .hero__flecha,
.hero__areas a:focus-visible::after, .hero__areas a:focus-visible .hero__flecha { color: var(--green); }
@media (max-width: 760px) {
  .hero__areas { gap: 10px; }
  .hero__areas a { padding: 10px 16px; font-size: .9375rem; }
}
/* Celulares angostos (375 px): un poco más chica para que la píldora larga entre en una línea */
@media (max-width: 400px) {
  .hero__areas a { padding: 10px 14px; font-size: .875rem; }
}

/* ---------- Ajuste 84 · Soft landing: recupera el alto de antes y baja el texto ----------
   Al quitar las 4 etiquetas (ajuste 83) la sección quedó más baja. Acá se le devuelve
   ese espacio (157 px en computadora, 292 px en celular, que era lo que ocupaban las
   etiquetas + su separación), pero ARRIBA del título, para que el texto baje.
   Abajo el margen se achica, así el botón queda cerca de la base.
   El alto total de la sección queda igual al de antes. */
.soft__content {
  --soft-base: clamp(48px, 5vw, 80px);  /* margen entre el botón y la base de la sección */
  padding-top: calc(var(--section) * 2 + 157px - var(--soft-base));
  padding-bottom: var(--soft-base);
}
@media (max-width: 900px) {
  .soft__content { padding-top: calc(var(--section) * 2 + 292px - var(--soft-base)); }
}

/* ---------- Ronda 16 (06/11) — Home ---------- */

/* Ajuste 88 · Esquinas levemente redondeadas en los dos cuadros verdes:
   indicadores (30+ / 100+ / 25+) y cierre "Conversemos.".
   Ya tienen overflow:hidden, así que la marca de agua queda recortada dentro de la curva. */
.cifras, .cierre__panel { border-radius: 14px; }

/* Ajuste 92 · Logos de clientes: con Match, iStore y Nola son 18 → 6 por fila (6 + 6 + 6).
   Ancho justo para 6 logos: 6 × 168 + 5 × 48 = 1248 px. En celular se reparten solos. */
.logos { max-width: 1248px; }
/* Nola tiene letras muy gruesas y se veía más grande que el resto: se achica un poco */
.logos .logo--chico img { max-height: 52px; }
@media (max-width: 900px) { .logos .logo--chico img { max-height: 42px; } }

/* ---------- Ronda 17 (07/11) — Home ---------- */

/* Ajuste 94 · Hero en celular y tablet: el encuadre se corre a la derecha
   para mostrar el escritorio (no los sillones del medio). Computadora sigue en 62%. */
@media (max-width: 900px) {
  .hero__img { object-position: 86% center; }
}

/* Ajuste 95 · Cierre "Contactanos.": franja verde de borde a borde (ya no es un cuadro centrado).
   Texto a la izquierda; el botón de WhatsApp a la derecha, alineado con la base de la frase. */
.cierre {
  position: relative; overflow: hidden;
  background: var(--green-dark); color: var(--white);
  padding: clamp(64px, 3vw + 52px, 104px) 0;
}
.cierre__panel {
  max-width: none; margin: 0; padding: 0;
  background: none; border-radius: 0; overflow: visible;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
  text-align: left;
}
.cierre__texto { display: grid; gap: 20px; position: relative; }
.cierre__lead { max-width: 32rem; }
.cierre__actions { flex-shrink: 0; margin-top: 0; }
/* Marca de agua MA en el borde derecho de la franja */
.cierre__iso { right: -60px; bottom: -70px; width: 400px; }

@media (max-width: 900px) {
  .cierre__panel { flex-direction: column; align-items: flex-start; gap: 32px; padding: 0; }
  .cierre__actions { justify-content: flex-start; }
  .cierre__iso { width: 300px; right: -80px; bottom: -60px; }
}

/* ---------- Ronda 18 (07/11) — Home ---------- */

/* Ajuste 97 · Cierre "Contactanos.": se mantiene la franja verde de borde a borde,
   pero el texto vuelve a ir centrado y el isotipo MA (copia sin margen transparente)
   va completo a la derecha, a todo el alto de la franja. */
.cierre__panel { flex-direction: column; align-items: center; justify-content: center; gap: 32px; text-align: center; }
.cierre__texto { justify-items: center; }
.cierre__actions { justify-content: center; }
.cierre__iso {
  top: 0; bottom: 0; right: 0; left: auto;
  height: 100%; width: auto; max-width: none;
}
@media (max-width: 900px) {
  .cierre__panel { align-items: center; }
  .cierre__actions { justify-content: center; }
  /* En celular la franja es alta y angosta: el isotipo sigue completo y a la derecha, pero más chico */
  .cierre__iso { top: auto; bottom: 0; right: 0; height: auto; width: 70vw; }
}

/* Ajuste 100 · Footer: el logo queda solo en la primera fila; debajo van el mapa
   y las 3 columnas, todas alineadas arriba (los títulos empiezan al ras del mapa).
   Menos espacio arriba y debajo del mapa. */
.footer__brand { display: contents; } /* logo y mapa pasan a ser celdas de la grilla del footer */
.footer__brand img { grid-column: 1 / -1; justify-self: start; }
.footer__main { padding-top: 72px; row-gap: 40px; align-items: start; }
.footer__bottom { margin-top: 56px; }
@media (max-width: 900px) {
  .footer__main { padding-top: 56px; row-gap: 32px; }
  .footer__bottom { margin-top: 40px; }
}

/* ---------- Ronda 19 (07/11) — Home ---------- */
/* Ajuste 103 · Footer: ES · PT · EN son links a la misma página en cada idioma */
.footer__lang a.is-active { color: var(--white); font-weight: 600; }
/* En portugués la píldora larga del hero ("Assessoria para investir no Paraguai →") es un poco más ancha:
   en celulares chicos se achica apenas su relleno para que siga en una sola línea */
@media (max-width: 380px) {
  html[lang="pt-BR"] .hero__link-largo { padding-inline: 11px; }
}
