/* ==========================================================
   Landing Nicolás Mauro v2 — fondo claro, enfoque clínico y preventivo
   Legibilidad +45: cuerpo 19-20 px, nada < 15 px, botones ≥ 60 px.
   ========================================================== */
:root {
  --blanco: #ffffff;
  --fondo: #f7f9f7;
  --texto: #1b1f1c;          /* casi negro */
  --texto2: #3f4641;         /* párrafos: 9.8:1 sobre blanco */
  --texto3: #5c645e;         /* notas: 6:1 sobre blanco */
  --verde: #2f6f3b;          /* títulos en verde: 6.3:1 sobre blanco */
  --verde-boton: #2c5e36;
  --verde-hover: #234d2c;
  --verde-marca: #3a8c3f;
  --verde-claro: #e7f1e7;
  --linea: #dde5dd;
  --wa: #25d366;
  --ancho: 1240px;
  --fuente: 'Barlow', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--fuente); font-size: 1.1875rem; line-height: 1.6; color: var(--texto); background: var(--blanco); overflow-x: hidden; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--verde-marca); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--ancho); margin: 0 auto; padding: 0 32px; }

/* ---------- Botón ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 64px; padding: 16px 38px; border-radius: 999px;
  background: var(--verde-boton); color: #fff; text-decoration: none;
  font-family: var(--fuente); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.2px;
  box-shadow: 0 8px 24px rgba(44, 94, 54, 0.28); transition: background .2s, transform .15s;
}
.btn:hover { background: var(--verde-hover); transform: translateY(-1px); }
.btn svg { width: 24px; height: 24px; flex: 0 0 auto; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Portada ---------- */
.portada { position: relative; min-height: min(100vh, 860px); display: flex; flex-direction: column; justify-content: center; background: var(--blanco); overflow: hidden; }
.portada > .wrap { width: 100%; position: relative; z-index: 1; }
/* La foto empieza donde termina la columna de texto (la parte que se superpone es el degradé transparente). */
.portada-foto { position: absolute; top: 0; right: 0; bottom: 0; left: max(46%, calc((100vw - var(--ancho)) / 2 + 32px + 640px)); z-index: 0; }
.portada-foto img {
  width: 100%; height: 100%; object-fit: cover; object-position: 55% 15%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 12%, #000 40%);
          mask-image: linear-gradient(90deg, transparent 0%, transparent 12%, #000 40%);
}
.portada-foto img.temporal { object-position: 100% 30%; }
/* arcos verdes decorativos detrás de la foto */
.portada-foto::before, .portada-foto::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; }
.portada-foto::before { width: 620px; height: 620px; left: 12%; top: 6%; border: 26px solid rgba(58, 140, 63, 0.10); }
.portada-foto::after { width: 380px; height: 380px; right: -60px; top: 24%; border: 18px solid rgba(58, 140, 63, 0.08); }

.portada-texto { max-width: 680px; padding: 64px 0; }
.firma { display: flex; align-items: center; gap: 16px; font-size: 1.2rem; font-weight: 500; color: var(--texto2); margin-bottom: 16px; }
.firma::before { content: ''; width: 44px; height: 3px; border-radius: 2px; background: var(--verde-marca); }
.portada h1 { font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 800; line-height: 1.02; text-transform: uppercase; letter-spacing: -0.5px; margin-bottom: 20px; }
.portada h1 span { display: block; color: var(--verde); }
.portada h1 span.negro { color: var(--texto); }
@media (min-width: 821px) { .portada h1 span { white-space: nowrap; } }
.bajada { font-size: 1.3rem; line-height: 1.55; color: var(--texto2); max-width: 590px; margin-bottom: 24px; }

.credencial { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.credencial .escudo { flex: 0 0 auto; width: 52px; height: 52px; color: var(--verde); }
.credencial p { padding-left: 18px; border-left: 2px solid var(--linea); font-size: 1.1rem; line-height: 1.45; color: var(--texto2); }
.credencial b { color: var(--texto); font-weight: 600; }
.credencial .slogan { font-size: 1.45rem; line-height: 1.3; font-weight: 700; color: var(--texto); }
.credencial .slogan span { color: var(--verde); }
.firma .sep { color: var(--verde-marca); font-weight: 700; margin: 0 -4px; }

/* ---------- Títulos de sección ---------- */
.kicker { display: flex; align-items: center; gap: 16px; font-size: 1.05rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--texto2); margin-bottom: 16px; }
.kicker::before { content: ''; width: 48px; height: 3px; border-radius: 2px; background: var(--verde-marca); }
h2 { font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -1px; margin-bottom: 18px; }
h2 span { color: var(--verde); }

/* ---------- Sobre mí ---------- */
.sobre { position: relative; overflow: hidden; padding: 110px 0; background: linear-gradient(180deg, #fbfcfb 0%, #f4f8f4 100%); border-top: 1px solid var(--linea); }
.sobre::before { content: ''; position: absolute; width: 900px; height: 900px; right: -260px; top: -220px; border-radius: 50%; border: 70px solid rgba(58, 140, 63, 0.06); pointer-events: none; }
.sobre::after { content: ''; position: absolute; width: 520px; height: 520px; left: -300px; bottom: -260px; border-radius: 50%; border: 50px solid rgba(58, 140, 63, 0.05); pointer-events: none; }
.sobre-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.sobre-sub { font-size: 1.45rem; line-height: 1.45; color: #2f3531; font-weight: 500; margin-bottom: 22px; }
.sobre-texto > p:not(.kicker):not(.sobre-sub) { color: var(--texto2); margin-bottom: 16px; max-width: 660px; }
.sobre-texto strong { color: var(--verde); font-weight: 700; }

/* ilustración */
.orbita { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 0.86; margin: 0 auto 28px; }
.orbita-aro { position: absolute; left: 50%; top: 52%; width: 100%; transform: translate(-50%, -50%); }
.orbita .halo { position: absolute; left: 50%; top: 52%; width: 44%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #e2efe3 0%, #edf5ee 60%, rgba(237, 245, 238, 0) 72%); }
.orbita .centro-ico { position: absolute; left: 50%; top: 52%; width: 27%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 10px 30px rgba(47, 111, 59, 0.12); display: flex; align-items: center; justify-content: center; }
.orbita .centro-ico svg { width: 62%; }
.baldosa { position: absolute; width: 23%; aspect-ratio: 1; border-radius: 22%; background: #fff; border: 1px solid #e8f0e8; box-shadow: 0 12px 30px rgba(31, 60, 36, 0.08); display: flex; align-items: center; justify-content: center; color: #1f5a2b; }
.baldosa svg { width: 50%; height: 50%; }
.b-correr { left: 4%; top: 10%; }
.b-manzana { left: 47%; top: -2%; }
.b-pesa { right: 0; top: 33%; }
.b-corazon { right: 14%; top: 72%; }

/* tarjetas de trayectoria + botón, debajo del texto y la ilustración */
.sobre-pie { position: relative; z-index: 1; margin-top: 56px; text-align: center; }
.datos { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; text-align: center; }
.datos li { background: #fff; border: 1px solid #e8f0e8; border-radius: 18px; padding: 30px 24px; box-shadow: 0 10px 28px rgba(31, 60, 36, 0.06); }
.datos .ico { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: var(--verde-claro); color: var(--verde); display: flex; align-items: center; justify-content: center; }
.datos .ico svg { width: 44px; height: 44px; }
.datos b { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1.12; color: var(--verde); margin-bottom: 8px; }
.datos li span:not(.ico) { display: block; font-size: 1.1rem; line-height: 1.4; color: var(--texto2); }

@media (max-width: 1100px) {
  .sobre-grid { grid-template-columns: 1fr; gap: 48px; }
  .sobre-visual { max-width: 720px; }
}

/* ---------- Cómo puedo ayudarte ---------- */
.ayudarte { position: relative; overflow: hidden; padding: 100px 0; background: var(--blanco); border-top: 1px solid var(--linea); }
.ayudarte::before { content: ''; position: absolute; width: 700px; height: 700px; right: -320px; top: -300px; border-radius: 50%; border: 60px solid rgba(58, 140, 63, 0.05); pointer-events: none; }
.ayudarte-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.ayudarte h2 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.ayudarte h2 span { display: block; }
.ayudarte-sub { font-size: 1.3rem; line-height: 1.5; color: var(--texto2); margin-bottom: 30px; max-width: 640px; }
.ayudarte-sub strong { color: var(--texto); }

/* subtítulo con línea a la derecha: «¿QUÉ TRABAJAMOS?» */
.subtitulo-linea { display: flex; align-items: center; gap: 16px; font-size: 1.15rem; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--verde); margin-bottom: 14px; }
.subtitulo-linea::after { content: ''; flex: 1; height: 2px; background: #cfe0d0; }

.areas-lista { list-style: none; display: grid; gap: 10px; }
.areas-lista li { display: grid; grid-template-columns: 56px 200px 1fr; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; background: #f5f9f5; border: 1px solid #e6efe6; border-radius: 16px; }
.areas-lista .ico, .integral .ico { width: 56px; height: 56px; border-radius: 50%; background: var(--verde-claro); color: var(--verde); display: flex; align-items: center; justify-content: center; }
.areas-lista .ico svg, .integral .ico svg { width: 28px; height: 28px; }
.areas-lista b { font-size: 1.2rem; line-height: 1.2; color: var(--verde); padding-right: 14px; border-right: 2px solid #dde8dd; }
.areas-lista li > span:last-child { font-size: 1.05rem; line-height: 1.35; color: var(--texto2); }

.ayudarte-lado { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.integral { background: #f2f7f2; border: 1px solid #e3ede3; border-radius: 20px; padding: 26px 26px 10px; }
.integral-titulo { gap: 12px; font-size: 1.25rem; margin-bottom: 18px; }
.integral-titulo .escudo-mas { width: 40px; height: 40px; flex: 0 0 auto; }
.integral ul { list-style: none; }
.integral li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; margin-bottom: 18px; }
.integral li p { font-size: 1.08rem; line-height: 1.45; color: var(--texto2); }
.integral li strong { color: var(--texto); }
.ayudarte-lado .btn { align-self: stretch; }

@media (max-width: 1100px) {
  .ayudarte-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Cómo trabajo ---------- */
.trabajo { position: relative; overflow: hidden; padding: 100px 0; background: linear-gradient(180deg, #fbfcfb 0%, #f4f8f4 100%); border-top: 1px solid var(--linea); }
.trabajo::before { content: ''; position: absolute; width: 640px; height: 640px; right: -300px; top: -280px; border-radius: 50%; border: 60px solid rgba(58, 140, 63, 0.05); pointer-events: none; }
.trabajo-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.trabajo h2 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); line-height: 1.03; }
.trabajo h2 span { display: block; }

.modalidad { display: grid; grid-template-columns: 64px 1fr 64px; gap: 16px; align-items: center; margin: 26px 0 34px; }
.modalidad .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--verde-claro); color: var(--verde); display: flex; align-items: center; justify-content: center; }
.modalidad .ico svg { width: 32px; height: 32px; }
.modalidad p { font-size: 1.15rem; line-height: 1.4; color: var(--texto2); padding-right: 16px; border-right: 2px solid #d4e3d4; }
.modalidad strong { color: var(--verde); }

/* pasos con línea punteada que los une */
.pasos { list-style: none; display: grid; gap: 14px; }
.pasos li { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 20px; align-items: center; padding: 16px 22px 16px 14px; background: #fff; border: 1px solid #e6efe6; border-radius: 18px; box-shadow: 0 8px 22px rgba(31, 60, 36, 0.05); }
.pasos li:not(:last-child)::after { content: ''; position: absolute; left: 53px; top: calc(50% + 40px); height: calc(100% - 66px); border-left: 2px dotted var(--verde-marca); }
.pasos .ico { position: relative; z-index: 1; width: 80px; height: 80px; border-radius: 50%; background: var(--verde-claro); color: var(--verde); display: flex; align-items: center; justify-content: center; }
.pasos .ico svg { width: 38px; height: 38px; }
.pasos b { display: flex; align-items: baseline; gap: 14px; font-size: 1.35rem; line-height: 1.2; color: var(--verde); margin-bottom: 4px; }
.pasos .num { font-size: 1.9rem; font-weight: 800; color: var(--verde); letter-spacing: -1px; }
.pasos p { font-size: 1.08rem; line-height: 1.45; color: var(--texto2); }
.btn-entrevista { text-transform: uppercase; letter-spacing: 0.5px; }

@media (max-width: 1100px) {
  .trabajo-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Testimonios (carrusel: 3 por vista en compu, 1 en celular) ---------- */
.testimonios { position: relative; overflow: hidden; padding: 100px 0; background: var(--blanco); border-top: 1px solid var(--linea); }
.testimonios h2 span { color: var(--verde); }
.carrusel { margin-top: 28px; }
.pista { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 2px 14px; }
.pista::-webkit-scrollbar { display: none; }
.pista:focus-visible { outline: 3px solid var(--verde-marca); outline-offset: 4px; border-radius: 16px; }
.testi { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; margin: 0; padding: 26px 24px 22px; background: #f6faf6; border: 1px solid #e3ede3; border-radius: 20px; }
.testi blockquote { position: relative; font-size: 1.08rem; line-height: 1.55; color: var(--texto); }
.testi blockquote::before { content: '“'; display: block; font-family: Georgia, serif; font-size: 3.2rem; line-height: 0.6; height: 22px; color: var(--verde-marca); margin-bottom: 6px; }
.testi figcaption { display: flex; align-items: center; gap: 14px; padding-top: 14px; border-top: 1px solid #e0eae0; }
.testi figcaption img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--verde-claro); }
.testi figcaption .iniciales { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; background: var(--verde-claro); color: var(--verde); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--verde-claro); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; letter-spacing: 1px; }
.testi figcaption span { font-size: 1rem; line-height: 1.35; color: var(--texto2); }
.testi figcaption b { display: block; font-size: 1.08rem; color: var(--texto); }
.testi figcaption i { display: block; font-size: 0.95rem; color: var(--texto3); }

.controles { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 12px; }
.flecha { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--verde-boton); background: #fff; color: var(--verde-boton); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.flecha svg { width: 26px; height: 26px; }
.flecha:hover:not(:disabled) { background: var(--verde-boton); color: #fff; }
.flecha:disabled { opacity: .35; cursor: default; }
.contador { min-width: 90px; text-align: center; font-size: 1.1rem; font-weight: 600; color: var(--texto2); }
.testimonios-cta { margin-top: 28px; text-align: center; }

@media (max-width: 1100px) {
  .testi { flex-basis: calc((100% - 20px) / 2); }
}

/* ---------- Preguntas frecuentes (acordeón: se abre una por vez) ---------- */
.faq { position: relative; overflow: hidden; padding: 100px 0; background: linear-gradient(180deg, #fbfcfb 0%, #f4f8f4 100%); border-top: 1px solid var(--linea); }
.faq::before { content: ''; position: absolute; width: 600px; height: 600px; left: -320px; bottom: -300px; border-radius: 50%; border: 56px solid rgba(58, 140, 63, 0.05); pointer-events: none; }
.faq-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq h2 { font-size: clamp(2.3rem, 4.2vw, 3.5rem); }
.faq h2 span { display: block; }
.faq-ayuda { font-size: 1.1rem; color: var(--texto2); margin-bottom: 30px; }
.faq-lista { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid #e3ede3; border-radius: 16px; box-shadow: 0 6px 18px rgba(31, 60, 36, 0.04); transition: border-color .2s; }
.faq details[open] { border-color: #b9d4bb; }
.faq summary { list-style: none; cursor: pointer; position: relative; display: flex; align-items: center; min-height: 64px; padding: 16px 70px 16px 22px; font-size: 1.18rem; font-weight: 700; line-height: 1.3; color: var(--texto); border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--verde); }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--verde-claro); color: var(--verde); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 600; line-height: 1; transition: transform .2s, background .2s, color .2s; }
.faq details[open] summary { color: var(--verde); }
.faq details[open] summary::after { content: '−'; background: var(--verde-boton); color: #fff; }
.faq .resp { padding: 0 22px 20px; }
.faq .resp p { font-size: 1.08rem; line-height: 1.55; color: var(--texto2); }
.faq .resp p + p { margin-top: 10px; }

@media (max-width: 1100px) {
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Cierre: WhatsApp + redes, y pie de página ---------- */
.cierre { position: relative; overflow: hidden; background: var(--blanco); border-top: 1px solid var(--linea); }
.cierre::before { content: ''; position: absolute; width: 700px; height: 700px; right: -300px; top: -260px; border-radius: 50%; border: 60px solid rgba(58, 140, 63, 0.05); pointer-events: none; }
.cierre-contenido { position: relative; z-index: 1; padding-top: 100px; padding-bottom: 90px; text-align: center; }
.cierre .kicker { justify-content: center; }
.cierre h2 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
.cierre h2 span { display: block; font-size: 0.55em; line-height: 1.25; color: var(--texto2); font-weight: 600; letter-spacing: 0; margin-top: 10px; }

/* botón de WhatsApp con los colores de WhatsApp (se reconoce al instante) */
.btn-wa { background: var(--wa); color: #07301a; box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35); padding: 14px 40px 14px 28px; margin-top: 18px; }
.btn-wa:hover { background: #3ee07a; }
.btn-wa .logo-wa { width: 40px; height: 40px; }
.btn-wa span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; font-size: 1.35rem; }
.btn-wa small { font-size: 1rem; font-weight: 600; opacity: .85; margin-top: 3px; }

.redes-titulo { margin: 44px 0 14px; font-size: 1.05rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--texto3); }
.redes { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.redes a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 22px 10px 10px; border: 1px solid #e3ede3; border-radius: 999px; background: #f6faf6; text-decoration: none; color: var(--texto); transition: border-color .2s, background .2s; }
.redes a:hover { border-color: var(--verde-marca); background: #fff; }
.redes .ico { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 auto; }
.redes .ico svg { width: 26px; height: 26px; }
.redes .ico-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.redes .ico-tt { background: #111; }
.redes a > span:last-child { display: flex; flex-direction: column; align-items: flex-start; font-size: 1.05rem; line-height: 1.25; color: var(--texto2); }
.redes b { font-size: 1.1rem; color: var(--texto); }

.pie { position: relative; z-index: 1; background: #141815; color: #c9d1ca; padding: 34px 0 22px; }
.pie-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pie-marca img { width: 200px; height: auto; }
.pie-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.pie-links a { color: #e4ebe5; font-size: 1.08rem; font-weight: 600; text-decoration: none; padding: 6px 0; }
.pie-links a:hover { color: #7fd085; text-decoration: underline; }
.legal.legal-chico { margin-top: 8px; padding-top: 0; border-top: 0; }
.legal { margin-top: 18px; padding-top: 16px; border-top: 1px solid #2c332d; font-size: 0.95rem; line-height: 1.5; color: #aeb7af; }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed; right: 22px; bottom: 22px; z-index: 900; display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #07301a; text-decoration: none; font-weight: 700; font-size: 1.1rem;
  padding: 14px 22px 14px 16px; border-radius: 999px; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
}
.wa-flotante svg { width: 30px; height: 30px; }
.wa-flotante:hover { background: #3ee07a; }
.wa-flotante { transition: opacity .25s, transform .25s; }
.wa-flotante.en-cierre { opacity: 0; transform: scale(.7); pointer-events: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .portada-texto { max-width: 580px; }
}

/* ---------- Celular: foto arriba y toda la portada en una sola pantalla ---------- */
@media (max-width: 820px) {
  body { font-size: 1.125rem; }
  .wrap { padding: 0 18px; }
  .portada { min-height: 0; }
  .portada > .wrap { order: 1; }
  /* La foto usa todo el alto que sobra para que el botón quede visible sin deslizar.
     Se usa lvh (pantalla completa) menos el texto (~415 px) y ~85 px para la barra flotante de Safari en iPhone. */
  .portada-foto { position: relative; left: auto; width: 100%; order: 0; height: 300px; height: clamp(200px, calc(100svh - 470px), 380px); height: clamp(200px, calc(100lvh - 490px), 420px); }
  /* Solo iPhone/iPad (WebKit de iOS): ahí 100lvh termina unos 20 px por debajo de la barra flotante de Safari,
     así que se resta menos texto de reserva. Medido en el iPhone de Nico: lvh ≈ 735, barra a ~713. */
  @supports (-webkit-touch-callout: none) {
    .portada-foto { height: clamp(200px, calc(100lvh - 425px), 420px); }
  }
  .portada-foto img { -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%); mask-image: linear-gradient(180deg, #000 84%, transparent 100%); object-position: 50% 0; }
  .portada-foto img.temporal { object-position: 100% 30%; }
  .portada-foto::before { width: 300px; height: 300px; left: -40px; top: 30px; border-width: 16px; }
  .portada-foto::after { display: none; }
  .portada-texto { max-width: none; padding: 0 0 22px; }
  .firma { flex-wrap: wrap; row-gap: 0; column-gap: 12px; font-size: 1rem; line-height: 1.35; margin-bottom: 10px; }
  .firma::before { width: 30px; }
  .firma .sep { display: none; }
  .firma span:last-child { flex-basis: 100%; padding-left: 42px; }
  .portada h1 { font-size: clamp(1.7rem, 7.6vw, 2.2rem); margin-bottom: 12px; letter-spacing: -0.3px; }
  .bajada { font-size: 1.1rem; line-height: 1.45; margin-bottom: 14px; }
  .credencial { gap: 14px; margin-bottom: 18px; }
  .credencial .escudo { width: 40px; height: 40px; }
  .credencial p { padding-left: 14px; }
  .credencial .slogan { font-size: 1.2rem; line-height: 1.25; }
  .portada .btn { width: 100%; min-height: 58px; padding: 12px 24px; font-size: 1.25rem; }
  /* Sobre mí en celular: sin la ilustración (decorativa) para no alargar la página */
  /* Sobre mí compacto: la idea es que entre en una pantalla (o lo más cerca posible) */
  .sobre { padding: 32px 0 28px; }
  .sobre .kicker { font-size: 0.95rem; margin-bottom: 6px; }
  .sobre .kicker::before { width: 32px; }
  .sobre h2 { font-size: clamp(1.9rem, 8.6vw, 2.2rem); margin-bottom: 6px; letter-spacing: -0.5px; }
  .sobre-sub { font-size: 1.12rem; line-height: 1.35; margin-bottom: 10px; }
  .sobre-texto > p:not(.kicker):not(.sobre-sub) { font-size: 1.0625rem; line-height: 1.5; margin-bottom: 8px; }
  .orbita { display: none; }
  /* tarjetas compactas una debajo de la otra (ícono a la izquierda), letra ≥ 15 px */
  .sobre-grid { gap: 0; }
  .sobre-pie { margin-top: 12px; }
  .sobre-pie .btn { width: 100%; min-height: 56px; padding: 10px 20px; font-size: 1.2rem; gap: 10px; }
  .datos { grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; text-align: left; }
  .datos li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; }
  .datos .ico { flex: 0 0 46px; width: 46px; height: 46px; margin: 0; }
  .datos .ico svg { width: 26px; height: 26px; }
  .datos b { font-size: 1.15rem; margin-bottom: 0; }
  .datos li span:not(.ico) { font-size: 0.95rem; line-height: 1.35; }
  /* Cómo puedo ayudarte, compacto para una pantalla */
  .ayudarte { padding: 32px 0 28px; }
  .ayudarte .kicker { font-size: 0.95rem; margin-bottom: 4px; }
  .ayudarte .kicker::before { width: 32px; }
  .ayudarte h2 { font-size: clamp(1.75rem, 7.6vw, 2.1rem); margin-bottom: 8px; letter-spacing: -0.5px; }
  .ayudarte-sub { font-size: 1.0625rem; line-height: 1.45; margin-bottom: 10px; }
  .ayudarte-grid { gap: 10px; }
  .subtitulo-linea { font-size: 0.98rem; letter-spacing: 2px; margin-bottom: 6px; gap: 12px; }
  .areas-lista { gap: 5px; }
  .areas-lista li { grid-template-columns: 36px 1fr; column-gap: 12px; row-gap: 0; padding: 4px 10px 4px 7px; border-radius: 12px; }
  .areas-lista .ico { grid-row: span 2; width: 36px; height: 36px; }
  .areas-lista .ico svg { width: 21px; height: 21px; }
  .areas-lista b { font-size: 1.02rem; line-height: 1.15; padding-right: 0; border-right: 0; }
  .areas-lista li > span:last-child { font-size: 0.95rem; line-height: 1.25; }
  .ayudarte-lado { gap: 10px; padding-top: 0; }
  .integral { padding: 12px 14px 2px; border-radius: 14px; }
  .integral-titulo { font-size: 0.95rem; margin-bottom: 8px; }
  .integral-titulo .escudo-mas { width: 26px; height: 26px; }
  .integral li { grid-template-columns: 1fr; gap: 0; margin-bottom: 12px; }
  .integral li .ico { display: none; }  /* en celular el texto usa todo el ancho (un renglón menos) */
  .integral .ico { width: 40px; height: 40px; }
  .integral .ico svg { width: 22px; height: 22px; }
  .integral li p { font-size: 0.95rem; line-height: 1.35; }
  .ayudarte-lado .btn { min-height: 56px; padding: 10px 20px; font-size: 1.2rem; }
  /* Cómo trabajo, compacto: título, modalidad, 4 pasos y botón al final */
  .trabajo { padding: 32px 0 28px; }
  .trabajo-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .trabajo-intro { display: contents; }
  .trabajo .kicker { font-size: 0.95rem; margin-bottom: 4px; }
  .trabajo .kicker::before { width: 32px; }
  .trabajo h2 { font-size: clamp(1.75rem, 7.6vw, 2.1rem); margin-bottom: 10px; letter-spacing: -0.5px; }
  .modalidad { grid-template-columns: 44px 1fr; gap: 12px; margin: 0 0 12px; }
  .modalidad .ico { width: 44px; height: 44px; }
  .modalidad .ico svg { width: 24px; height: 24px; }
  .modalidad .ico-mundo { display: none; }
  .modalidad p { font-size: 1rem; line-height: 1.35; padding-right: 0; border-right: 0; }
  .pasos { order: 2; gap: 7px; }
  .pasos li { grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 7px 12px 7px 9px; border-radius: 14px; }
  .pasos li:not(:last-child)::after { left: 30px; top: 55px; height: calc(100% - 50px); }
  .pasos .ico { width: 44px; height: 44px; }
  .pasos .ico svg { width: 23px; height: 23px; }
  .pasos b { gap: 8px; font-size: 1.05rem; margin-bottom: 1px; }
  .pasos .num { font-size: 1.15rem; letter-spacing: 0; }
  .pasos p { font-size: 0.95rem; line-height: 1.32; }
  .btn-entrevista { order: 3; width: 100%; min-height: 56px; margin-top: 12px; padding: 10px 16px; font-size: 1.05rem; gap: 8px; letter-spacing: 0.2px; }
  /* Testimonios: uno por vista y se asoma el siguiente (invita a deslizar) */
  .testimonios { padding: 32px 0 28px; }
  .testimonios .kicker { font-size: 0.95rem; margin-bottom: 4px; }
  .testimonios .kicker::before { width: 32px; }
  .testimonios h2 { font-size: clamp(1.75rem, 7.6vw, 2.1rem); margin-bottom: 0; letter-spacing: -0.5px; }
  .testimonios h2 span { display: block; }
  .carrusel { margin-top: 14px; }
  .pista { gap: 12px; padding: 4px 2px 8px; margin: 0 -18px; padding-left: 18px; padding-right: 18px; scroll-padding-left: 18px; }
  .testi { flex-basis: 86%; padding: 18px 16px 14px; gap: 12px; border-radius: 16px; }
  .testi blockquote { font-size: 1rem; line-height: 1.5; }
  .testi blockquote::before { font-size: 2.6rem; height: 16px; margin-bottom: 4px; }
  .testi figcaption { gap: 12px; padding-top: 10px; }
  .testi figcaption img, .testi figcaption .iniciales { flex-basis: 56px; width: 56px; height: 56px; }
  .testi figcaption span { font-size: 0.95rem; }
  .testi figcaption b { font-size: 1rem; }
  .controles { margin-top: 6px; gap: 16px; }
  .flecha { width: 52px; height: 52px; }
  .testimonios-cta { margin-top: 12px; }
  .testimonios-cta .btn { width: 100%; min-height: 56px; padding: 10px 20px; font-size: 1.2rem; }
  /* Preguntas frecuentes: título, preguntas y el botón al final */
  .faq { padding: 32px 0 28px; }
  .faq-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .faq-intro { display: contents; }
  .faq .kicker { font-size: 0.95rem; margin-bottom: 4px; }
  .faq .kicker::before { width: 32px; }
  .faq h2 { font-size: clamp(1.75rem, 7.6vw, 2.1rem); margin-bottom: 4px; letter-spacing: -0.5px; }
  .faq-ayuda { font-size: 0.98rem; margin-bottom: 12px; }
  .faq-lista { order: 2; gap: 7px; }
  .faq details { border-radius: 14px; }
  .faq summary { min-height: 56px; padding: 10px 56px 10px 14px; font-size: 1.02rem; border-radius: 14px; }
  .faq summary::after { right: 12px; width: 34px; height: 34px; font-size: 1.4rem; }
  .faq .resp { padding: 0 14px 14px; }
  .faq .resp p { font-size: 1rem; line-height: 1.5; }
  .faq-btn { order: 3; width: 100%; min-height: 56px; margin-top: 12px; padding: 10px 20px; font-size: 1.2rem; }
  /* Cierre y pie en celular */
  .cierre-contenido { padding-top: 32px; padding-bottom: 32px; }
  .cierre .kicker { font-size: 0.95rem; margin-bottom: 4px; }
  .cierre .kicker::before { width: 32px; }
  .cierre h2 { font-size: clamp(1.9rem, 8.6vw, 2.3rem); margin-bottom: 6px; }
  .cierre h2 span { font-size: 0.6em; margin-top: 6px; }
  .btn-wa { width: 100%; justify-content: center; padding: 12px 18px; margin-top: 12px; }
  .btn-wa .logo-wa { width: 36px; height: 36px; }
  .btn-wa span { font-size: 1.25rem; }
  .redes-titulo { margin: 28px 0 10px; font-size: 0.95rem; }
  .redes { flex-direction: column; align-items: stretch; gap: 10px; }
  .redes a { min-height: 60px; }
  .pie { padding: 26px 0 18px; }
  .pie-grid { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pie-marca img { width: 170px; }
  .pie-links { gap: 4px 20px; }
  .wa-flotante { padding: 0; width: 62px; height: 62px; justify-content: center; transition: opacity .25s, transform .25s; }
  /* mientras se ve el botón de la portada, el flotante se esconde para no taparlo */
  .wa-flotante.escondido { opacity: 0; transform: scale(.7); pointer-events: none; }
  .wa-flotante .txt { display: none; }
  .wa-flotante svg { width: 34px; height: 34px; }
}

/* ==========================================================
   COMPU (más de 820 px de ancho): cada sección ocupa UNA pantalla completa,
   con el contenido centrado, y la rueda del mouse se acomoda al inicio de cada una.
   Nada de esto afecta al celular (allá todo está en @media max-width: 820px).
   ========================================================== */
@media (min-width: 821px) {
  html { scroll-snap-type: y proximity; }
  main > section:not(.proximo) {
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: 40px; padding-bottom: 40px; scroll-snap-align: start;
  }
  main > section > .wrap { width: 100%; }
  .portada { min-height: 100vh; min-height: 100svh; padding-top: 0; padding-bottom: 0; }

  /* Sobre mí: ilustración más chica y tarjetas más compactas para que todo entre */
  .sobre-grid { gap: 48px; }
  .orbita { max-width: 400px; margin-bottom: 0; }
  .sobre-pie { margin-top: 22px; }
  .datos { margin-bottom: 20px; }
  .datos li { padding: 16px 20px 14px; }
  .datos .ico { width: 64px; height: 64px; margin-bottom: 10px; }
  .datos .ico svg { width: 34px; height: 34px; }
  .datos b { font-size: 1.5rem; margin-bottom: 4px; }

  /* Cierre: el contenido centrado ocupa el espacio y el pie queda pegado abajo (cierre + pie = 1 pantalla) */
  .cierre { padding-top: 0; padding-bottom: 0; justify-content: space-between; }
  .cierre-contenido { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding-top: 40px; padding-bottom: 40px; }

  /* Cómo puedo ayudarte y Testimonios: un poco más compactos */
  .ayudarte-grid { align-items: center; }
  .ayudarte-sub { margin-bottom: 22px; }
  .areas-lista { gap: 8px; }
  .areas-lista li { padding: 8px 16px 8px 10px; }
  .carrusel { margin-top: 14px; }
  .testi { padding: 20px 22px 16px; gap: 12px; }
  .controles { margin-top: 4px; }
  .testimonios-cta { margin-top: 12px; }
}

/* Notebooks con pantalla baja (≤ 760 px de alto visible): todo se achica un poco en proporción
   (los tamaños están en rem, así que basta con bajar la letra base) y los espacios se acortan. */
@media (min-width: 821px) and (max-height: 760px) {
  html { font-size: 14.5px; }
  main > section:not(.proximo) { padding-top: 18px; padding-bottom: 18px; }
  h2 { font-size: 2.6rem; margin-bottom: 12px; }
  .ayudarte-sub { margin-bottom: 14px; }
  .areas-lista { gap: 6px; }
  .areas-lista li { padding: 5px 14px 5px 8px; }
  .subtitulo-linea { margin-bottom: 8px; }
  .testi blockquote::before { height: 16px; }
  .portada-texto { padding: 36px 0; }
  .orbita { max-width: 330px; }
  .sobre-pie { margin-top: 22px; }
  .datos li { padding: 14px 16px 12px; }
  .datos .ico { width: 54px; height: 54px; }
  .areas-lista .ico, .integral .ico { width: 46px; height: 46px; }
  .pasos li { padding: 10px 18px 10px 12px; }
  .pasos .ico { width: 64px; height: 64px; }
  .pasos li { grid-template-columns: 64px 1fr; }
  .pasos li:not(:last-child)::after { left: 43px; top: calc(50% + 32px); height: calc(100% - 52px); }
  .testi blockquote { font-size: 1.05rem; line-height: 1.5; }
  .btn { min-height: 56px; padding: 12px 30px; }
}
