/* ============================================================
   Cinema Service — estilos
   Tema cinematográfico oscuro · acento ámbar (luz de proyector)
   ============================================================ */

:root {
  --bg:        #0e0a24;
  --bg-2:      #140d31;
  --bg-card:   #1a1342;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.16);
  --text:      #ededf6;
  --muted:     #aba5cc;
  --muted-2:   #837cab;
  --accent:    #ff3d8b;
  --accent-2:  #b96bff;
  --accent-ink:#ffffff;
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1140px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --shadow:    0 18px 50px -20px rgba(0,0,0,.7);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* ---------- Tipografía base ---------- */
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .95rem;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s, color .25s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px rgba(255,61,139,.55);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s var(--ease), border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(14,10,36,.82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { height: 54px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-menu > a { font-size: .95rem; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-menu > a:hover { color: var(--text); }

.lang-switch { display: inline-flex; align-items: center; gap: 4px; color: var(--muted-2); font-size: .85rem; }
.lang-switch button {
  background: none; border: none; cursor: pointer; color: var(--muted-2);
  font: inherit; font-weight: 700; padding: 4px 4px; transition: color .2s;
}
.lang-switch button.is-active { color: var(--accent); }
.lang-switch button:hover { color: var(--text); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(14,10,36,.55) 0%, rgba(14,10,36,.82) 55%, var(--bg) 100%),
    radial-gradient(120% 80% at 78% 18%, rgba(255,61,139,.18), transparent 55%),
    url("../assets/img/hero.jpg?v=2") center/cover no-repeat;
  filter: saturate(1.05);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 120%, rgba(255,61,139,.10), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { margin-bottom: 20px; }
.hero-sub { color: var(--muted); font-size: 1.12rem; max-width: 600px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 54px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 38px; border-top: 1px solid var(--line); padding-top: 28px; }
.hero-stats dt { font-size: 1.7rem; font-weight: 800; color: var(--accent-2); letter-spacing: -.02em; }
.hero-stats dd { color: var(--muted-2); font-size: .9rem; margin-top: 2px; }

/* ---------- Secciones ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-top: 14px; }
.section-foot { margin-top: 44px; }

.grid { display: grid; gap: 20px; }

/* ---------- Servicios ---------- */
.services-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.card.service:hover { transform: translateY(-4px); border-color: var(--line-2); background: #221a52; }
.service .ico {
  display: inline-flex; width: 46px; height: 46px; border-radius: 12px;
  align-items: center; justify-content: center; margin-bottom: 18px;
  background: rgba(255,61,139,.12); color: var(--accent-2);
  border: 1px solid rgba(255,61,139,.22);
}
.service .ico svg { width: 24px; height: 24px; }
.service h3 { margin-bottom: 9px; }
.service p { color: var(--muted); font-size: .95rem; }

/* ---------- Proyectos ---------- */
.projects-grid { grid-template-columns: repeat(2, 1fr); }
.project {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s;
}
.project:hover { transform: translateY(-4px); border-color: var(--line-2); }
.project-media { aspect-ratio: 16 / 10; overflow: hidden; background: #0a0720; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project:hover .project-media img { transform: scale(1.05); }
.project-media.doc { background: #eef0f4; }
.project-media.doc img { object-fit: contain; }
.project-media.audit { background: #1a1342; }
.project-media.audit img { object-fit: cover; object-position: center 15%; }

/* Carrusel de láminas */
.carousel { position: relative; outline: none; }
.carousel-viewport { width: 100%; height: 100%; overflow: hidden; }
.carousel-track { display: flex; height: 100%; transition: transform .5s var(--ease); }
.carousel-slide { position: relative; min-width: 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.project:hover .project-media.carousel img { transform: none; }
.carousel-slide figcaption {
  position: absolute; top: 10px; left: 10px;
  font-size: .72rem; font-weight: 600; color: #fff;
  background: rgba(8,6,22,.62); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px);
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(8,6,22,.55); color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background .2s, border-color .2s;
}
.carousel-btn:hover { background: var(--accent); border-color: var(--accent); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2;
  display: flex; gap: 6px; justify-content: center; }
.carousel-dots button {
  width: 7px; height: 7px; padding: 0; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.55); transition: background .2s, transform .2s;
}
.carousel-dots button.is-active { background: var(--accent); transform: scale(1.3); }
.project-wide { grid-column: 1 / -1; }
@media (min-width: 761px) {
  .project-wide { flex-direction: row; align-items: center; }
  .project-wide .project-media { width: 46%; flex: none; aspect-ratio: auto; height: 320px; }
  .project-wide .project-body { flex: 1; }
}
.project-media.no-photo {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,61,139,.5);
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(255,61,139,.14), transparent 60%), #150f33;
}
.project-media.no-photo svg { width: 64px; height: 64px; }
.project-body { padding: 24px; }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-2);
  background: rgba(255,61,139,.12); border: 1px solid rgba(255,61,139,.22);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.project-loc { color: var(--accent); font-size: .82rem; font-weight: 600; margin: 4px 0 10px; }
.project-body > p:not(.project-loc) { color: var(--muted); font-size: .95rem; }

/* Tabla de inventario (Auditoría) */
.audit-inventory { margin-top: 18px; }
.audit-inventory h4 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted-2); font-weight: 700; margin: 0 0 10px;
}
.audit-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.audit-table th {
  text-align: left; color: var(--muted-2); font-weight: 600;
  padding: 6px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.audit-table td {
  padding: 6px 8px; border-bottom: 1px solid var(--line);
  color: var(--text); vertical-align: top;
}
.audit-table tbody tr.cat td {
  background: rgba(255,255,255,.035); font-weight: 700; color: var(--accent-2);
  text-transform: uppercase; font-size: .68rem; letter-spacing: .06em;
}
.audit-table td:first-child { color: var(--muted); white-space: nowrap; }
.audit-table td:last-child { text-align: right; white-space: nowrap; }
.audit-table .op {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-weight: 700; font-size: .7rem;
}
.audit-table .op.ok   { background: rgba(76,201,140,.16); color: #5fd39b; }
.audit-table .op.warn { background: rgba(240,194,58,.16); color: #f0c23a; }
.audit-table .op.bad  { background: rgba(239,107,107,.16); color: #ef6b6b; }

/* ---------- Clientes ---------- */
.clients { margin-top: 56px; text-align: center; }
.clients-title { color: var(--muted); font-weight: 600; font-size: 1rem; margin-bottom: 22px; }
.clients-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.clients-list li {
  border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 18px;
  font-size: .9rem; color: var(--text); font-weight: 500;
  transition: border-color .25s, color .25s, background .25s;
}
.clients-list li:hover { border-color: var(--accent); color: var(--accent-2); background: rgba(255,61,139,.06); }

/* ---------- Marcas ---------- */
.brands {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 18px 46px;
}
.brands li {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 800; letter-spacing: .02em;
  color: var(--muted-2); opacity: .85;
  transition: color .25s, opacity .25s, transform .25s;
}
.brands li:hover { color: var(--text); opacity: 1; transform: translateY(-2px); }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  cursor: pointer; aspect-ratio: 4 / 3; border: 1px solid var(--line);
}
.gallery-item.wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 28px 16px 12px;
  font-size: .82rem; color: #fff; font-weight: 500;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.78));
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--muted); margin-bottom: 16px; max-width: 56ch; }
.about-facts { list-style: none; display: grid; gap: 14px; }
.about-facts li {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.about-facts span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); margin-bottom: 4px; }
.about-facts strong { font-weight: 600; color: var(--text); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin-top: 30px; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.c-ico {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,61,139,.12); color: var(--accent-2); border: 1px solid rgba(255,61,139,.22);
}
.c-ico svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.contact-list a, .contact-list div > span { color: var(--text); font-weight: 500; font-size: 1.02rem; }
.contact-list a:hover { color: var(--accent-2); }

.contact-form { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.field input, .field textarea {
  background: #0d0826; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: .95rem; padding: 12px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,61,139,.16);
}
.contact-form .btn { margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: 50px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 34px; }
.footer-brand img { height: 42px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted-2); font-size: .92rem; max-width: 32ch; }
.footer-meta { display: grid; gap: 6px; align-content: start; }
.footer-meta a, .footer-meta span { color: var(--muted); font-size: .92rem; }
.footer-meta a:hover { color: var(--accent-2); }
.footer-legal { border-top: 1px solid var(--line); padding-block: 20px; }
.footer-legal span { color: var(--muted-2); font-size: .82rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 28px;
  background: rgba(8,6,22,.92); backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox-cap { position: absolute; bottom: 24px; color: var(--muted); font-size: .9rem; }
.lightbox-close {
  position: absolute; top: 18px; right: 24px; background: none; border: none;
  color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; opacity: .8;
}
.lightbox-close:hover { opacity: 1; color: var(--accent-2); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; z-index: 60; }
  .brand img { height: 46px; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    background: var(--bg-2); border-left: 1px solid var(--line);
    padding: 40px 34px; transform: translateX(100%);
    transition: transform .35s var(--ease); box-shadow: var(--shadow);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu > a { font-size: 1.1rem; }
  .lang-switch { font-size: 1rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; }
  .hero { padding-top: 124px; }
  .hero-stats { gap: 26px; }
}

@media (max-width: 460px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
