/* Movimiento sutil. Se desactiva con "reducir movimiento". */
.site-head { transition: box-shadow .2s; }
.site-head.scrolled { box-shadow: 0 6px 22px rgba(11, 20, 38, .1); }

.rv { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.rv.in { opacity: 1; transform: none; }

@keyframes rise { from { transform: translateY(18px); } to { transform: none; } } /* sin opacidad: si la animación no corre, el texto igual se ve */
@keyframes bob { 0%, 100% { transform: rotate(1.6deg) translateY(0); } 50% { transform: rotate(1.6deg) translateY(-8px); } }
@keyframes chip-in { from { opacity: 0; transform: scale(.85) translateY(10px); } to { opacity: 1; transform: none; } }

.hero-grid > div:first-child > * { animation: rise .7s ease backwards; }
.hero-grid > div:first-child > :nth-child(2) { animation-delay: .08s; }
.hero-grid > div:first-child > :nth-child(3) { animation-delay: .16s; }
.hero-grid > div:first-child > :nth-child(4) { animation-delay: .24s; }
.hero-grid > div:first-child > :nth-child(5) { animation-delay: .32s; }
.mock { animation: bob 7s ease-in-out infinite; }
.mock-chip { animation: chip-in .6s .9s ease both; }

.btn { transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { box-shadow: 0 6px 16px rgba(11, 20, 38, .18); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-grid > div:first-child > *, .mock, .mock-chip { animation: none; }
  .btn:hover { transform: none; }
}

/* Encabezado: con anchos medianos no se parte el texto de la marca ni los botones; el menú de secciones aparece cuando hay lugar. */
.head-actions .btn, .head-link, .acct-link { white-space: nowrap; }
@media (min-width: 641px) { .brand strong, .brand small { white-space: nowrap; } }
.site-nav a { white-space: nowrap; }
@media (max-width: 1300px) { .site-nav { display: none; } }

/* ---------------------------------------------------------------- portada oscura: más presencia y aire clínico */
.hero.hero-dark { background: radial-gradient(circle at 85% 12%, rgba(252, 213, 42, .22) 0, rgba(252, 213, 42, 0) 34%), linear-gradient(135deg, #070d1a 0%, #0b1426 45%, #1b2b52 100%); color: #fff; padding: 84px 0 0; position: relative; }
.hero-dark::before { content: ""; position: absolute; left: -120px; bottom: 40px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.hero-dark .hero-grid { position: relative; z-index: 1; padding-bottom: 56px; }
.hero-dark h1 { color: #fff; font-size: clamp(2.4rem, 5.8vw, 4rem); line-height: 1.08; }
.hero-dark .hl { background: none; color: var(--sun); box-shadow: inset 0 -.14em 0 rgba(252, 213, 42, .35); padding: 0; }
.hero-dark .lead { color: #e8e1d2; font-size: 1.2rem; }
.hero-dark .eyebrow { margin-bottom: 1.1em; }
.hero-dark .cta-row { margin: 30px 0 28px; }
.hero-dark .btn.ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.hero-dark .btn.ghost-light:hover { background: rgba(255, 255, 255, .12); }
.hero-dark .trust { color: #cfc7b4; }
.hero-dark .trust svg { color: var(--sun); }

.hero-art { position: relative; max-width: 420px; margin-inline: auto; width: 100%; padding: 8px 0 26px; }
.portrait { margin: 0; position: relative; border-radius: 28px; overflow: hidden; background: #101b33; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .14); }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait-ph { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; background: radial-gradient(circle at 50% 38%, #2a3d6e 0, #1b2b52 38%, #111d36 100%); color: rgba(255, 255, 255, .16); }
.portrait-ph::before, .portrait-ph::after { content: ""; position: absolute; left: 50%; top: 40%; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .14); transform: translate(-50%, -50%); }
.portrait-ph::before { width: 62%; aspect-ratio: 1; }
.portrait-ph::after { width: 88%; aspect-ratio: 1; border-color: rgba(255, 255, 255, .08); }
.portrait-ph .ecg { position: absolute; left: 0; right: 0; bottom: 26%; width: 100%; height: 22%; }
.portrait-ph .ini { position: relative; z-index: 1; margin-top: -14%; font-family: var(--serif); font-size: clamp(4.5rem, 12vw, 7rem); font-weight: 700; color: rgba(255, 255, 255, .92); letter-spacing: .02em; }
.portrait figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 14px 18px; background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 16px; display: grid; gap: 2px; }
.portrait figcaption strong { font-family: var(--serif); font-size: 1.15rem; color: var(--brand-deep); }
.portrait figcaption span { font-size: .86rem; color: var(--muted); }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; background: #fff; color: var(--brand-deep); border-radius: 999px; font-weight: 700; font-size: .84rem; box-shadow: 0 12px 28px rgba(0, 0, 0, .22); white-space: nowrap; }
.chip svg { color: var(--accent); flex: none; }
.chip.c1 { top: 8%; left: -9%; }
.chip.c2 { top: 34%; right: -8%; }
.chip.c3 { bottom: 25%; left: -7%; }

.hero-places { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 18px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .16); color: #cfc7b4; font-size: .92rem; text-align: center; }
.hero-places strong { color: #fff; font-weight: 650; }
.hero-places i { width: 5px; height: 5px; border-radius: 50%; background: var(--sun); }

@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.chip { animation: drift 6s ease-in-out infinite; }
.chip.c2 { animation-delay: -2s; }
.chip.c3 { animation-delay: -4s; }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } }

@media (max-width: 860px) {
  .hero.hero-dark { padding-top: 48px; }
  .hero-dark .hero-grid { padding-bottom: 40px; }
  .hero-art { max-width: 360px; padding-inline: 14px; }
  .chip.c1 { left: -2%; } .chip.c2 { right: -2%; } .chip.c3 { left: -2%; }
}
@media (max-width: 480px) { .chip { font-size: .78rem; padding: 7px 12px; } .hero-places { font-size: .85rem; } }

.hero.hero-dark { overflow: hidden; }
.chip { max-width: 210px; white-space: normal; line-height: 1.2; }
.chip.c1 { top: 6%; left: -6%; }
.chip.c2 { top: 35%; right: -6%; }
.chip.c3 { bottom: 24%; left: -6%; }
@media (max-width: 860px) { .chip.c1, .chip.c3 { left: 0; } .chip.c2 { right: 0; } }

.chip.c1 { top: 5%; left: -6%; }
.chip.c2 { top: 17%; right: -6%; }
.chip.c3 { bottom: 27%; left: -6%; }
@media (max-width: 860px) { .chip.c3 { bottom: 35%; } .chip.c1 { top: 4%; } .chip.c2 { top: 17%; } }
