/* =========================================================
   Sitio principal · Dr. Alejandro Moreira Grecco
   Estética minimalista, secciones claras y oscuras alternadas, un solo acento (azul clínico).
   ========================================================= */
:root {
  --bg: #fbfbfd; --fg: #1d1d1f; --mut: #515154;
  --acc: #0b63c5; --on-acc: #ffffff;
  --card: #ffffff; --line: rgba(0,0,0,.12);
  --todo-bg: #fff3c4; --todo-fg: #5a4300;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 28px; --nav-h: 56px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.125rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: var(--acc); }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Secciones */
.sec { background: var(--bg); color: var(--fg); padding-block: clamp(64px, 10vw, 130px); }
.dark { --bg: #000; --fg: #f5f5f7; --mut: #a1a1a6; --acc: #5aa9ff; --on-acc: #04101f; --card: #1c1c1e; --line: rgba(255,255,255,.16); }
.alt { --bg: #f5f5f7; }
.dark.alt { --bg: #0a0a0c; }
.wrap { max-width: 1120px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.center { text-align: center; }

/* Tipografía */
h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.45; color: var(--mut); max-width: 36em; margin-top: 20px; }
.center .lead { margin-inline: auto; }
.eyebrow { font-size: 1.05rem; font-weight: 600; color: var(--acc); margin-bottom: 14px; }
.todo { background: var(--todo-bg); color: var(--todo-fg); border-radius: 6px; padding: 0 6px; font-size: .9em; font-weight: 500; }
.prose p + p { margin-top: 16px; }
.prose { max-width: 38em; }
.mut { color: var(--mut); }

/* Botones y enlaces */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 32px; border-radius: 980px; background: var(--acc); color: var(--on-acc); font-weight: 600; font-size: 1.1rem; text-decoration: none; transition: transform .2s, filter .2s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; color: var(--acc); font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.link::after { content: ""; width: .5em; height: .5em; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.link:hover::after { transform: translateX(3px) rotate(45deg); }
.ctas { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: center; margin-top: 32px; }
.center .ctas { justify-content: center; }

/* Navegación fija, translúcida */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(251,251,253,.78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); padding-top: env(safe-area-inset-top, 0px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); max-width: 1280px; }
.nav .brand { color: var(--fg); font-weight: 600; font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.nav .links { display: flex; flex-wrap: nowrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.nav .links a { color: var(--fg); text-decoration: none; font-size: .95rem; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav .links a:hover, .nav .links a[aria-current="page"] { border-bottom-color: var(--acc); }
.nav .btn { min-height: 40px; padding: 0 20px; font-size: 1rem; }
.nav .toggle { display: none; background: none; border: 0; width: 48px; height: 48px; padding: 0; cursor: pointer; color: var(--fg); }
.nav .toggle span, .nav .toggle span::before { display: block; width: 22px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .25s; }
.nav .toggle span::before { content: ""; position: absolute; top: 7px; left: 0; }
.nav .toggle span { transform: translateY(-4px); }
.nav.open .toggle span { transform: translateY(0) rotate(45deg); }
.nav.open .toggle span::before { transform: translateY(-7px) rotate(-90deg); top: 7px; }
.nav .right { display: flex; align-items: center; gap: 8px; }
@media (max-width: 1120px) {
  .nav .links { flex-wrap: wrap; }
  .js .nav .toggle { display: block; }
  .js .nav .links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: rgba(251,251,253,.97); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid rgba(0,0,0,.1); }
  .js .nav.open .links { display: flex; }
  .js .nav .links a { display: block; font-size: 1.25rem; font-weight: 600; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav .links { order: 3; width: 100%; }
  .nav .wrap { flex-wrap: wrap; height: auto; min-height: var(--nav-h); }
  .js .nav .wrap { flex-wrap: nowrap; height: var(--nav-h); }
}
@media (max-width: 480px) { .nav .btn { padding: 0 16px; } .nav .brand { font-size: .98rem; } }

/* Portadas */
.hero { padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 110px)); padding-bottom: clamp(56px, 8vw, 96px); text-align: center; overflow: hidden; }
.hero.sm { padding-bottom: clamp(48px, 7vw, 80px); }
.hero h1 { animation: up .9s cubic-bezier(.2,.7,.2,1) .05s both; }
.hero .lead { margin-inline: auto; animation: up .9s cubic-bezier(.2,.7,.2,1) .25s both; }
.hero .ctas { justify-content: center; animation: up .9s cubic-bezier(.2,.7,.2,1) .4s both; }
.hero-media { margin-top: clamp(40px, 6vw, 72px); animation: up 1s cubic-bezier(.2,.7,.2,1) .6s both; }
@keyframes up { from { opacity: 0; transform: translateY(24px); } }

/* Marcos de imagen */
.frame { position: relative; overflow: hidden; border-radius: var(--r); background: #1c1c1e; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame img[data-parallax] { will-change: transform; transform: translate3d(0, var(--py, 0px), 0) scale(1.08); }
.ar-45 { aspect-ratio: 4 / 5; } .ar-43 { aspect-ratio: 4 / 3; } .ar-169 { aspect-ratio: 16 / 9; } .ar-1610 { aspect-ratio: 16 / 10; }
.hero-media .frame { aspect-ratio: 4 / 5; max-width: 520px; margin-inline: auto; }
@media (min-width: 760px) { .hero-media .frame { aspect-ratio: 16 / 10; max-width: none; } }
.ph { display: grid; place-items: center; text-align: center; padding: 20px; border: 2px dashed var(--line); border-radius: var(--r); background: var(--card); color: var(--mut); font-size: 1rem; }
figure figcaption { color: var(--mut); font-size: 1rem; padding-top: 12px; }

/* Home: tiles por servicio */
.tiles { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(2, 1fr); } .t-wide { grid-column: 1 / -1; } }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; border-radius: var(--r); padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px) 0; background: var(--bg); color: var(--fg); transition: transform .35s, box-shadow .35s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,.14); }
.tile h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.tile p { color: var(--mut); font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.4; margin-top: 12px; max-width: 24em; }
.tile .ctas { margin-top: 18px; justify-content: center; margin-bottom: clamp(28px, 4vw, 48px); gap: 0 28px; }
.tile.t-dark { --bg: #000; --fg: #f5f5f7; --mut: #a1a1a6; --acc: #5aa9ff; }
.tile.t-grad { --bg: #0a0a0c; --fg: #f5f5f7; --mut: #b4b4ba; --acc: #5aa9ff; background: radial-gradient(120% 120% at 50% 0%, #123a6b 0%, #0a0a0c 62%); }
.tile.t-light { --bg: #f5f5f7; }
.tile .shot { width: calc(100% + 2 * clamp(24px, 4vw, 56px)); margin-inline: calc(-1 * clamp(24px, 4vw, 56px)); margin-top: auto; }
.tile .shot .frame { border-radius: 0; }
.tile.txt { padding-bottom: 0; }
.tile.txt .ctas { margin-bottom: clamp(36px, 5vw, 64px); }
.tile .push { margin-top: auto; }

/* Bloques de contenido */
.split { display: grid; gap: 40px; align-items: center; margin-top: 56px; }
.split > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split.top { align-items: start; } }
.feat { display: grid; gap: 28px; }
.feat > div { border-top: 1px solid var(--line); padding-top: 20px; }
.feat p { color: var(--mut); margin-top: 6px; }
.cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: 56px; }
.cols > * { min-width: 0; }
.cols h3 { margin-bottom: 8px; }
.cols p { color: var(--mut); }
.card { display: flex; flex-direction: column; gap: 12px; padding: clamp(28px, 4vw, 40px); background: var(--card); color: var(--fg); border-radius: var(--r); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(0,0,0,.06); }
.card h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.card p { color: var(--mut); }
.card .ctas { margin-top: auto; padding-top: 12px; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 56px; }
.cards > * { min-width: 0; }
.ticks { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 24px; }
.ticks li { position: relative; padding-left: 30px; max-width: 36em; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 10px; height: 10px; background: var(--acc); border-radius: 50%; }
.note { color: var(--mut); margin-top: 28px; font-size: 1.05rem; max-width: 36em; }
.banner { background: radial-gradient(120% 140% at 80% 0%, #123a6b 0%, #0a0a0c 60%); border-radius: var(--r); padding: clamp(36px, 6vw, 72px); color: #f5f5f7; text-align: center; }
.banner .lead { color: #b4b4ba; margin-inline: auto; }
.banner .btn { background: #5aa9ff; color: #04101f; }
.banner .ctas { justify-content: center; }
.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 28px 40px; }
.creds > div { min-width: 0; }
.creds b { display: block; font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.creds span { color: var(--mut); font-size: 1.05rem; }
.strip { padding-block: 48px; border-block: 1px solid var(--line); }
.pubs { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.pubs li { padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; color: var(--mut); font-size: 1.02rem; overflow-wrap: anywhere; }
.h4 { font-weight: 600; font-size: 1.05rem; margin-top: 32px; }

/* Línea de pasos */
.tl { list-style: none; padding: 0; margin: 56px auto 0; max-width: 720px; position: relative; counter-reset: paso; }
.tl::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--acc), var(--line)); }
.tl li { position: relative; padding: 0 0 44px 72px; counter-increment: paso; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 2px solid var(--acc); display: grid; place-items: center; font-weight: 600; }
.tl h3 { padding-top: 6px; }
.tl p { color: var(--mut); margin-top: 6px; }
.tl.plain li::before { content: ""; width: 14px; height: 14px; left: 15px; top: 10px; background: var(--acc); border: 0; }

/* Preguntas frecuentes */
.faq { max-width: 780px; margin: 56px auto 0; border-top: 1px solid var(--line); text-align: left; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 24px; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--acc); font-size: 1.9rem; font-weight: 400; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--mut); padding-bottom: 26px; max-width: 34em; }

/* Contacto y pie */
.contact { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 48px; text-align: left; }
.contact > a, .contact > div { display: block; min-width: 0; background: var(--card); color: var(--fg); border-radius: 24px; padding: 28px; text-decoration: none; transition: transform .3s; }
.contact > a:hover { transform: translateY(-4px); }
.contact b { display: block; font-size: 1.25rem; font-weight: 600; }
.contact span { display: block; color: var(--mut); margin-top: 4px; overflow-wrap: anywhere; }
.foot { background: #000; color: #a1a1a6; padding-block: 56px 40px; font-size: .98rem; }
.foot b { color: #f5f5f7; font-weight: 600; }
.foot a { color: #a1a1a6; text-decoration: none; }
.foot a:hover { color: #f5f5f7; text-decoration: underline; }
.foot .grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.foot ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; }
.foot ul a { display: inline-block; padding: 6px 0; }
.foot .legal { max-width: 56em; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.foot p + p { margin-top: 12px; }

/* Revelado al hacer scroll */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

@media (max-width: 480px) { .ctas .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .frame img[data-parallax] { transform: scale(1.08); }
}

.frame.ph-tile { display: grid; place-items: center; text-align: center; padding: 24px; color: #a1a1a6; font-size: 1rem; background: #1c1c1e; }

/* Botones y enlaces de WhatsApp en verde WhatsApp (texto oscuro para buen contraste) */
.btn[data-wa] { background: #25d366; color: #05301a; }
.link[data-wa] { color: #0a7d45; }
.dark .link[data-wa], .tile.t-dark .link[data-wa], .tile.t-grad .link[data-wa] { color: #25d366; }
.nw { white-space: nowrap; }


/* ===== Portada en dos caminos ===== */
.eyebrow { font-size: .95rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.doors { display: grid; gap: 18px; margin-top: 44px; }
.doors > * { min-width: 0; }
@media (min-width: 880px) { .doors { grid-template-columns: 1fr 1fr; } }
.door { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r); background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.07); }
.door.a { background: #0a0a0c; color: #f5f5f7; }
.door.a p { color: #c6c6cb; }
.door.a .link { color: #5aa9ff; }
.door .tag { font-size: .92rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; opacity: .72; }
.door h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.door p { color: var(--mut); }
.door .ctas { margin-top: auto; padding-top: 12px; }
.facts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 44px; }
.facts > * { min-width: 0; }
.fact { padding-top: 20px; border-top: 2px solid var(--fg); }
.fact h3 { font-size: 1.22rem; }
.fact p { color: var(--mut); font-size: 1.02rem; margin-top: 8px; }
.score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 22px; }
.score .n { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stars { color: #e8a317; font-size: 1.3rem; letter-spacing: .1em; }
.quotes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); margin-top: 36px; }
.quotes > * { min-width: 0; }
.quote { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 32px); background: var(--card); border-radius: 22px; border: 1px solid var(--line); margin: 0; }
.quote p { font-size: 1.05rem; line-height: 1.5; }
.quote footer { font-size: .92rem; color: var(--mut); margin-top: auto; }
