/* ==========================================================
 *  The Cube Urban — estilos comunes de index.html, index_en.html, index_fr.html
 *  Se carga ANTES del <style> de cada página, así que
 *  cualquier regla que siga dentro de la página sigue mandando.
 *  ========================================================== */


    :root {
      --black: #0a0a0a;
      --dark: #111111;
      --card: #161616;
      --border: rgba(255,255,255,0.08);
      --teal: #3f6e76;
      --teal-light: #5a9aa4;
      --white: #f5f3ee;
      --muted: rgba(245,243,238,0.62);
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { background: var(--black); color: var(--white); font-family: 'DM Sans', sans-serif; font-weight: 300; line-height: 1.65; overflow-x: hidden; }
    body::before { content: ''; position: fixed; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E"); pointer-events: none; z-index: 9999; opacity: 0.35; }
    nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 4rem; background: transparent; transition: background 0.4s; }
    nav.scrolled { background: rgba(10,10,10,0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
    .nav-logo img { height: 56px; width: auto; mix-blend-mode: screen; filter: brightness(1.15); }
    .nav-links { display: flex; gap: 2.5rem; list-style: none; }
    .nav-links a { color: var(--white); text-decoration: none; font-size: 0.82rem; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.7; transition: opacity 0.2s, color 0.2s; }
    .nav-links a:hover { opacity: 1; color: var(--teal-light); }
    .nav-cta { background: var(--teal) !important; color: var(--white) !important; opacity: 1 !important; padding: 0.5rem 1.4rem; border-radius: 2px; font-weight: 500 !important; }
    .nav-cta:hover { background: var(--teal-light) !important; }
    .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; z-index: 10001; position: relative; }
    .hamburger span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: transform 0.3s, opacity 0.3s; }
    .hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
    #mobile-menu { display: none; position: fixed; inset: 0; background: #0a0a0a; z-index: 10000; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem; }
    #mobile-menu.open { display: flex; }
    #mobile-menu a { color: var(--white); text-decoration: none; font-size: 1.2rem; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
    #mobile-menu a:hover { opacity: 1; color: var(--teal-light); }
    #mobile-menu .nav-cta { background: var(--teal); color: var(--white) !important; opacity: 1 !important; padding: 0.8rem 2rem; border-radius: 2px; font-weight: 500; }
    #mobile-menu-close { position: absolute; top: 1.2rem; right: 1.5rem; background: none; border: none; color: var(--white); font-size: 1.8rem; cursor: pointer; opacity: 0.7; line-height: 1; padding: 0.4rem; transition: opacity 0.2s; }
    #mobile-menu-close:hover { opacity: 1; }
    .nav-lang { font-size: 1.2rem; text-decoration: none; opacity: 1; line-height: 1; z-index: 110; transition: transform 0.2s; }
    .nav-lang:hover { transform: scale(1.15); }
    .nav-langs { display: flex; gap: 0.6rem; align-items: center; z-index: 110; }
    #hero { height: 100vh; min-height: 700px; position: relative; display: flex; align-items: flex-end; justify-content: flex-start; overflow: hidden; }
    .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.5; filter: saturate(0.7) brightness(0.85); }
    .hero-bg { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.1) 50%, rgba(10,10,10,0.4) 100%); }
    .hero-grid { position: absolute; inset: 0; z-index: 2; background-image: linear-gradient(rgba(63,110,118,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(63,110,118,0.04) 1px, transparent 1px); background-size: 60px 60px; }
    .hero-content { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; text-align: left; max-width: 780px; padding: 0 4rem 3.5rem; }
    .hero-headline { font-family: 'Bebas Neue', sans-serif; font-weight: 400; color: var(--white); margin: 0 0 1.8rem; line-height: 1; letter-spacing: 0.02em; animation: fadeUp 1s ease both; max-width: 720px; }
    .hero-headline .hh-main { display: block; font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 0.95; }
    .hero-headline .hh-sub { display: block; font-size: clamp(1.3rem, 2.8vw, 2.2rem); color: rgba(245,243,238,0.82); line-height: 1.1; max-width: 22ch; margin-top: 0.7rem; }
    .hero-headline .hh-accent { color: var(--teal-light); }
    .hero-features { list-style: none; padding: 2rem 0 0; margin: 2.5rem 0 0; display: flex; gap: 2.2rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.08); animation: fadeUp 0.8s 0.45s ease both; }
    .hero-features li { display: flex; align-items: center; gap: 0.75rem; }
    .hero-features .hf-icon { width: 28px; height: 28px; color: var(--teal-light); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
    .hero-features .hf-icon svg { width: 100%; height: 100%; }
    .hero-features .hf-text { font-family: 'DM Sans', sans-serif; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.3; color: rgba(245,243,238,0.82); font-weight: 400; }
    .hero-badge { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.55rem; background: rgba(63,110,118,0.15); border: 1px solid rgba(63,110,118,0.4); color: #9fd0d8; font-size: 0.84rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.6rem 1.2rem; border-radius: 2px; margin-bottom: 1.6rem; animation: fadeUp 0.8s 0.15s ease both; transition: background 0.3s, border-color 0.3s; max-width: 100%; }
    .hero-badge::before { content: ''; width: 7px; height: 7px; background: var(--teal-light); border-radius: 50%; flex-shrink: 0; transition: background 0.3s, box-shadow 0.3s; }
    .hero-badge.is-open { background: rgba(74,222,128,0.12); border-color: rgba(74,222,128,0.45); color: #d4fbe0; }
    .hero-badge.is-open::before { background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,0.7); animation: hero-dot-pulse 2s cubic-bezier(0.66,0,0,1) infinite; }
    .hero-badge.is-closed { background: rgba(148,163,184,0.1); border-color: rgba(148,163,184,0.4); color: rgba(245,243,238,0.88); }
    .hero-badge.is-closed::before { background: #94a3b8; box-shadow: none; animation: none; }
    .hero-badge .hb-sep { opacity: 0.55; }
    .hero-badge .hb-closed-label { color: #f5f3ee; font-weight: 500; letter-spacing: 0.22em; }
    .hero-badge .hb-cafe { color: #f5c842; font-weight: 500; letter-spacing: 0.18em; display: inline-flex; align-items: center; gap: 0.3rem; }
    @keyframes hero-dot-pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.55); } 70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
    .hero-sub { font-family: 'DM Serif Display', serif; font-style: italic; font-size: clamp(1rem, 2vw, 1.35rem); color: var(--muted); max-width: 500px; margin-bottom: 2.5rem; animation: fadeUp 0.8s 0.25s ease both; line-height: 1.7; }
    @media (max-width: 780px) {
      .hero-features { gap: 1rem; padding-top: 1.4rem; margin-top: 2rem; justify-content: flex-start; width: 100%; }
      .hero-features li { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: flex-start; text-align: left; gap: 0.55rem; }
      .hero-features .hf-text { font-size: 0.82rem; letter-spacing: 0.1em; line-height: 1.35; }
      .hero-features .hf-icon { width: 22px; height: 22px; }
      .hero-actions { flex-wrap: nowrap; gap: 0.7rem; width: 100%; }
      .hero-actions .btn-primary, .hero-actions .btn-ghost { flex: 1 1 0; min-width: 0; text-align: center; padding: 0.95rem 0.8rem; font-size: 0.82rem; letter-spacing: 0.1em; white-space: nowrap; }
    }
    @media (max-width: 420px) {
      .hero-features { gap: 0.7rem; }
      .hero-features .hf-text { font-size: 0.82rem; letter-spacing: 0.08em; }
      .hero-actions .btn-primary, .hero-actions .btn-ghost { font-size: 0.82rem; padding: 0.9rem 0.5rem; letter-spacing: 0.08em; }
      .cafe-pictos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp 0.8s 0.35s ease both; }
    .btn-primary { background: var(--teal); color: var(--white); padding: 1rem 2.2rem; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; border: none; cursor: pointer; transition: background 0.2s, transform 0.2s; display: inline-block; }
    .btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); }
    .btn-ghost { background: transparent; color: var(--white); padding: 1rem 2.2rem; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; border: 1px solid rgba(255,255,255,0.25); cursor: pointer; transition: border-color 0.2s, color 0.2s, transform 0.2s; display: inline-block; }
    .btn-ghost:hover { border-color: var(--teal-light); color: var(--teal-light); transform: translateY(-2px); }
    section { padding: 8rem 4rem; }
    .section-label { font-size: 0.82rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; }
    .section-label::before { content: ''; display: block; width: 32px; height: 1px; background: var(--teal); }
    .section-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.8rem, 5vw, 5rem); line-height: 1; letter-spacing: 0.02em; margin-bottom: 1.5rem; }
    .section-title span { color: var(--teal-light); }
    .section-desc { font-family: 'DM Serif Display', serif; font-style: italic; font-size: 1.15rem; color: var(--muted); max-width: 600px; line-height: 1.7; }
    .divider { width: 100%; height: 1px; background: var(--border); }
