/* ===== Vannio Producciones — one page ===== */

:root {
  --bg: #0a0a0a;
  --bg-soft: #131313;
  --fg: #f2f0ee;
  --fg-muted: #9a9a9a;
  --red: #990000;
  --red-soft: #5c0000;
  --border: rgba(255,255,255,0.08);
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Inter", sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 600;
  margin: 0 0 12px;
}
.eyebrow__since {
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.section-lead {
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 0 48px;
}

.text-accent { color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover { background: #730000; transform: translateY(-2px); }

.btn--ghost {
  border-color: rgba(255,255,255,0.3);
  color: var(--fg);
}
.btn--ghost:hover { border-color: var(--red); color: var(--red); }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo img {
  height: 34px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--fg); }
.nav__link--cta {
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 18px;
  border-radius: 2px;
}
.nav__link--cta:hover { border-color: var(--red); color: var(--red); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 25%, rgba(153,0,0,0.32), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(153,0,0,0.14), transparent 50%),
    var(--bg);
  z-index: -1;
}
.hero__content {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.hero__layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 36px;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.hero__stats .stat__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--red);
  display: block;
}
.hero__stats .stat__label {
  color: var(--fg-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  max-width: 240px;
}
.hero__logo {
  width: min(320px, 55vw);
  margin: 0 0 28px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 24px;
  max-width: 900px;
}
.hero__subtitle {
  color: var(--fg-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 0 40px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--red);
  border-radius: 2px;
  animation: scrollcue 1.6s ease infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 20px; }
}

/* ===== PORTFOLIO ===== */
.portfolio, .servicios, .nosotros, .contacto {
  padding: 120px 0;
}
.portfolio {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.portfolio::before {
  content: '';
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 700px;
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(153,0,0,0.22), transparent 60%),
    radial-gradient(ellipse 50% 45% at 85% 20%, rgba(153,0,0,0.14), transparent 60%);
  animation: portfolioGlow 14s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.portfolio .container { position: relative; z-index: 1; }
@keyframes portfolioGlow {
  0%, 100% { opacity: 0.7; transform: translateY(0) scale(1); }
  50% { opacity: 1; transform: translateY(30px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio::before { animation: none; }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter:hover { color: var(--fg); border-color: rgba(255,255,255,0.4); }
.filter.active { background: var(--red); border-color: var(--red); color: #fff; }

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

/* cascada de aparición por columna (asume 3 columnas en escritorio) */
.grid--portfolio .card:nth-child(3n+1) { transition-delay: 0s; }
.grid--portfolio .card:nth-child(3n+2) { transition-delay: 0.1s; }
.grid--portfolio .card:nth-child(3n+3) { transition-delay: 0.2s; }

.card {
  cursor: pointer;
  group: card;
}
.card.is-hidden { display: none; }
.card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-soft);
}
.card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--fg);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: grayscale(0.3);
}
.card:hover .card__thumb img {
  transform: scale(1.06);
  filter: grayscale(0);
}
.card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card__play::before {
  content: '';
  position: absolute;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--red);
  z-index: -1;
}
.card:hover .card__play { opacity: 1; }

/* En táctil no hay :hover, así que el play siempre se ve */
@media (hover: none) {
  .card__play { opacity: 1; background: rgba(0,0,0,0.15); }
}
.card__info { padding: 14px 2px; }
.card__info h3 { margin: 0 0 4px; font-size: 0.95rem; line-height: 1.3; }
.card__info p {
  margin: 0;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card--soon { cursor: default; }
.card__thumb--soon {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 12px, transparent 12px 24px),
    var(--bg-soft);
  border: 1px dashed rgba(255,255,255,0.15);
}
.card__soon-label {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  color: var(--red);
  font-size: 1.1rem;
  text-transform: uppercase;
}

/* ===== SERVICIOS ===== */
.servicios { background: var(--bg-soft); }
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.services--3 { grid-template-columns: repeat(3, 1fr); }
.service {
  background: var(--bg-soft);
  padding: 40px;
}
.service__num {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 1.4rem;
}
.service h3 { margin: 12px 0 8px; font-size: 1.3rem; }
.service p { margin: 0; color: var(--fg-muted); }

/* ===== NOSOTROS ===== */
.nosotros__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.nosotros__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--red);
}
.stat__label {
  color: var(--fg-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: 150px;
}

/* ===== CONTACTO ===== */
.contacto { border-top: 1px solid var(--border); text-align: center; }
.contacto .section-lead { margin-left: auto; margin-right: auto; }
.contact-links { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.contact-link {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.contact-link:hover { color: var(--red); }
.social-links { display: flex; gap: 24px; }
.social-links a { color: var(--fg-muted); font-size: 0.9rem; transition: color 0.2s ease; }
.social-links a:hover { color: var(--fg); }
.contact-location {
  margin: 4px 0 0;
  color: var(--fg-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== FOOTER ===== */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--fg-muted);
  font-size: 0.8rem;
  text-align: center;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.lightbox.active { display: flex; }
.lightbox__frame {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
}
.lightbox__frame iframe { width: 100%; height: 100%; border-radius: 4px; }
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__burger { display: flex; }
  .nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.open span:nth-child(2) { opacity: 0; }
  .nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nosotros__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__layout { grid-template-columns: 1fr; gap: 32px; }
  .hero__stats {
    flex-direction: row;
    flex-wrap: wrap;
    padding-left: 0;
    padding-top: 24px;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.15);
  }
  .hero__stats .stat { flex: 1 1 140px; }
  .services--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--portfolio { grid-template-columns: repeat(2, 1fr); }
  .portfolio, .servicios, .nosotros, .contacto { padding: 80px 0; }
}

/* Tablet vertical / móvil grande: portfolio y servicios siguen a 2 columnas,
   solo pasan a 1 columna en móviles más estrechos (ver breakpoint 640px) */
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
}

/* Móvil pequeño */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero__content { padding: 100px 18px 60px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .portfolio, .servicios, .nosotros, .contacto { padding: 64px 0; }
  .section-lead { margin-bottom: 32px; }
  .service { padding: 28px 24px; }
  .nosotros__stats { gap: 24px; }
  .stat__num { font-size: 2.1rem; }
  .hero__stats { gap: 18px; }
  .hero__stats .stat__num { font-size: 1.8rem; }
  .social-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .lightbox__close { top: 16px; right: 16px; }
}
