/* ══════════════════════════════════════════════════
   AROMA STUDIO — shared.css
   CSS compartido entre todas las páginas del sitio:
   variables, nav, footer, modal, sistema de cards/badges,
   loader, botones y utilidades de reveal-on-scroll.
   Cada página (index.html, proyectos.html, etc) agrega
   su propio <style> con lo exclusivo de esa página.
   ══════════════════════════════════════════════════ */

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

:root {
    --black:   #121212;
    --dark:    #111111;
    --card:    #161616;
    --border:  #222222;
    --accent:  #63c280;
    --white:   #f0ede8;
    --muted:   #888888;
    --font:    'Montserrat', sans-serif;
    --pad:     clamp(20px, 5vw, 60px);
  }

html { scroll-behavior: smooth; overscroll-behavior-y: none; background: var(--black); color-scheme: dark; }

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font);
    overflow-x: hidden;
    overscroll-behavior-y: none;
  }

/* ── LOADER ── */
  .page-loader {
    position: fixed; inset: 0; z-index: 1000;
    background: var(--black);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 22px;
    transition: opacity .6s ease, visibility .6s ease;
  }

.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo {
    font-size: 14px; font-weight: 900; letter-spacing: .25em;
    text-transform: uppercase; color: var(--white);
  }

.loader-logo span { color: var(--accent); }

.loader-logo-img { width: clamp(160px, 22vw, 220px); height: auto; display: block; }

.loader-bar { width: 140px; height: 1px; background: var(--border); position: relative; overflow: hidden; }

.loader-bar::after {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%; background: var(--accent);
    animation: loaderSlide 1.3s ease-in-out infinite;
  }

@keyframes loaderSlide {
    0%   { left: -100%; }
    50%  { left: 0%; }
    100% { left: 100%; }
  }

/* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px var(--pad);
    transition: background .4s, padding .3s, backdrop-filter .4s;
  }

nav.scrolled {
    background: rgba(10,10,10,.95);
    padding: 16px var(--pad);
    border-bottom: 1px solid var(--border);
  }

.nav-logo {
    font-size: 17px; font-weight: 900; letter-spacing: .12em;
    text-transform: uppercase; color: var(--white);
    text-decoration: none; z-index: 210; position: relative;
  }

.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }

.nav-links a {
    font-size: 11px; font-weight: 600; letter-spacing: .18em;
    text-transform: uppercase; color: var(--muted);
    text-decoration: none; transition: color .2s;
  }

.nav-links a:hover { color: var(--white); }

.nav-right { display: flex; align-items: center; gap: 22px; }

.lang-switch {
    font-size: 11px; font-weight: 700; letter-spacing: .12em;
    color: var(--muted); cursor: pointer; user-select: none;
    background: none; border: none; font-family: var(--font);
    padding: 4px; transition: color .2s;
  }

.lang-switch:hover { color: var(--accent); }

.nav-cta {
    font-size: 11px; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: var(--black);
    background: var(--accent); padding: 10px 22px;
    border: none; cursor: pointer; transition: opacity .2s;
    text-decoration: none; white-space: nowrap;
  }

.nav-cta:hover { opacity: .85; }

.nav-burger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 32px; height: 32px; background: none; border: none; cursor: pointer;
    z-index: 210; position: relative; padding: 2px;
  }

.nav-burger span {
    display: block; width: 100%; height: 1.5px; background: var(--white);
    transition: transform .3s ease, opacity .3s ease, width .3s ease;
    transform-origin: center;
  }

.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }

.nav-burger.open span:nth-child(2) { opacity: 0; width: 0; }

.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
    display: none; position: fixed; inset: 0; z-index: 190;
    background: var(--black);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 10px; opacity: 0; pointer-events: none; transition: opacity .35s ease;
  }

.nav-mobile.open { opacity: 1; pointer-events: all; }

.nav-mobile a {
    font-size: clamp(28px, 8vw, 44px); font-weight: 900;
    letter-spacing: -.02em; text-transform: uppercase;
    color: var(--white); text-decoration: none;
    transform: translateY(20px); opacity: 0;
    transition: color .2s, transform .4s ease, opacity .4s ease;
  }

.nav-mobile.open a { transform: translateY(0); opacity: 1; }

.nav-mobile.open a:nth-child(1) { transition-delay: .05s; }

.nav-mobile.open a:nth-child(2) { transition-delay: .10s; }

.nav-mobile.open a:nth-child(3) { transition-delay: .15s; }

.nav-mobile.open a:nth-child(4) { transition-delay: .20s; }

.nav-mobile a:hover { color: var(--accent); }

.nav-mobile-lang {
    margin-top: 30px;
    font-size: 16px !important; font-weight: 700 !important;
    letter-spacing: .12em;
    color: var(--muted) !important; transform: none !important; opacity: 1 !important;
    background: none; border: 1px solid var(--border); padding: 8px 20px;
    cursor: pointer; font-family: var(--font); transition: color .2s, border-color .2s;
  }

.nav-mobile-lang:hover { color: var(--accent) !important; border-color: var(--accent); }

@media (max-width: 768px) {
    .nav-links, .nav-right { display: none; }
    .nav-burger { display: flex; }
    .nav-mobile { display: flex; }
  }

.btn-primary {
    font-size: 11px; font-weight: 700; letter-spacing: .2em;
    text-transform: uppercase; color: var(--black); background: var(--accent);
    padding: clamp(12px,2vw,16px) clamp(18px,3vw,32px);
    text-decoration: none; transition: opacity .2s; display: inline-block; white-space: nowrap;
    border: none; cursor: pointer; font-family: var(--font);
  }

.btn-primary:hover { opacity: .85; }

/* ── PROYECTOS DESTACADOS ── */
  .section { padding: clamp(60px, 10vw, 120px) var(--pad); }

.section-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: clamp(36px, 6vw, 64px); gap: 16px; flex-wrap: wrap;
  }

.section-tag {
    font-size: 10px; font-weight: 700; letter-spacing: .3em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
  }

.section-tag::before { content: ''; display: block; width: 22px; height: 1px; background: var(--accent); flex-shrink: 0; }

/* ── CTA CENTRADO EN LA PREGUNTA (no en el grupo) ──
   3 filas: arriba (tag) se pega al final de su fila, el medio
   (la pregunta) queda siempre exacto al centro real, abajo (bajada +
   botón) se pega al principio de su fila. Así la pregunta cae
   siempre a la misma altura sin importar cuánto contenido haya
   arriba o abajo. Se usa en Contacto y en el CTA de cierre. ── */
.cta-grid {
    display: grid; grid-template-rows: 1.7fr auto 1fr;
    justify-items: center; text-align: center;
    width: 100%; height: 100%; row-gap: 14px;
  }
.cta-grid-top { align-self: end; }
.cta-grid-bottom { align-self: start; display: flex; flex-direction: column; align-items: center; }

.section-title {
    font-size: clamp(28px, 5.5vw, 52px); font-weight: 900;
    line-height: 1; letter-spacing: -.02em; text-transform: uppercase;
  }

.section-link {
    font-size: 10px; font-weight: 700; letter-spacing: .2em;
    text-transform: uppercase; color: var(--muted); text-decoration: none;
    transition: color .2s; white-space: nowrap;
  }

.section-link:hover { color: var(--accent); }

.portfolio-loading {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 200px; gap: 16px;
  }

.portfolio-loading-text { font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.portfolio-loading-bar { width: 100px; height: 1px; background: var(--border); position: relative; overflow: hidden; }

.portfolio-loading-bar::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: var(--accent); animation: loaderSlide 1s ease infinite;
  }

.portfolio-grid {
    display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px;
  }

.proj {
    position: relative; overflow: hidden; background: var(--card);
    display: block; text-decoration: none;
  }

.proj::before { content: ''; display: block; padding-top: 56.25%; }

/* Card impar que queda sola y a ancho completo: recorte cinematográfico
   2.35:1 en vez del 16:9 normal, para que no pese tanto visualmente. */
.proj-wide::before { padding-top: 42.55%; }

@media (max-width: 640px) {
  /* En mobile la grilla ya es de una sola columna — el recorte
     cinematográfico de la card impar suelta solo tiene sentido
     cuando hay más de una columna (para no dejar un hueco al lado).
     Acá no hace falta, así que todas las cards vuelven al 16:9 normal. */
  .proj-wide::before { padding-top: 56.25%; }
}

.proj-thumb {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transition: transform .6s ease;
  }

.proj:hover .proj-thumb { transform: scale(1.05); }

.proj-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--accent); z-index: 3; }

.proj-info-min {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: clamp(10px,1.8vw,20px); padding-left: clamp(16px,2.5vw,24px);
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 50%, transparent 100%);
    transition: opacity .3s;
  }

.proj:hover .proj-info-min { opacity: 0; }

/* Netflix necesita más oscuridad: el thumbnail ya trae tipografía/logo propio */
  .proj-netflix .proj-info-min {
    background: linear-gradient(to top, rgba(0,0,0,.96) 0%, rgba(0,0,0,.85) 45%, rgba(0,0,0,.25) 80%, transparent 100%);
    padding-top: clamp(40px, 8vw, 80px);
  }

.proj-netflix .proj-overlay {
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.45) 55%, transparent 100%);
  }

.proj-cat {
    display: inline-block; background: var(--accent); color: #0a0a0a;
    font-size: clamp(7px,1vw,9px); font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; padding: 3px 9px; margin-bottom: clamp(4px,1vw,8px);
  }

.proj-cat-outline {
    background: transparent; color: var(--accent);
    border: 1px solid var(--accent); padding: 2px 8px;
  }

.proj-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: clamp(4px,1vw,8px); }

.proj-cats .proj-cat { margin-bottom: 0; }

.proj-title {
    font-size: clamp(13px,2vw,20px); font-weight: 900; letter-spacing: -.01em;
    line-height: 1.1; color: var(--white); text-transform: uppercase;
  }

.proj-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.5) 55%, transparent 100%);
    opacity: 0; transition: opacity .3s ease;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
    padding: clamp(12px,2vw,22px); padding-left: clamp(16px,2.5vw,26px);
  }

.proj:hover .proj-overlay { opacity: 1; }

.proj-overlay .proj-cat, .proj-overlay .proj-cats { margin-bottom: 6px; }

.proj-overlay .proj-title { font-size: clamp(14px,2vw,20px); margin-bottom: 8px; }

.proj-overlay .proj-desc {
    font-size: 11px; color: rgba(240,237,232,.5); font-weight: 300; line-height: 1.55;
    margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
  }

.proj-play {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 10px; font-weight: 700; letter-spacing: .2em;
    text-transform: uppercase; color: var(--accent);
  }

.proj-play svg { width: 9px; height: 9px; flex-shrink: 0; fill: var(--accent); }

.proj-netflix-badge {
    position: absolute; top: 8px; right: 8px; z-index: 3;
    background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
    color: var(--white); font-size: 10px; font-weight: 700;
    letter-spacing: .15em; padding: 4px 10px; text-transform: uppercase;
  }

@media (max-width: 600px) {
    .portfolio-grid > * { grid-column: span 12 !important; }
  }

/* ── NOSOTROS ── */
  /* ── PANTALLA COMPLETA ──
     Cada .screen ocupa como mínimo el alto real de la ventana (100svh),
     así "Nosotros" y "Contacto" siempre se ven completos al navegar ahí,
     sin que se asome nada de la siguiente sección. */
  .screen { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }

/* ── CLIENTES (marquesina) ── */
.clients { padding: clamp(16px,3vw,28px) 0; border-top: 1px solid var(--border); flex-shrink: 0; }

.clients-marquee-wrap {
    position: relative; overflow: hidden;
  }
.clients-marquee-wrap::before,
.clients-marquee-wrap::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: clamp(30px,6vw,80px);
    z-index: 2; pointer-events: none;
  }
.clients-marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--black), transparent); }
.clients-marquee-wrap::after { right: 0; background: linear-gradient(to left, var(--black), transparent); }

.clients-marquee-track {
    display: flex; width: max-content;
    will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden;
    -webkit-transform: translateZ(0); transform: translateZ(0);
    contain: layout style paint;
  }

.client-logo {
    height: clamp(16px,2.2vw,24px); width: auto; object-fit: contain;
    margin: 0 clamp(20px,3vw,40px); flex-shrink: 0;
    opacity: .6;
  }
@media (hover: hover) {
  .client-logo { transition: opacity .25s; }
}

.client-logo:hover { opacity: 1; }

/* ── CTA DE CIERRE (Proyectos / Campañas) — pantalla completa,
   video de fondo compartido con el footer, igual que Contacto ── */
.closing-cta-wrap {
    position: relative; overflow: hidden; min-height: clamp(480px,55vw,720px);
    display: grid; grid-template-rows: 1fr auto;
  }
.closing-cta-bg {
    position: absolute; top: 50%; left: 50%;
    min-width: 100%; min-height: 100%; width: auto; height: auto;
    transform: translate(-50%, -50%); object-fit: cover; z-index: 0; pointer-events: none;
    filter: grayscale(1) contrast(1.1);
    opacity: 0; transition: opacity .8s ease;
  }
.closing-cta-bg.ready { opacity: .4; }
.closing-cta-wrap-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, rgba(10,10,10,.15) 0%, rgba(10,10,10,.32) 100%);
  }
.closing-cta {
    position: relative; z-index: 2;
    padding: clamp(56px,8vw,90px) var(--pad);
  }
.closing-cta-title {
    color: var(--white); font-size: clamp(32px,6vw,72px); font-weight: 900;
    text-transform: uppercase; letter-spacing: -.02em; line-height: .98;
  }
.closing-cta-sub { color: var(--muted); font-size: 13px; font-weight: 300; margin-bottom: 20px; }

/* ── FOOTER ── */
  footer {
    position: relative; z-index: 2;
    padding: clamp(56px,9vw,90px) var(--pad) clamp(16px,2.5vw,24px);
    background: linear-gradient(to top, rgba(10,10,10,.92) 0%, rgba(10,10,10,.75) 30%, rgba(10,10,10,.35) 65%, transparent 100%);
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 16px;
  }

.footer-right { display: flex; align-items: center; gap: 22px; justify-self: end; }

.footer-social { display: flex; gap: 16px; align-items: center; }

.footer-social a {
    color: var(--white); opacity: .7; transition: opacity .2s, color .2s;
    display: flex; align-items: center; justify-content: center;
  }

.footer-social a:hover { opacity: 1; color: var(--accent); }

.footer-social svg { width: 17px; height: 17px; display: block; fill: currentColor; }

.footer-mail {
    font-size: 10px; font-weight: 500; letter-spacing: .03em;
    color: var(--muted); text-decoration: none; transition: color .2s;
    justify-self: start;
  }

.footer-mail:hover { color: var(--accent); }

.footer-copy {
    font-size: 11px; letter-spacing: .06em; color: #555;
    white-space: nowrap; justify-self: center;
  }

@media (max-width: 640px) {
    footer {
      grid-template-columns: 1fr; justify-items: center;
      text-align: center; gap: 18px;
      padding-top: clamp(90px,22vw,140px);
    }
    .footer-mail, .footer-copy, .footer-right { justify-self: center; }
    .footer-copy { white-space: normal; order: 3; }
    .footer-right { order: 2; }
  }

/* ── MODAL PLAYER ── */
  .modal {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(0,0,0,.96);
    display: flex; align-items: center; justify-content: center;
    padding: clamp(16px, 4vw, 40px); opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
  }

.modal.open { opacity: 1; pointer-events: all; }

.modal-inner { width: 100%; max-width: 1100px; position: relative; }

.modal-close {
    position: fixed; top: 24px; right: 24px; z-index: 10;
    font-size: 11px; font-weight: 700; letter-spacing: .2em;
    text-transform: uppercase; color: var(--white);
    background: rgba(10,10,10,.75); border: 1px solid rgba(255,255,255,.25);
    padding: 10px 16px; border-radius: 2px;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    transition: background .2s, border-color .2s, color .2s;
    font-family: var(--font);
  }

.modal-close:hover { background: var(--accent); color: var(--black); border-color: var(--accent); }

.modal-close::before { content: '✕'; font-size: 13px; }

.modal-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(10,10,10,.75); color: var(--white); border: 1px solid rgba(255,255,255,.25);
    cursor: pointer; font-size: 24px; line-height: 1; transition: background .2s, border-color .2s, color .2s;
    font-family: var(--font);
  }

.modal-nav:hover { background: var(--accent); color: var(--black); border-color: var(--accent); }

.modal-nav.hidden { display: none; }

.modal-prev { left: clamp(6px, 1.5vw, 16px); }

.modal-next { right: clamp(6px, 1.5vw, 16px); }

/* En pantallas anchas hay lugar de sobra a los costados del video
   (el fondo oscuro del modal) — ahí sacamos los botones de encima
   del video y los mandamos afuera, sobre ese fondo. En pantallas
   más chicas no hay ese margen, así que se quedan como estaban,
   superpuestos sobre el video. */
@media (min-width: 960px) {
    .modal-prev { left: -64px; }
    .modal-next { right: -64px; }
  }

@media (max-width: 640px) {
    .modal-nav { width: 40px; height: 40px; font-size: 20px; }
  }

.modal-video { position: relative; padding-top: 56.25%; background: #000; }

.modal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

.modal-top-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 10px;
}

.modal-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.modal-campaign {
  display: inline-block; flex-shrink: 0;
  background: var(--accent); color: #0a0a0a; text-decoration: none;
  padding: 9px 16px; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; font-family: var(--font);
  transition: background .2s, opacity .2s;
}
.modal-campaign:hover { opacity: .85; }

.modal-share {
  display: inline-block; flex-shrink: 0;
  background: transparent; color: var(--white); text-decoration: none;
  border: 1px solid var(--border); cursor: pointer;
  padding: 8px 15px; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; font-family: var(--font);
  transition: border-color .2s, color .2s, background .2s;
}
.modal-share:hover { border-color: var(--accent); color: var(--accent); }
.modal-share.copied { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }

.modal-info { padding: 18px 4px 0; }

.modal-title {
    font-size: clamp(16px,2vw,22px); font-weight: 900; letter-spacing: -.01em;
    text-transform: uppercase; color: var(--white); margin-bottom: 8px;
  }

.modal-desc {
    font-size: 13px; color: var(--muted); font-weight: 300;
    line-height: 1.6; max-width: 720px;
  }

/* ── ANIMATIONS ── */
  @keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }

.reveal.visible { opacity: 1; transform: translateY(0); }
