/* =========================================================
   CUATROGATOS FILMS — style.css  v2
   Dark mode · header centrado · Bricolage Grotesque
   ========================================================= */

/* ===== FUENTES AUTOHOSPEDADAS ===== */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/bricolage-grotesque-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/bricolage-grotesque-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/inter-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500.woff2') format('woff2');
}

:root {
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --fg: #f2f2f2;
  --fg-dim: #888;
  --fg-mute: #8a8a8a;
  --accent: #ffffff;
  --border: rgba(255,255,255,0.1);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --max: 1600px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --header-h: clamp(160px, 22vh, 220px);

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }

/* Skip link de accesibilidad */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff; color: #000;
  padding: .75rem 1rem;
  z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ===== HEADER CENTRADO (logo arriba, nav debajo) ===== */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2rem, 4vh, 3rem) var(--gutter) 1.5rem;
  text-align: center;
  pointer-events: none; /* deja pasar clics salvo en children */
}
.site-header > * { pointer-events: auto; }

.logo {
  display: inline-block;
  margin-bottom: clamp(1rem, 2vh, 1.5rem);
}
.logo img {
  height: clamp(48px, 6vh, 70px);
  width: auto;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.35));
  transition: opacity .4s var(--ease);
}
.logo:hover img { opacity: .85; }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.5rem, 1.5vw, 1rem);
  flex-wrap: wrap;
}

/* ===== LIQUID GLASS NAV ===== */
.nav {
  display: flex;
  gap: .5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: .35rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 8px 32px rgba(0,0,0,0.28);
}
.nav a {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: .55rem 1.25rem;
  border-radius: 999px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}
.nav a.is-active {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

/* Selector de idioma — mismo lenguaje glass */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: .25rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: .35rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 8px 32px rgba(0,0,0,0.28);
}
.lang-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: .55rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
  opacity: .55;
  transition: opacity .3s var(--ease), background .3s var(--ease);
  min-width: 42px;
}
.lang-toggle button:hover { opacity: .85; }
.lang-toggle button.is-active {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
  opacity: 1;
}

/* En páginas interiores: el header no es absoluto */
body.is-interior .site-header {
  position: relative;
  background: var(--bg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.1) 35%, rgba(10,10,10,0.7) 100%);
  pointer-events: none;
}
.hero-scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-dim);
  animation: bounce 2.8s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ===== TIPOGRAFÍA ===== */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.display-sm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  font-weight: 300;
  margin-top: 1.5rem;
  max-width: 52ch;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 1rem;
}
.link-arrow {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 1rem;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
  transition: transform .4s var(--ease);
}
.link-arrow:hover { transform: translateX(6px); }

/* ===== SECCIONES ===== */
.page {
  padding-top: clamp(3rem, 6vh, 5rem);
  padding-bottom: clamp(5rem, 10vh, 9rem);
  max-width: var(--max);
  margin: 0 auto;
}
.page-header { padding: 0 var(--gutter) clamp(3rem, 6vh, 5rem); }
.page-body { padding: 0 var(--gutter); }

.manifesto-text {
  max-width: 60ch;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.65;
  color: var(--fg);
}
.manifesto-text p { margin-bottom: 1.5rem; }
.manifesto-text strong { color: #fff; font-weight: 500; }
.manifesto-cta-line { margin-top: 2.5rem !important; }

.legal-text {
  max-width: 75ch;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--fg-dim);
}
.legal-text h2 {
  font-family: var(--font-display);
  color: var(--fg);
  margin: 2.5rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.legal-text p { margin-bottom: 1rem; }
.legal-text ul { margin: 0 0 1rem 1.5rem; }
.legal-text li { margin-bottom: .35rem; }
.legal-text a { color: var(--fg); border-bottom: 1px solid var(--border); }
.legal-text a:hover { border-color: var(--fg); }
.legal-disclaimer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-style: italic;
  font-size: .85rem;
  color: var(--fg-mute);
}

/* ===== BILINGÜE: contenido ES/EN intercambiable ===== */
[data-lang-content="en"] { display: none; }
html[lang="en"] [data-lang-content="es"] { display: none; }
html[lang="en"] [data-lang-content="en"] { display: block; }

/* ===== FORMULARIO ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 500px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-form .label-text {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0;
  transition: border-color .3s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--fg);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* Checkbox legal */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .85rem;
  color: var(--fg-dim);
  line-height: 1.5;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--fg-dim);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all .2s var(--ease);
}
.checkbox-label input[type="checkbox"]:checked {
  background: #fff;
  border-color: #fff;
}
.checkbox-label input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-size: 13px;
  font-weight: bold;
}
.checkbox-label a { color: var(--fg); text-decoration: underline; }

/* ===== BOTONES SÓLIDOS (sin opacidad) ===== */
.btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.btn-primary {
  background: #ffffff;
  color: #0a0a0a;
}
.btn-primary:hover {
  background: #e5e5e5;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.btn-ghost:hover {
  background: #fff;
  color: #0a0a0a;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vh, 5rem) var(--gutter) 2rem;
  margin-top: clamp(4rem, 8vh, 7rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); text-align: left; }
}
.footer-grid a:hover { color: var(--fg-dim); }
.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
  font-size: .8rem;
  color: var(--fg-mute);
}
.footer-legal a:hover { color: var(--fg); }
.copyright {
  font-size: 0.78rem;
  color: var(--fg-mute);
  margin-top: 2rem;
  text-align: center;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 520px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 200;
  font-size: 0.88rem;
  animation: slideUp .6s var(--ease);
}
.cookie-banner p { margin-bottom: 1rem; color: var(--fg-dim); }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: 0.65rem 1.35rem; font-size: 0.8rem; }

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== ANIMACIONES ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .site-header { padding-top: 1.25rem; padding-bottom: 1rem; }
  .logo img { height: 42px; }
  .nav { gap: 1rem; }
  .nav a { font-size: 0.82rem; }
  .lang-toggle { padding: .3rem .55rem; }
  .lang-toggle button { font-size: .72rem; }
}
