/* Galcar & Co — tema sobre el motor scroll-world */
:root, .sw-root {
  --negro: #0A0A0A;
  --crema: #F2EEE6;
  --oro: #C8B27C;
  --sw-bg: #0A0A0A;
  --sw-ink: #F2EEE6;
  --sw-ink-soft: rgba(242, 238, 230, .68);
  --sw-accent: #C8B27C;
  --sw-font-display: "Cormorant Garamond", Georgia, serif;
  --sw-font-body: "Jost", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --glass: rgba(10, 10, 10, .42);
  --line: rgba(200, 178, 124, .38);
}
* { box-sizing: border-box; }
html { background: var(--negro); color-scheme: dark; }
body { margin: 0; background: var(--negro); color: var(--crema); font-family: var(--sw-font-body); font-weight: 300; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--oro); color: var(--negro); padding: 8px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }

h2, h3 { font-family: var(--sw-font-display); font-weight: 500; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.04; }
.gc-eyebrow { margin: 0 0 14px; font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--oro); font-weight: 400; }
.gc-lead { margin: 18px 0 0; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.6; color: var(--sw-ink-soft); max-width: 36ch; }
.gc-sec { text-shadow: 0 2px 24px rgba(0, 0, 0, .7); }

/* ---------- motor: ajustes ---------- */
.sw-copylayer::before, .sw-route, .sw-topbar, .sw-scrollbar, .sw-particles { display: none; }
.sw-hint { color: rgba(242, 238, 230, .6); font-size: .66rem; letter-spacing: .34em; z-index: 40; }
.sw-hint i { border-color: rgba(200, 178, 124, .5); }
.sw-scene__video, .sw-scene__still { object-position: center center; }
.gc-sec.sw-copy { position: absolute; inset: auto; top: auto; left: auto; transform: none; width: auto; max-width: none; }
.sw-copylayer { z-index: 22; }
/* viñeta suave para leer sobre el vídeo */
.sw-stage::after { content: ""; position: absolute; inset: 0; z-index: 200; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%); }

/* ---------- cabecera ---------- */
.gc-header { position: fixed; inset: 0 0 auto 0; z-index: 80; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px var(--gutter); opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .6s ease, transform .6s ease;
  background: linear-gradient(180deg, rgba(10,10,10,.7), rgba(10,10,10,0)); }
.gc-header.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.gc-lang { position: fixed; top: 18px; right: var(--gutter); z-index: 90; display: flex; align-items: center; gap: 2px; min-height: 30px; }
.gc-lang a { font-size: .7rem; letter-spacing: .2em; text-decoration: none; padding: 6px 7px; color: rgba(242,238,230,.55); transition: color .2s; }
.gc-lang a + a { border-inline-start: 1px solid var(--line); }
.gc-lang a[aria-current] { color: var(--oro); }
.gc-lang a:hover, .gc-lang a:focus-visible { color: var(--crema); outline: none; }
.gc-header { padding-right: calc(var(--gutter) + 130px); }
.gc-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.gc-brand img { width: 22px; height: auto; }
.gc-brand span { font-size: .78rem; letter-spacing: .34em; text-transform: uppercase; font-weight: 400; }
.gc-brand em { font-style: normal; color: var(--oro); }
.gc-nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.gc-nav a { text-decoration: none; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(242,238,230,.75);
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.gc-nav a:hover, .gc-nav a:focus-visible { color: var(--oro); border-color: var(--line); }

/* ---------- portada ---------- */
.gc-intro { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; pointer-events: none;
  background: rgba(10, 10, 10, var(--bg, 1)); }
.gc-intro__logo { margin: 0; opacity: var(--logo, 1); transform: scale(var(--logo-scale, 1)); will-change: opacity, transform; }
.gc-intro__logo img { display: block; width: min(440px, 72vw); height: auto; }

/* ---------- botones ---------- */
.gc-btn { display: inline-block; text-decoration: none; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 2px; font-weight: 400; transition: background .25s, color .25s, transform .25s; text-shadow: none; }
.gc-btn--gold { background: var(--oro); color: var(--negro); }
.gc-btn--gold:hover { background: var(--crema); transform: translateY(-2px); }
.gc-btn--ghost { border: 1px solid rgba(242,238,230,.5); color: var(--crema); background: rgba(10,10,10,.55); }
.gc-btn--ghost:hover { border-color: var(--oro); color: var(--oro); transform: translateY(-2px); }
.gc-btn:focus-visible, .gc-nav a:focus-visible, summary:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }

/* velo detrás de los textos laterales */
.gc-sec--hall.sw-copy::before, .gc-sec--cocina.sw-copy::before, .gc-sec--garaje.sw-copy::before, .gc-sec--terraza.sw-copy::before {
  content: ""; position: absolute; z-index: -1; inset: -30vh -12vw -30vh -40vw; pointer-events: none;
  background: radial-gradient(closest-side, rgba(10,10,10,.72), rgba(10,10,10,.38) 60%, transparent); }
.gc-sec--terraza.sw-copy::before { inset: -30vh -40vw -30vh -12vw; }
.gc-sec--cine.sw-copy::before, .gc-sec--dormitorio.sw-copy::before {
  content: ""; position: absolute; z-index: -1; inset: -12vh -8vw; pointer-events: none;
  background: radial-gradient(closest-side, rgba(10,10,10,.55), transparent); }
.gc-sec--cine.sw-copy::before { background: radial-gradient(closest-side, rgba(10,10,10,.78), rgba(10,10,10,.45) 65%, transparent); }
.gc-sec--cine h2 { text-shadow: 0 2px 30px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.6); }

/* ---------- 2 · hall ---------- */
.gc-sec--hall.sw-copy { left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(520px, 44vw); }

/* ---------- 3 · cine ---------- */
.gc-sec--cine.sw-copy { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(920px, 90vw); text-align: center; }
.gc-galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 20px); margin: 26px 0 28px; }
.gc-poster { aspect-ratio: 16 / 9; width: 100%; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 3px;
  background: linear-gradient(160deg, rgba(10,10,10,.8), rgba(10,10,10,.62)); object-fit: cover; }
.gc-poster span { font-family: var(--sw-font-display); font-style: italic; font-size: clamp(.95rem, 1.4vw, 1.2rem); color: var(--oro); padding: 0 10px; }
.gc-testimonios[hidden] { display: none !important; }
.gc-testimonios { display: flex; justify-content: center; gap: clamp(18px, 3vw, 44px); margin: 0 0 26px; }
.gc-testimonios figure { margin: 0; flex: 1 1 0; max-width: 420px; padding-top: 14px; position: relative; }
.gc-testimonios figure::before { content: ""; position: absolute; top: 0; left: 50%; width: 36px; height: 1px; background: var(--oro); transform: translateX(-50%); }
.gc-testimonios blockquote { margin: 0; font-family: var(--sw-font-display); font-style: italic; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.35;
  color: var(--crema); text-shadow: 0 2px 18px rgba(0,0,0,.9); }
.gc-testimonios blockquote::before { content: "\201C"; } .gc-testimonios blockquote::after { content: "\201D"; }
.gc-testimonios figcaption { margin-top: 8px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--oro); }
.gc-testimonios figcaption span { color: var(--sw-ink-soft); }
.gc-testimonios .gc-st { display: block; color: var(--oro); font-size: .8rem; letter-spacing: .3em; margin-bottom: 6px; font-style: normal; }
.gc-media[hidden] { display: none !important; }
.gc-media { margin: 0 0 18px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sw-ink-soft); }
.gc-media b { color: var(--oro); font-weight: 400; }
.gc-cine-ctas { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.gc-opinar { background: none; border: 0; padding: 6px 0; cursor: pointer; font: inherit; font-size: .74rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--crema); border-bottom: 1px solid var(--line); }
.gc-opinar:hover, .gc-opinar:focus-visible { color: var(--oro); border-color: var(--oro); outline: none; }

/* ---------- formulario de opinión ---------- */
.gc-dialog { border: 1px solid var(--line); border-radius: 8px; padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  background: #0f0e0c; color: var(--crema); box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.gc-dialog::backdrop { background: rgba(5,5,5,.78); }
.gc-form { position: relative; padding: clamp(24px, 5vw, 40px); display: grid; gap: 14px; }
.gc-form h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 4px; }
.gc-form .gc-eyebrow { margin-bottom: 0; }
.gc-dialog__cerrar { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--sw-ink-soft); font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 6px 10px; }
.gc-dialog__cerrar:hover { color: var(--oro); }
.gc-estrellas { border: 0; padding: 0; margin: 0; min-width: 0; }
.gc-estrellas__fila { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.gc-estrellas legend { padding: 0; margin-bottom: 6px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sw-ink-soft); }
.gc-estrellas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gc-estrellas label { cursor: pointer; font-size: 2rem; line-height: 1; color: rgba(200,178,124,.28); transition: color .15s, transform .15s; padding: 2px; }
.gc-estrellas label::before { content: "\2605"; }
.gc-estrellas input:checked ~ label, .gc-estrellas label:hover, .gc-estrellas label:hover ~ label { color: var(--oro); }
.gc-estrellas label:hover { transform: scale(1.12); }
.gc-estrellas input:focus-visible + label { outline: 2px solid var(--oro); outline-offset: 2px; border-radius: 3px; }
.gc-campo { display: grid; gap: 6px; }
.gc-campo > span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sw-ink-soft); }
.gc-campo em { text-transform: none; letter-spacing: 0; font-style: normal; opacity: .7; }
.gc-campo input, .gc-campo textarea { font: inherit; font-size: 1rem; color: var(--crema); background: #171614; border: 1px solid rgba(200,178,124,.25);
  border-radius: 4px; padding: 11px 12px; width: 100%; resize: vertical; }
.gc-campo input:focus, .gc-campo textarea:focus { outline: none; border-color: var(--oro); }
.gc-campo ::placeholder { color: rgba(242,238,230,.3); }
.gc-trampa { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.gc-check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; cursor: pointer; }
.gc-check input { accent-color: var(--oro); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.gc-nota { margin: 0; font-size: .78rem; color: var(--sw-ink-soft); }
.gc-form__msg { margin: 0; min-height: 1.2em; font-size: .9rem; color: var(--oro); }
.gc-form__msg.is-error { color: #e9a1a1; }
.gc-form .gc-btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.gc-form .gc-btn[disabled] { opacity: .6; cursor: wait; }
body.gc-modal { overflow: hidden; }

/* ---------- 4 · dormitorio: almohadas ---------- */
.gc-sec--dormitorio.sw-copy { left: 50%; bottom: clamp(28px, 9vh, 90px); transform: translateX(-50%); width: min(1180px, 94vw); text-align: center; }
.gc-sec--dormitorio h2 { margin-bottom: 22px; }
.gc-almohadas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.gc-almohadas li { padding: 22px 18px 20px; border-radius: 34px; text-shadow: none;
  background: linear-gradient(170deg, rgba(30,26,20,.8), rgba(10,10,10,.7));
  border: 1px solid rgba(242,238,230,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 18px 40px rgba(0,0,0,.35); }
.gc-almohadas h3 { font-size: 1.45rem; }
.gc-precio { margin: 4px 0 10px; color: var(--oro); font-family: var(--sw-font-display); font-size: 1.35rem; }
.gc-almohadas p:last-child { margin: 0; font-size: .86rem; line-height: 1.5; color: rgba(242,238,230,.85); }

/* ---------- 5 · cocina: pasos ---------- */
.gc-sec--cocina.sw-copy { left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(520px, 46vw); }
.gc-pasos { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.gc-pasos li { --t: clamp(0, calc((var(--p, 1) - .12 - var(--k) * .13) * 7), 1);
  opacity: var(--t); transform: translateX(calc((1 - var(--t)) * -18px));
  padding-inline-start: 16px; border-inline-start: 1px solid var(--line); }
.gc-pasos h3 { font-size: 1.4rem; display: flex; align-items: baseline; gap: 10px; }
.gc-pasos h3 span { font-family: var(--sw-font-body); font-size: .72rem; color: var(--oro); letter-spacing: .1em; }
.gc-pasos p { margin: 4px 0 0; font-size: .92rem; line-height: 1.5; color: var(--sw-ink-soft); }

/* ---------- 6 · terraza: preguntas ---------- */
.gc-sec--terraza.sw-copy { right: var(--gutter); top: 50%; transform: translateY(-50%); width: min(500px, 44vw); }
.gc-faq { margin-top: 24px; border-top: 1px solid var(--line); }
.gc-faq details { border-bottom: 1px solid var(--line); }
.gc-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; }
.gc-faq summary::-webkit-details-marker { display: none; }
.gc-faq summary::after { content: "+"; color: var(--oro); font-size: 1.3rem; transition: transform .3s; }
.gc-faq details[open] summary::after { transform: rotate(45deg); }
.gc-faq h3 { font-size: 1.3rem; }
.gc-faq details p { margin: 0 0 18px; font-size: .95rem; line-height: 1.55; color: var(--sw-ink-soft); }

/* ---------- 7 · garaje: contacto ---------- */
.gc-sec--garaje.sw-copy { left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(540px, 46vw); }
.gc-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.gc-motion { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90; font: inherit; font-size: .64rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--crema); background: rgba(10,10,10,.6); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.gc-motion:hover { color: var(--oro); }

/* ---------- pie ---------- */
.gc-footer { position: relative; z-index: 70; background: var(--negro); text-align: center; padding: 64px var(--gutter) 40px; border-top: 1px solid rgba(200,178,124,.2); }
.gc-footer img { width: 34px; height: auto; opacity: .9; }
.gc-footer__links { margin: 20px 0 8px; font-size: .9rem; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gc-footer__links a { text-decoration: none; }
.gc-footer__links a:hover { color: var(--oro); }
.gc-social { display: flex; align-items: center; justify-content: flex-start; gap: 14px; margin: 26px 0 0; }
.gc-social span { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sw-ink-soft); }
.gc-social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(10,10,10,.45);
  color: var(--crema); transition: color .2s, border-color .2s, transform .2s; }
.gc-social a:hover, .gc-social a:focus-visible { color: var(--oro); border-color: var(--oro); transform: translateY(-2px); outline: none; }
.gc-footer__copy { margin: 0; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(242,238,230,.5); }

/* ---------- sin JS: contenido legible en flujo normal ---------- */
main > .gc-sec:not(.sw-copy) { padding: 60px var(--gutter); max-width: 900px; margin: 0 auto; }

/* ---------- móvil ---------- */
@media (max-width: 860px) {
  .gc-header { flex-direction: column; gap: 10px; padding: 14px 16px; }
  .gc-lang { top: 10px; right: 8px; }
  .gc-lang a { font-size: .62rem; padding: 6px 6px; }
  .gc-nav { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .gc-nav a { font-size: .62rem; letter-spacing: .14em; }
  h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .gc-sec.sw-copy { left: 16px !important; right: 16px !important; width: auto !important; transform: none !important;
    top: auto !important; bottom: calc(26px + env(safe-area-inset-bottom)) !important; text-align: start; }
  .gc-sec.sw-copy::before { content: ""; position: absolute; inset: -40px -16px -40px; z-index: -1;
    background: linear-gradient(0deg, rgba(10,10,10,.92), rgba(10,10,10,.6) 70%, transparent); }
  .gc-galeria { grid-template-columns: 1fr 1fr; margin: 18px 0; }
  .gc-galeria .gc-poster:nth-child(3) { display: none; }
  .gc-testimonios { margin: 0 0 16px; justify-content: flex-start; }
  .gc-testimonios figure { max-width: none; }
  .gc-testimonios figure:not(:first-child) { display: none; }
  .gc-testimonios figure::before { left: 0; transform: none; }
  .gc-media { margin-bottom: 12px; }
  .gc-cine-ctas { justify-content: flex-start; gap: 18px; }
  .gc-almohadas { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gc-almohadas li { padding: 12px 12px; border-radius: 20px; }
  .gc-almohadas h3 { font-size: 1.1rem; }
  .gc-precio { font-size: 1.05rem; margin: 2px 0 4px; }
  .gc-almohadas p:last-child { font-size: .74rem; line-height: 1.35; }
  .gc-sec--dormitorio h2 { margin-bottom: 12px; }
  .gc-pasos { gap: 10px; margin-top: 16px; }
  .gc-pasos h3 { font-size: 1.15rem; }
  .gc-pasos p { font-size: .8rem; }
  .gc-faq h3 { font-size: 1.1rem; }
  .gc-faq summary { padding: 12px 0; }
  .gc-lead { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gc-header, .gc-btn { transition: none; }
  .gc-pasos li { opacity: 1; transform: none; }
}

/* ---------- Árabe: escritura de derecha a izquierda ---------- */
html[lang="ar"], html[lang="ar"] .sw-root {
  --sw-font-display: "Noto Naskh Arabic", "Cormorant Garamond", Georgia, serif;
  --sw-font-body: "IBM Plex Sans Arabic", "Jost", system-ui, sans-serif;
}
/* El espaciado entre letras rompe la escritura árabe (las letras van unidas). */
html[lang="ar"] *:not(.gc-brand *):not(.gc-lang *):not([lang="es"]):not([lang="en"]) { letter-spacing: 0 !important; }
html[lang="ar"] h2 { line-height: 1.35; font-weight: 600; }
html[lang="ar"] h3 { font-weight: 600; }
html[lang="ar"] .gc-eyebrow, html[lang="ar"] .gc-nav a, html[lang="ar"] .gc-btn, html[lang="ar"] .gc-opinar,
html[lang="ar"] .sw-hint, html[lang="ar"] .gc-campo > span, html[lang="ar"] .gc-estrellas legend { font-size: .9rem; }
html[lang="ar"] .gc-lead, html[lang="ar"] .gc-faq p, html[lang="ar"] .gc-pasos p { line-height: 1.8; }
html[lang="ar"] .gc-poster span, html[lang="ar"] .gc-testimonios blockquote { font-style: normal; }
[dir="rtl"] .gc-lang { right: auto; left: var(--gutter); }
[dir="rtl"] .gc-header { padding-right: var(--gutter); padding-left: calc(var(--gutter) + 130px); }
[dir="rtl"] .gc-pasos li { transform: translateX(calc((1 - var(--t)) * 18px)); }
[dir="rtl"] .gc-motion { right: auto; left: 16px; }
[dir="rtl"] .gc-dialog__cerrar { right: auto; left: 12px; }
@media (max-width: 860px) {
  [dir="rtl"] .gc-lang { left: 8px; right: auto; }
  [dir="rtl"] .gc-header { padding: 14px 16px; }
  [dir="rtl"] .gc-testimonios figure::before { left: auto; right: 0; }
  html[lang="ar"] .gc-nav a { font-size: .78rem; }
}
