/* ==========================================================================
   Pléyades Digital — estilos del catálogo
   Paleta: cielo nocturno (azul profundo + azul-blanco de estrella) con un
   acento cálido ámbar para los botones de acción.
   ========================================================================== */

/* ---------- Paleta (modo oscuro por defecto) ---------- */
:root {
  --bg: #070b1c;
  --bg-2: #0b1230;
  --surface: #101a3e;
  --surface-2: #16224f;
  --line: rgba(190, 210, 255, .16);
  --text: #e9efff;
  --muted: #a9b6da;
  --star: #cfe0ff;          /* azul-blanco de las Pléyades */
  --blue: #7ea8ff;
  --accent: #ffb347;        /* acento cálido: botones de acción */
  --accent-2: #ffc876;
  --accent-ink: #1c1303;    /* texto sobre el acento */
  --accent-text: #ffb347;   /* acento usado como color de texto */
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7);

  --font-title: 'Syne', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1160px;
  --gut: clamp(18px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* ---------- Modo claro (según la preferencia del sistema) ---------- */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7fd;
    --bg-2: #e8eefa;
    --surface: #ffffff;
    --surface-2: #f0f4fc;
    --line: rgba(16, 32, 90, .14);
    --text: #0d1533;
    --muted: #4a567c;
    --star: #2a4bb0;
    --blue: #2f5bd6;
    --accent-text: #8f5200;
    --shadow: 0 18px 44px -22px rgba(16, 32, 90, .35);
    color-scheme: light;
  }
}

/* Zonas que siempre son "de noche" (hero, nosotros, pie), en ambos modos */
.noche {
  --bg: #070b1c;
  --bg-2: #0b1230;
  --surface: #101a3e;
  --surface-2: #16224f;
  --line: rgba(190, 210, 255, .16);
  --text: #e9efff;
  --muted: #a9b6da;
  --star: #cfe0ff;
  --blue: #7ea8ff;
  --accent-text: #ffb347;
  color: var(--text);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, iframe, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
html.sin-scroll { overflow: hidden; }

.wrap { width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { left: 12px; }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--star); }
.kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { min-height: 44px; padding: 9px 18px; font-size: .95rem; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 28px -12px rgba(255, 179, 71, .8); }
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: var(--star); }
.btn--line { border-color: var(--line); background: transparent; color: var(--text); }
.btn--line:hover { border-color: var(--blue); background: var(--surface-2); }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--star); }

/* ---------- Cabecera ---------- */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand__mark { width: 40px; height: 40px; color: var(--star); flex: none; }
.brand__name { font-family: var(--font-title); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; white-space: nowrap; }
.brand__name b { font-weight: 600; color: var(--muted); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.lang { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.lang button { min-width: 40px; min-height: 40px; background: none; border: 0; border-radius: 8px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { color: var(--accent-text); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: none; position: relative; flex: none; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20.500px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 20.500px; transform: rotate(-45deg); }

@media (max-width: 940px) {
  .burger { display: block; }
  .header__cta { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px var(--gut) 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--text); }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 400px) {
  .brand__name b { display: none; }
  .header__in { gap: 10px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background:
    radial-gradient(900px 520px at 82% 18%, rgba(88, 130, 255, .28), transparent 62%),
    radial-gradient(700px 480px at 8% 96%, rgba(255, 179, 71, .1), transparent 60%),
    linear-gradient(180deg, #060a1a 0%, #0a1233 100%); }
.hero__cielo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__in { padding-block: clamp(64px, 12vw, 132px) clamp(64px, 10vw, 112px); }
.hero__title { margin-top: 20px; max-width: 13ch; font-size: clamp(2.6rem, 1.2rem + 6.4vw, 5.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; background: linear-gradient(100deg, #ffffff 20%, #bcd3ff 70%, #8fb2ff); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.hero__lead { margin-top: 22px; max-width: 54ch; font-size: clamp(1.05rem, .95rem + .5vw, 1.25rem); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; color: var(--muted); font-size: .95rem; font-weight: 500; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
@media (max-width: 520px) {
  .hero__cta .btn { width: 100%; }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--alt { background: var(--bg-2); }
.head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.head h2 { margin-top: 14px; }
.head__lead { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }

/* ---------- Filtros ---------- */
.filtros { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 26px; }
.filtros__lista { display: flex; flex-wrap: wrap; gap: 8px; }
.filtro { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 600; font-size: .95rem; transition: background .25s, color .25s, border-color .25s; }
.filtro:hover { color: var(--text); border-color: var(--blue); }
.filtro[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filtros__cuenta { color: var(--muted); font-size: .9rem; }

/* ---------- Cuadrícula y tarjetas ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.sinjs { display: grid; gap: 10px; }
.card { --acento: var(--blue); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .3s, opacity .26s, scale .26s; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acento) 55%, var(--line)); }
.card.is-saliendo { opacity: 0; scale: .96; }
.card[hidden] { display: none; }
.card__media { position: relative; background: #0a0f24; border-bottom: 1px solid var(--line); }
.card__chrome { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #0d1430; color: #8f9cc4; font-size: .72rem; letter-spacing: .02em; }
.card__chrome i { width: 8px; height: 8px; border-radius: 50%; background: #2a3566; }
.card__chrome i:first-child { background: var(--acento); }
.card__chrome span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: linear-gradient(135deg, #101a3e, #0a0f24); }
.card__sello { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(7, 11, 28, .86); color: #e9efff; border: 1px solid rgba(190, 210, 255, .3); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 20px 20px 22px; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__giro { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card__giro::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--acento); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 25%, transparent); }
.card__dest { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700; color: var(--accent-text); }
.card__dest svg { width: 11px; height: 11px; }
.card h3 { font-size: 1.45rem; }
.card__desc { color: var(--muted); font-size: .98rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 4px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8rem; font-weight: 500; color: var(--muted); }
.card__nota { font-size: .82rem; color: var(--muted); font-style: italic; }
.card__nota:empty { display: none; }
.card__acc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.card__acc .btn { flex: 1 1 130px; }
.card__acc .btn svg { width: 16px; height: 16px; }

.card--next { justify-content: center; align-items: flex-start; gap: 14px; padding: 28px 24px; min-height: 280px; background:
    radial-gradient(420px 260px at 90% 0%, rgba(88, 130, 255, .32), transparent 65%),
    linear-gradient(160deg, #0b1230, #070b1c); border-style: dashed; border-color: rgba(190, 210, 255, .32); }
.card--next > svg { width: 56px; height: 56px; color: var(--star); }
.card--next p { color: var(--muted); }

.aviso { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: .93rem; }
.aviso svg { width: 16px; height: 16px; margin-top: 5px; flex: none; color: var(--accent-text); }

/* ---------- Servicios ---------- */
.servicios { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.servicio { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.servicio:hover { transform: translateY(-3px); border-color: var(--blue); }
.servicio__ic { width: 46px; height: 46px; padding: 10px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); color: var(--star); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.servicio h3 { margin-top: 18px; }
.servicio p { margin-top: 8px; color: var(--muted); font-size: .98rem; }

/* ---------- Proceso (los pasos se unen como una constelación) ---------- */
.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: paso; position: relative; }
.pasos::before { content: ''; position: absolute; left: 22px; right: 12%; top: 22px; height: 1px; background: linear-gradient(90deg, var(--blue), transparent); opacity: .6; }
.paso { position: relative; }
.paso__n { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 1px solid var(--blue); color: var(--star); font-family: var(--font-title); font-weight: 800; box-shadow: 0 0 0 6px var(--bg), 0 0 24px color-mix(in srgb, var(--blue) 45%, transparent); }
.paso h3 { margin-top: 20px; }
.paso p { margin-top: 8px; color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) {
  .pasos { grid-template-columns: 1fr; gap: 30px; }
  .pasos::before { left: 22px; right: auto; top: 22px; bottom: 60px; width: 1px; height: auto; background: linear-gradient(180deg, var(--blue), transparent); }
  .paso { padding-left: 66px; }
  .paso__n { position: absolute; left: 0; top: 0; }
  .paso h3 { margin-top: 8px; }
}

/* ---------- Nosotros ---------- */
.nosotros { background:
    radial-gradient(700px 460px at 78% 40%, rgba(88, 130, 255, .22), transparent 65%),
    linear-gradient(180deg, #070b1c, #0a1233); }
.nosotros__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.nosotros__txt h2 { margin-top: 14px; }
.nosotros__txt p:not(.kicker) { margin-top: 16px; color: var(--muted); }
.cumulo svg { width: 100%; height: auto; }
.cumulo figcaption { margin-top: 6px; text-align: center; font-size: .88rem; color: var(--muted); }
.cumulo__estrellas g { animation: titilar 5s ease-in-out infinite; }
.cumulo__estrellas g:nth-child(2) { animation-delay: -1.2s; }
.cumulo__estrellas g:nth-child(3) { animation-delay: -2.6s; }
.cumulo__estrellas g:nth-child(4) { animation-delay: -3.4s; }
.cumulo__estrellas g:nth-child(5) { animation-delay: -.6s; }
.cumulo__estrellas g:nth-child(6) { animation-delay: -4.1s; }
.cumulo__estrellas g:nth-child(7) { animation-delay: -1.9s; }
@keyframes titilar { 0%, 100% { opacity: 1; } 50% { opacity: .62; } }
@media (max-width: 860px) {
  .nosotros__in { grid-template-columns: 1fr; }
  .cumulo { max-width: 440px; margin-inline: auto; }
}

/* ---------- Contacto ---------- */
.contacto { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(18px, 3vw, 32px); align-items: stretch; }
.contacto__lista { display: grid; gap: 12px; align-content: start; }
.dato { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .3s var(--ease), border-color .3s; }
.dato:hover { transform: translateY(-2px); border-color: var(--blue); }
.dato > span { display: grid; gap: 2px; min-width: 0; }
.dato b { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dato__v { font-weight: 600; font-size: 1.08rem; overflow-wrap: anywhere; }
.dato small { color: var(--muted); font-size: .88rem; }
.dato__ic { width: 46px; height: 46px; padding: 10px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); color: var(--star); flex: none; }
.dato__ic--l { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dato--wa { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.dato--wa .dato__ic { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.mapa { min-height: 340px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.mapa iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
@media (max-width: 860px) {
  .contacto { grid-template-columns: 1fr; }
}

/* ---------- Pie ---------- */
.footer { background: #050814; border-top: 1px solid var(--line); padding-block: 44px 96px; font-size: .93rem; }
.footer__in { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr; gap: 28px 40px; }
.footer__marca p { margin-top: 10px; color: var(--muted); font-family: var(--font-title); font-weight: 600; }
.footer__nav { display: grid; gap: 4px; align-content: start; }
.footer__nav a { padding: 4px 0; text-decoration: none; color: var(--muted); }
.footer__nav a:hover { color: var(--text); }
.footer__legal { display: grid; gap: 8px; align-content: start; justify-items: start; color: var(--muted); }
.footer__legal .link { min-height: 32px; }
@media (max-width: 760px) {
  .footer__in { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp flotante ---------- */
.wa { position: fixed; right: clamp(14px, 2.4vw, 26px); bottom: clamp(14px, 2.4vw, 26px); z-index: 60; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #05240f; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .65), 0 6px 18px rgba(0, 0, 0, .3); transition: transform .25s var(--ease); }
.wa svg { width: 32px; height: 32px; }
.wa:hover { transform: translateY(-3px) scale(1.04); }

/* ---------- Modales ---------- */
dialog { color: var(--text); border: 1px solid var(--line); padding: 0; }
dialog::backdrop { background: rgba(3, 6, 18, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

.previa { width: min(100vw - 20px, 1500px); max-width: none; height: min(100dvh - 20px, 1000px); max-height: none; border-radius: 16px; background: var(--bg-2); overflow: hidden; }
.previa[open] { display: flex; flex-direction: column; animation: entrar .28s var(--ease); }
.previa__barra { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.previa__titulo { margin-right: auto; min-width: 0; display: grid; line-height: 1.2; }
.previa__titulo span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.previa__titulo b { font-family: var(--font-title); font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.previa__disp { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.previa__disp button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 600; font-size: .88rem; }
.previa__disp button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.previa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.previa__abrir { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .88rem; color: var(--star); }
.previa__abrir:hover { background: var(--surface-2); }
.previa__cerrar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: none; flex: none; }
.previa__cerrar:hover { background: var(--surface-2); }
.previa__escena { flex: 1; min-height: 0; display: flex; justify-content: center; padding: 14px; background:
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 22px 22px, var(--bg); }
.previa__marco { width: 100%; height: 100%; max-width: 100%; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: width .45s var(--ease), border-radius .45s; }
.previa__marco[data-disp="tablet"] { width: 820px; }
.previa__marco[data-disp="movil"] { width: 390px; border-radius: 26px; }
.previa__marco iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) {
  .previa { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .previa__disp { display: none; }
  .previa__abrir span { display: none; }
  .previa__abrir { width: 44px; justify-content: center; padding: 0; border: 1px solid var(--line); }
  .previa__escena { padding: 0; }
  .previa__marco, .previa__marco[data-disp] { width: 100%; border-radius: 0; border: 0; }
}

.privacidad { width: min(100vw - 28px, 620px); max-height: min(100dvh - 28px, 720px); padding: 28px clamp(20px, 4vw, 34px); border-radius: 18px; background: var(--surface); overflow: auto; }
.privacidad[open] { animation: entrar .28s var(--ease); }
.privacidad h2 { font-size: 1.5rem; }
.privacidad p { margin-top: 14px; color: var(--muted); font-size: .97rem; }
.privacidad form { margin-top: 22px; }
@keyframes entrar { from { opacity: 0; transform: translateY(12px) scale(.985); } }

/* ---------- Aparición al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .grid .card[data-reveal].is-in { transition: transform .35s var(--ease), border-color .3s, opacity .26s, scale .26s; }

/* ---------- Menos movimiento, si el visitante lo prefiere ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { transform: none; transition: opacity .4s; }
  .cumulo__estrellas g, .previa[open], .privacidad[open] { animation: none; }
  .btn:hover, .card:hover, .servicio:hover, .dato:hover, .wa:hover { transform: none; }
  .previa__marco { transition: none; }
}

@media print {
  .header, .wa, .hero__cielo, dialog { display: none !important; }
}
