/* Keorden · estilos públicos · cine oscuro con detalles en plata */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url("../fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }

:root {
  --black: #0A0A0C;
  --ink: #111115;
  --panel: #16161b;
  --line: #2a2a31;
  --line-2: #3a3a43;
  --silver: #C0C0C8;
  --silver-2: #E8E8EE;
  --muted: #8d8d97;
  --ok: #9fd4b0;
  --err: #f0a3a3;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --nav-h: 84px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--black); color: var(--silver);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: var(--silver-2); text-decoration: none; transition: color .3s var(--ease), opacity .3s; }
a:hover { color: #fff; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--silver-2); outline-offset: 3px; }
::selection { background: var(--silver); color: var(--black); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--silver-2); color: var(--black); padding: 8px 16px; }
.skip:focus { left: 8px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 48px); }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Tipografía ---------- */
.eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; font-weight: 400; }
.section-title, .page-title { font-family: var(--serif); font-weight: 300; color: var(--silver-2); line-height: 1.12; margin: 0 0 24px; letter-spacing: .01em; }
.section-title { font-size: clamp(30px, 4vw, 48px); }
.page-title { font-size: clamp(40px, 6vw, 76px); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--silver); max-width: 680px; }
.center .lead { margin-inline: auto; }
.lead-xl { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.45; color: var(--silver-2); font-weight: 300; max-width: none; }
.sub-h { font-family: var(--sans); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--silver-2); font-weight: 400; margin: 48px 0 18px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 34px; border: 1px solid var(--silver); background: transparent;
  color: var(--silver-2); font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase;
  border-radius: 0; cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.btn:hover { background: var(--silver-2); color: var(--black); border-color: var(--silver-2); }
.btn-solid { background: var(--silver-2); color: var(--black); border-color: var(--silver-2); }
.btn-solid:hover { background: transparent; color: var(--silver-2); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 28px; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--silver-2); }
.brand-ord { font-family: var(--serif); font-weight: 300; font-size: 30px; letter-spacing: .22em; padding-left: .22em; color: var(--silver-2); }
.brand-line { display: block; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--silver) 15%, var(--silver) 85%, transparent); margin: 6px 0 6px; }
.brand-re { font-family: var(--sans); font-size: 9px; letter-spacing: .58em; padding-left: .58em; color: var(--silver); font-weight: 400; }

/* ---------- Menú ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); background: rgba(10,10,12,.96); border-bottom: 1px solid rgba(192,192,200,.08); transition: background .5s var(--ease), border-color .5s, backdrop-filter .5s; }
.nav-over .site-header { background: transparent; border-bottom-color: transparent; }
.nav-over .site-header.is-solid, .site-header.is-solid { background: rgba(10,10,12,.96); border-bottom-color: rgba(192,192,200,.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav-wrap { height: 100%; width: min(1400px, 100% - 48px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.main-nav ul { list-style: none; display: flex; gap: 44px; margin: 0; padding: 0; }
.main-nav a { font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--silver); padding: 8px 0; position: relative; font-weight: 400; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: .34em; bottom: 0; height: 1px; background: var(--silver-2); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.main-nav a:hover, .main-nav a.active { color: var(--silver-2); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; position: relative; z-index: 60; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--silver-2); transition: transform .35s var(--ease), opacity .3s; }
.nav-toggle span:nth-child(1) { top: 17px; } .nav-toggle span:nth-child(2) { top: 24px; } .nav-toggle span:nth-child(3) { top: 31px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .brand-ord { font-size: 24px; }
  .brand-re { font-size: 8px; }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 0; background: rgba(10,10,12,.98); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; z-index: 55; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 34px; }
  .main-nav a { font-size: 15px; }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
}

/* ---------- Portada ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.hero-bg { position: absolute; inset: -2%; background-size: cover; background-position: center; transform: scale(1.04); animation: heroIn 2.4s var(--ease) both; }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(10,10,12,.35) 0%, rgba(10,10,12,.72) 70%), linear-gradient(180deg, rgba(10,10,12,.55) 0%, rgba(10,10,12,.25) 40%, rgba(10,10,12,.92) 100%); }
.hero-inner { position: relative; z-index: 2; padding: calc(var(--nav-h) + 24px) 24px 96px; max-width: 1200px; }
.hero-title { font-family: var(--serif); font-weight: 300; color: var(--silver-2); font-size: clamp(40px, 8.2vw, 116px); letter-spacing: .14em; line-height: 1.05; margin: 0; padding-left: .14em; animation: rise 1.6s .2s var(--ease) both; }
.hero-rule { display: block; width: 72px; height: 1px; background: var(--silver); margin: 34px auto; animation: grow 1.4s .6s var(--ease) both; }
.hero-sub { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(22px, 2.6vw, 34px); color: var(--silver-2); margin: 0 0 22px; animation: rise 1.6s .7s var(--ease) both; }
.hero-tag { font-size: clamp(10px, 1vw, 12px); letter-spacing: .38em; color: var(--silver); margin: 0 auto 46px; max-width: 760px; line-height: 2; animation: rise 1.6s .9s var(--ease) both; }
.btn-hero { animation: rise 1.6s 1.1s var(--ease) both; background: rgba(10,10,12,.2); }
.hero-scroll { position: absolute; bottom: calc(28px + var(--safe-b)); left: 50%; transform: translateX(-50%); width: 24px; height: 44px; z-index: 2; }
.hero-scroll span { position: absolute; left: 50%; top: 0; width: 1px; height: 100%; background: linear-gradient(var(--silver), transparent); animation: drip 2.4s infinite var(--ease); }
@keyframes heroIn { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1.04); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-tight { padding-top: 24px; }
.section-head { margin-bottom: 48px; }
.page-head { padding: calc(var(--nav-h) + clamp(56px, 8vw, 120px)) 0 clamp(32px, 5vw, 56px); }
.page-error { min-height: 80vh; display: grid; place-items: center; }
.section-early { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--ink), var(--black)); }
.section-quote .quote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(26px, 3.4vw, 44px); color: var(--silver-2); line-height: 1.35; margin: 0 0 40px; }

/* ---------- Filtros y tarjetas ---------- */
.filters { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 18px; align-items: end; padding: 24px 0 40px; border-top: 1px solid var(--line); margin-bottom: 8px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], input[type=password], select, textarea {
  width: 100%; min-height: 50px; background: transparent; color: var(--silver-2); border: 1px solid var(--line-2); border-radius: 0;
  padding: 12px 16px; font: inherit; font-size: 16px; transition: border-color .3s;
}
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
select option { background: var(--ink); color: var(--silver-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--silver-2); }
input::placeholder, textarea::placeholder { color: #6b6b74; }
.field-btn .btn { min-height: 50px; }

.cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.card-link { display: block; color: inherit; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); border: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), filter .8s; filter: saturate(.9) brightness(.92); }
.card-link:hover .card-media img { transform: scale(1.05); filter: none; }
.card-noimg { display: grid; place-items: center; height: 100%; padding: 16px; text-align: center; font-family: var(--serif); font-size: 26px; letter-spacing: .14em; color: #75757f; }
.badge { position: absolute; top: 14px; left: 14px; background: rgba(10,10,12,.82); border: 1px solid var(--silver); color: var(--silver-2); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; padding: 6px 12px; }
.card-body { padding: 22px 2px 0; }
.card-city { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.card-title { font-family: var(--serif); font-weight: 300; font-size: 28px; color: var(--silver-2); line-height: 1.2; margin: 0 0 10px; }
.card-price { margin: 0 0 14px; color: var(--silver-2); letter-spacing: .04em; }
.card-specs { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--silver); }
.card-specs li + li::before { content: "·"; margin: 0 12px; color: var(--muted); }
.empty { text-align: center; padding: 64px 0; border: 1px solid var(--line); margin-top: 24px; }

@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, 1fr); } .filters { grid-template-columns: repeat(2, 1fr); } .field-btn { grid-column: 1 / -1; } }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } .container, .container.narrow { width: calc(100% - 40px); } .filters { gap: 14px; } }

/* ---------- Formularios ---------- */
.sub-form { margin: 32px auto 0; max-width: 620px; text-align: left; }
.sub-row { display: flex; gap: 0; }
.sub-row input { flex: 1; border-right: 0; }
.sub-row .btn { white-space: nowrap; padding-inline: 26px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; flex: 0 0 18px; width: 18px; height: 18px; border: 1px solid var(--silver); margin: 3px 0 0; position: relative; cursor: pointer; }
.consent input:checked::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--silver-2); border-width: 0 1px 1px 0; transform: rotate(45deg); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.form-msg { min-height: 1.6em; margin: 14px 0 0; font-size: 14px; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
.is-invalid { border-color: var(--err) !important; }
@media (max-width: 560px) { .sub-row { flex-direction: column; } .sub-row input { border-right: 1px solid var(--line-2); border-bottom: 0; } }

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 96px); }
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form .btn { align-self: flex-start; }
.contact-info { border-left: 1px solid var(--line); padding-left: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; gap: 30px; }
.info-big { font-family: var(--serif); font-size: 26px; color: var(--silver-2); margin: 0; word-break: break-word; }
.info-block p { margin: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-info { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 40px; } .field-row { grid-template-columns: 1fr; } }

/* ---------- Nosotros ---------- */
.about-intro.has-img { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.about-intro img { aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--line); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 40px; }
.pillar { padding: 36px 28px 0 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar-n { font-family: var(--serif); font-size: 18px; color: var(--muted); letter-spacing: .2em; }
.pillar h3, .steps h3 { font-family: var(--serif); font-weight: 300; font-size: 28px; color: var(--silver-2); margin: 12px 0 10px; }
.pillar p, .steps p { margin: 0; font-size: 15px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: s; border-top: 1px solid var(--silver); padding-top: 24px; }
.steps li::before { content: "0" counter(s); font-size: 12px; letter-spacing: .3em; color: var(--muted); }
@media (max-width: 900px) { .pillars, .steps { grid-template-columns: 1fr 1fr; } .pillar:nth-child(3) { border-left: 0; padding-left: 0; } .about-intro.has-img { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pillars, .steps { grid-template-columns: 1fr; } .pillar + .pillar { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 28px; } }

/* ---------- Legal ---------- */
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--silver-2); margin: 48px 0 12px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 80px 0 calc(32px + var(--safe-b)); background: var(--black); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 40px; }
.brand-footer { align-items: flex-start; }
.brand-footer .brand-ord { padding-left: 0; }
.brand-footer .brand-line { background: var(--silver); width: 126px; }
.footer-claim { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--silver); margin: 20px 0 0; }
.footer-h { font-family: var(--sans); font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin: 0 0 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.footer-list li { margin-bottom: 8px; }
.footer-list a, .footer-text { color: var(--silver); }
.footer-list a:hover { color: var(--silver-2); }
.footer-text { margin: 0; font-size: 15px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.footer-bottom a { color: var(--silver); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .site-footer { padding-bottom: calc(110px + var(--safe-b)); } }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: calc(22px + var(--safe-r)); bottom: calc(22px + var(--safe-b)); z-index: 900; display: flex; align-items: center; gap: 12px; }
.wa-btn { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--silver-2); color: var(--black); box-shadow: 0 10px 30px rgba(0,0,0,.45); position: relative; transition: transform .3s var(--ease); }
.wa-btn:hover { color: var(--black); transform: scale(1.06); }
.wa-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--silver-2); animation: pulse 2.8s infinite var(--ease); }
.wa-bubble { position: relative; background: rgba(10,10,12,.94); border: 1px solid var(--line-2); color: var(--silver-2); font-size: 13px; letter-spacing: .08em; padding: 10px 36px 10px 16px; white-space: nowrap; animation: rise .8s var(--ease) both; }
.wa-bubble-close { position: absolute; top: 2px; right: 2px; width: 30px; height: 30px; background: none; border: 0; color: var(--silver); cursor: pointer; font-size: 18px; line-height: 1; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 70% { transform: scale(1.45); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Ventana acceso anticipado ---------- */
.ea-modal { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; padding: 20px; }
.ea-modal[hidden] { display: none; }
.ea-backdrop { position: absolute; inset: 0; background: rgba(5,5,7,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .5s both; }
.ea-card { position: relative; width: min(560px, 100%); background: var(--ink); border: 1px solid var(--line-2); padding: clamp(28px, 5vw, 48px); animation: rise .7s var(--ease) both; max-height: calc(100vh - 40px); overflow: auto; }
.ea-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; background: none; border: 0; color: var(--silver); font-size: 26px; cursor: pointer; }
.ea-h { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 4vw, 38px); color: var(--silver-2); margin: 0 0 12px; line-height: 1.15; }
.ea-p { margin: 0; font-size: 15px; }
.ea-card .sub-form { margin-top: 24px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.preview-bar { position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 45; background: var(--silver-2); color: var(--black); text-align: center; font-size: 13px; padding: 8px 16px; letter-spacing: .04em; }

/* ---------- Propiedad inmersiva ---------- */
.is-property .site-footer { position: relative; z-index: 2; }
.immersive { position: relative; background: var(--black); }
.scene { position: relative; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; background: #000; }
.scene-media { position: absolute; inset: 0; }
.scene-media img, .scene-media video { width: 100%; height: 100%; object-fit: cover; }
.scene-media img.kb { transform: scale(1); transition: transform 14s linear, opacity 1.2s var(--ease); opacity: 0; }
.scene-media img.kb.is-loaded, .scene-media img.kb[src]:not([data-src]) { opacity: 1; }
.scene.is-active .scene-media img.kb { transform: scale(1.09); }
.scene-video { opacity: 1; }
.scene-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,10,12,.55) 0%, rgba(10,10,12,0) 28%, rgba(10,10,12,0) 55%, rgba(10,10,12,.82) 100%); }
.scene-caption { position: absolute; left: 0; right: 0; bottom: calc(10vh + var(--safe-b)); padding: 0 max(24px, 6vw); z-index: 3; pointer-events: none; }
.scene-caption a, .scene-caption button { pointer-events: auto; }
.phrase { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(26px, 3.6vw, 52px); color: var(--silver-2); line-height: 1.2; max-width: 900px; margin: 0; opacity: 0; transform: translateY(24px); transition: opacity 1.4s .3s var(--ease), transform 1.4s .3s var(--ease); text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.scene.is-active .phrase { opacity: 1; transform: none; }
.scene-intro .eyebrow { color: var(--silver); }
.prop-title { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6.4vw, 92px); color: var(--silver-2); line-height: 1.05; margin: 0 0 12px; letter-spacing: .02em; text-shadow: 0 2px 40px rgba(0,0,0,.45); }
.prop-price { letter-spacing: .14em; color: var(--silver-2); margin: 0 0 28px; font-size: clamp(14px, 1.4vw, 18px); }
.scene-intro .phrase { font-size: clamp(22px, 2.6vw, 34px); }
.scene-empty { display: grid; align-items: end; background: radial-gradient(ellipse at 50% 30%, #1d1d24, var(--black)); }
.scroll-cue { position: absolute; bottom: calc(22px + var(--safe-b)); left: 50%; transform: translateX(-50%); font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--silver); z-index: 3; padding-left: .4em; }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 28px; margin: 10px auto 0; background: linear-gradient(var(--silver), transparent); animation: drip 2.4s infinite var(--ease); }
.imm-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.imm-progress span { display: block; height: 100%; width: 0; background: var(--silver-2); transition: width .2s linear; }
.imm-dots { position: fixed; right: calc(20px + var(--safe-r)); top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 4px; transition: opacity .4s; }
.imm-dots button { width: 28px; height: 22px; background: none; border: 0; cursor: pointer; position: relative; padding: 0; }
.imm-dots button::after { content: ""; position: absolute; right: 6px; top: 10px; width: 10px; height: 1px; background: var(--silver); opacity: .5; transition: width .4s var(--ease), opacity .4s; }
.imm-dots button[aria-current="true"]::after { width: 22px; opacity: 1; background: var(--silver-2); }
.imm-counter { position: fixed; left: calc(24px); bottom: calc(24px + var(--safe-b)); z-index: 40; margin: 0; font-size: 11px; letter-spacing: .3em; color: var(--silver); transition: opacity .4s; }
.imm-out .imm-dots, .imm-out .imm-counter, .imm-out .sound-toggle { opacity: 0; pointer-events: none; }
.sound-toggle { position: fixed; left: 24px; top: calc(var(--nav-h) + 16px); z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 14px; background: rgba(10,10,12,.55); border: 1px solid var(--line-2); color: var(--silver-2); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; cursor: pointer; transition: opacity .4s, border-color .3s; }
.sound-toggle:hover { border-color: var(--silver); }
.sound-icon { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.sound-icon i { width: 2px; height: 4px; background: var(--silver-2); }
.sound-toggle[aria-pressed="true"] .sound-icon i { animation: eq 1.1s infinite ease-in-out; }
.sound-toggle[aria-pressed="true"] .sound-icon i:nth-child(2) { animation-delay: .2s; }
.sound-toggle[aria-pressed="true"] .sound-icon i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%,100% { height: 3px; } 50% { height: 12px; } }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; min-height: 52px; padding: 12px 28px; background: rgba(10,10,12,.6); border: 1px solid var(--silver-2); color: var(--silver-2); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; cursor: pointer; }
.pano { position: absolute; inset: 0; background: #000 center/cover no-repeat; }
.pano .pnlm-container { background: #000; }
.pano-hint { position: absolute; top: calc(var(--nav-h) + 20px); right: calc(64px + var(--safe-r)); z-index: 3; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--silver-2); background: rgba(10,10,12,.5); padding: 8px 12px; border: 1px solid var(--line-2); pointer-events: none; }
.scene-pano360 .scene-shade, .scene-pano180 .scene-shade { background: linear-gradient(180deg, rgba(10,10,12,0) 60%, rgba(10,10,12,.7) 100%); }
.scene-pano360 .scene-caption, .scene-pano180 .scene-caption { pointer-events: none; }
.embed { position: absolute; inset: 0; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-thumb { width: 100%; height: 100%; object-fit: cover; opacity: .7; }

/* Detalles */
.prop-details { position: relative; z-index: 2; background: var(--black); }
.prop-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.prop-desc { font-size: 18px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.feature-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.prop-aside { position: sticky; top: calc(var(--nav-h) + 24px); }
.spec-card { border: 1px solid var(--line-2); padding: 32px; background: var(--ink); display: flex; flex-direction: column; gap: 14px; }
.spec-price { font-family: var(--serif); font-size: 32px; color: var(--silver-2); margin: 0 0 6px; }
.specs { margin: 0 0 12px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--silver-2); text-align: right; }
.docs { margin-top: 24px; }
.doc-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.doc { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.doc-ext { flex: 0 0 52px; text-align: center; font-size: 10px; letter-spacing: .14em; border: 1px solid var(--line-2); padding: 6px 0; color: var(--silver); }
.doc-name { flex: 1; color: var(--silver-2); font-size: 15px; }
.doc-name small { color: var(--muted); margin-left: 6px; }
.doc-dl { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; border-bottom: 1px solid var(--silver); padding: 6px 0; }
.doc-lock { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.doc-lock::before { content: ""; display: inline-block; width: 8px; height: 7px; border: 1px solid var(--muted); margin-right: 8px; vertical-align: 1px; }
.unlock { margin-top: 24px; padding: 24px; border: 1px solid var(--line-2); }
.unlock p { margin: 0; font-size: 15px; }
.unlock .sub-form { margin-top: 18px; }
@media (max-width: 900px) {
  .prop-grid { grid-template-columns: 1fr; }
  .prop-aside { position: static; }
  .feature-list { grid-template-columns: 1fr; }
  .imm-dots { right: calc(8px + var(--safe-r)); }
  .sound-toggle { left: 16px; top: calc(var(--nav-h) + 10px); }
  .pano-hint { right: 16px; top: auto; bottom: calc(24px + var(--safe-b)); left: auto; }
  .scene-caption { bottom: calc(12vh + var(--safe-b)); padding-right: 48px; }
  .imm-counter { left: 20px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .scene.is-active .scene-media img.kb { transform: none; }
  .wa-btn::before { display: none; }
  .hero-bg { transform: none; }
}

/* ---------- Entrega 2 · Ingresar, aliados, confirmación ---------- */
.nav-btn { background: none; border: 0; padding: 8px 0; cursor: pointer; font-family: var(--sans); font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--silver); font-weight: 400; position: relative; }
.nav-btn::after { content: ""; position: absolute; left: 0; right: .34em; bottom: 0; height: 1px; background: var(--silver-2); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-btn:hover { color: var(--silver-2); } .nav-btn:hover::after { transform: scaleX(1); }
.nav-form { margin: 0; }
@media (max-width: 900px) { .nav-btn { font-size: 15px; } }
.g-box { margin-top: 24px; min-height: 48px; }
.g-slot { display: flex; justify-content: flex-start; min-height: 44px; }
.gi-legal { font-size: 12px; color: var(--muted); margin: 18px 0 0; }
.gi-legal a { text-decoration: underline; text-underline-offset: 3px; }
.toast-static { position: fixed; top: calc(var(--nav-h) + 14px); left: 50%; transform: translateX(-50%); z-index: 70; background: var(--ink); border: 1px solid var(--silver); color: var(--silver-2); padding: 12px 22px; font-size: 14px; letter-spacing: .04em; animation: rise .6s var(--ease) both, fadeAway .8s 6s forwards; max-width: calc(100% - 32px); text-align: center; }
@keyframes fadeAway { to { opacity: 0; visibility: hidden; } }
.btn-row-left { justify-content: flex-start; }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: 11px; letter-spacing: .2em; }
.btn-danger { border-color: #7a4646; color: #f0b9b9; } .btn-danger:hover { background: #f0b9b9; color: var(--black); border-color: #f0b9b9; }
.field-err { color: var(--err); font-size: 13px; }
.status-card { border: 1px solid var(--line-2); padding: clamp(28px, 5vw, 48px); background: var(--ink); }
.status-card .section-title { margin-bottom: 10px; }
.account-box { border-top: 1px solid var(--line); }
.account-box form { margin: 0; }
.filters-partner { grid-template-columns: repeat(4, 1fr) auto; }
.pf-fav { margin: 0; align-items: center; min-height: 50px; }
.pcards .card-title a { color: var(--silver-2); }
.plabels { display: flex; flex-wrap: wrap; gap: 6px; min-height: 22px; margin-bottom: 8px; }
.plabel { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; border: 1px solid var(--silver); color: var(--silver-2); padding: 3px 9px; }
.pold { color: var(--muted); margin-left: 10px; font-size: 14px; }
.pmeta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; font-size: 14px; }
.pmeta dt { color: var(--muted); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.pmeta dd { margin: 2px 0 0; color: var(--silver-2); }
.pdocs { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14px; }
.pdocs a { border-bottom: 1px solid var(--line-2); }
.pdocs small { color: var(--muted); }
.pactions { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.pfav { width: 44px; height: 42px; background: none; border: 1px solid var(--line-2); color: var(--silver-2); font-size: 20px; cursor: pointer; }
.pfav.on { border-color: var(--silver-2); }
.preq { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.preq[hidden] { display: none; }
.toasts { position: fixed; left: 20px; bottom: calc(20px + var(--safe-b)); z-index: 920; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100% - 110px)); }
.toast { background: rgba(10,10,12,.96); border: 1px solid var(--silver); color: var(--silver-2); padding: 12px 16px; font-size: 14px; animation: rise .5s var(--ease) both; transition: opacity .6s; }
.toast.out { opacity: 0; }
.confirm-box { text-align: center; }
@media (max-width: 1100px) { .filters-partner { grid-template-columns: repeat(2, 1fr); } }
.pcard .card-media { display: block; }
.pcard { display: flex; flex-direction: column; }

/* ---------- Entrega 3A · Redes, compartir, videos, cookies ---------- */
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); color: var(--silver); transition: color .3s, border-color .3s; }
.social a:hover { color: var(--silver-2); border-color: var(--silver); }
.social a:focus-visible { outline: 1px solid var(--silver-2); outline-offset: 3px; }
.social-menu { display: none; }
@media (max-width: 900px) {
  .main-nav { flex-direction: column; gap: 34px; }
  .social-menu { display: flex; order: 2; justify-content: center; margin: 0; }
}
.social-contacto { margin-top: 4px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--silver); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--silver-2); }
.share { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.share-h { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-btn { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-2); background: none; color: var(--silver-2); font: inherit; font-size: 13px; cursor: pointer; }
.share-btn:hover { border-color: var(--silver); color: #fff; }
.share-btn[hidden] { display: none; }
.share-msg { min-height: 1.4em; font-size: 13px; color: var(--ok); margin: 8px 0 0; }
.embed .embed-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.embed-neutral { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, #1d1d24, #0a0a0c); color: #5f5f6a; font-family: var(--serif); font-size: 40px; letter-spacing: .3em; }
.embed.is-playing .embed-thumb, .embed.is-playing .embed-play { display: none; }
.embed.embed-failed .embed-thumb { opacity: 1; }
.yt-cover { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.yt-cover iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; transform: translate(-50%, -50%); border: 0; }
.embed .yt-cover iframe[src*="controls=1"] { pointer-events: auto; }
.social-videos { border-top: 1px solid var(--line); }
.sv-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.sv-item { position: relative; aspect-ratio: 16/9; background: var(--ink); border: 1px solid var(--line); overflow: hidden; }
.sv-item.is-vertical { aspect-ratio: 9/16; max-height: 560px; }
.sv-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv-poster.embed-neutral svg { width: 56px; height: 56px; color: var(--silver); }
.sv-item iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.sv-label { position: absolute; left: 12px; top: 10px; margin: 0; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--silver-2); background: rgba(10,10,12,.7); padding: 4px 8px; }
.sv-item.is-loaded .sv-label, .sv-item.is-loaded .sv-poster { display: none; }
.sv-note { font-size: 13px; margin-top: 14px; }
/* Sección "Video inmersivo" (YouTube fuera del recorrido, antes del simulador) */
.immersive-video { border-top: 1px solid var(--line); }
.immersive-video .section-title { margin-bottom: 10px; }
.vi-lead { font-family: var(--serif); font-weight: 300; font-size: clamp(19px, 2.2vw, 24px); color: var(--silver); margin: 0 0 28px; }
.immersive-video .sv-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); max-width: 960px; }
.cookie-banner { position: fixed; left: 16px; right: calc(96px + var(--safe-r)); bottom: calc(16px + var(--safe-b)); z-index: 960; max-width: 760px; background: rgba(17,17,21,.98); border: 1px solid var(--line-2); padding: 18px 20px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.cookie-banner[hidden] { display: none; }
.ck-text { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.ck-text a { text-decoration: underline; text-underline-offset: 3px; }
.ck-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ck-panel { margin: 0 0 14px; display: flex; flex-direction: column; gap: 4px; }
.ck-panel[hidden] { display: none; }
.ck-panel .consent { margin: 6px 0; color: var(--silver); }
.ck-panel .btn { align-self: flex-start; margin-top: 8px; }
.consent input:disabled { opacity: .6; }
@media (max-width: 560px) { .cookie-banner { right: 16px; bottom: calc(92px + var(--safe-b)); } .ck-btns .btn { flex: 1; } }
/* Con el menú móvil abierto, el aviso de cookies no tapa las opciones (vuelve al cerrarlo) */
.nav-open .cookie-banner { display: none; }

/* ===== Entrega 3B · agenda, simulador, landings, equipo, gracias ===== */
.agenda { border: 1px solid var(--line); padding: 18px 18px 8px; margin: 6px 0 22px; min-width: 0; }
.agenda-legend { font-family: var(--serif); font-size: 22px; color: var(--silver-2); padding: 0 8px; }
.ag-choice, .ag-types { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 4px 0 12px; }
.ag-opt { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 15px; }
.ag-opt input { width: 18px; height: 18px; accent-color: var(--silver); }
.ag-tz { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.ag-need { font-size: 14px; color: var(--silver-2); }
.ag-label { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin: 12px 0 8px; }
.ag-days { display: grid; grid-auto-flow: column; grid-auto-columns: 62px; gap: 8px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.ag-day { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 76px; padding: 8px 4px; background: transparent; color: var(--silver); border: 1px solid var(--line-2); font-family: var(--sans); cursor: pointer; transition: border-color .2s, background .2s; }
.ag-day .ag-dow, .ag-day .ag-mon { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.ag-day .ag-num { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--silver-2); }
.ag-day:hover:not([disabled]), .ag-hour:hover { border-color: var(--silver); }
.ag-day[aria-pressed="true"], .ag-hour[aria-pressed="true"] { background: var(--silver-2); color: var(--black); border-color: var(--silver-2); }
.ag-day[aria-pressed="true"] .ag-num { color: var(--black); }
.ag-day[disabled] { opacity: .32; cursor: not-allowed; text-decoration: line-through; }
.ag-hours { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-hour { min-height: 44px; min-width: 96px; padding: 8px 14px; background: transparent; color: var(--silver-2); border: 1px solid var(--line-2); font-family: var(--sans); font-size: 15px; cursor: pointer; }
.ag-day:focus-visible, .ag-hour:focus-visible { outline: 2px solid var(--silver-2); outline-offset: 2px; }
.ag-status { min-height: 1.5em; font-size: 14px; color: var(--silver-2); margin: 10px 0; }
.ag-alts { margin-bottom: 10px; }
.ea-card-wide { width: min(720px, 100%); }
body.dlg-open { overflow: hidden; }
.spec-wait { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--silver-2); text-align: center; margin: 14px 0 8px; }
.badge-wait { top: 50px; }
.simulator { border-top: 1px solid var(--line); }
.sim-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.sim-note { font-size: 13px; color: var(--muted); }
.sim-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sim-out { border: 1px solid var(--line-2); padding: 14px 18px; margin: 8px 0 18px; }
.sim-out p { display: flex; justify-content: space-between; gap: 16px; margin: 6px 0; font-size: 15px; }
.sim-out strong { color: var(--silver-2); font-weight: 400; text-align: right; }
.sim-out p:first-child strong { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.next-steps { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.thanks-appt { border: 1px solid var(--line-2); padding: 18px 22px; margin-top: 18px; max-width: 620px; }
.thanks-appt p { margin: 4px 0; }
.appt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 34px; }
.appt-actions form { margin: 0; }
.team-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.team-card img, .team-noimg { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); }
.team-noimg { display: grid; place-items: center; font-family: var(--serif); font-size: 42px; letter-spacing: .3em; color: var(--line-2); background: var(--ink); }
.team-name { font-family: var(--serif); font-weight: 300; font-size: 26px; color: var(--silver-2); margin: 14px 0 0; }
.team-role { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin: 2px 0 8px; }
.team-bio { font-size: 15px; }
.lp-hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 40px) 0 clamp(40px, 8vh, 90px); overflow: hidden; }
.lp-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,.35), rgba(10,10,12,.85)); }
.lp-inner { position: relative; }
.lp-body { font-size: 18px; }
.focus-wa { margin-left: auto; }
@media (max-width: 800px) {
  .sim-grid { grid-template-columns: 1fr; }
  .agenda { padding: 14px 12px 6px; }
  .ag-hour { min-width: calc(33.33% - 6px); flex: 1 0 calc(33.33% - 6px); }
}
.dlg-open .cookie-banner, .dlg-open .wa-float { display: none; }
.contact-grid > *, .contact-form, .booking-form, .agenda, .ag-body { min-width: 0; max-width: 100%; }
.ag-days { max-width: 100%; }
.team-noimg::after { content: "—"; }
.consent-wa { margin-top: -6px; }

/* Bloque 4F · contratos de aliados */
.contract-doc { max-height: 60vh; overflow: auto; border: 1px solid var(--line); padding: 20px; background: var(--ink); line-height: 1.6; font-size: 15px; }
.contract-end { margin-top: 24px; color: var(--silver); font-size: 13px; word-break: break-all; }
.sig-pad { display: block; width: 100%; max-width: 480px; height: 140px; background: #f4f4f6; border: 1px solid var(--line); touch-action: none; margin-top: 6px; }
.notice-warn { border-color: #b35; }
.plain-list { list-style: none; padding: 0; } .plain-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }

.consent-window { display: block; font-size: 13px; color: var(--muted); margin: 6px 0 12px; } .consent-window select { margin-left: 8px; }

/* 4I · Logo subido desde el panel (Marca) */
.brand-logo { display: block; height: 44px; width: auto; max-width: 240px; object-fit: contain; }
.brand-footer .brand-logo { height: 40px; }
@media (max-width: 640px) { .brand-logo { height: 36px; max-width: 180px; } }

/* Ajuste de videos: un video vertical (o muy distinto de la pantalla) se ve completo, centrado y con fondo difuminado */
.scene-blur { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(32px) brightness(.45); transform: scale(1.08); display: none; }
.scene.video-contain .scene-blur { display: block; }
.scene.video-contain .scene-media video.scene-video { object-fit: contain; position: relative; z-index: 1; background: transparent; }
.scene.video-contain .scene-media { background: #000; }

/* Ajuste de rendimiento · reproductor en ventana: nunca atrapa el mouse ni el scroll; se cierra con "Cerrar", Esc o clic fuera */
.ord-player { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: max(56px, 4vh) 16px 16px; }
.gp-backdrop { position: absolute; inset: 0; background: rgba(5,5,7,.88); animation: fade .3s both; }
.gp-box { position: relative; width: min(1200px, 100%, calc((100vh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.gp-box.is-vertical { width: min(420px, 100%, calc((100vh - 120px) * 9 / 16)); aspect-ratio: 9 / 16; }
.gp-frame, .gp-frame iframe, .gp-frame > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gp-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: calc(16px + var(--safe-r)); z-index: 2; background: rgba(10,10,12,.85); color: var(--silver-2); border: 1px solid var(--line-2); padding: 10px 16px; font: inherit; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.gp-close:hover, .gp-close:focus-visible { border-color: var(--silver); color: #fff; }
body.player-open { overflow: hidden; }
.player-open .wa-float, .player-open .cookie-banner, .player-open .imm-dots, .player-open .sound-toggle { visibility: hidden; }

/* Ajuste de rendimiento · las secciones de abajo no se dibujan hasta que se acercan a la pantalla */
.social-videos, .section-early, .section-quote, .immersive-video, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 640px; }
@media (prefers-reduced-motion: reduce) { .scene-media img.kb { transition: opacity .3s; } }
/* 5B · Agenda del propietario por enlace */
.slot-day{border:1px solid var(--line,rgba(255,255,255,.15));border-radius:6px;padding:.6rem .9rem;margin:0 0 .8rem}
.slot-day legend{padding:0 .3rem;font-weight:600}
.slot-list{display:flex;flex-wrap:wrap;gap:.5rem}
.slot-opt{display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .6rem;border:1px solid var(--line,rgba(255,255,255,.2));border-radius:4px;cursor:pointer;min-height:44px}
.sim-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

/* Primera toma en movimiento en el catálogo */
.card-media .card-video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--ink); filter: saturate(.95); }
