/* ============================================
   IRATI PRODUCTORA — design tokens
   ============================================ */
:root {
  --bg: #0a0a0b;
  --bg-elevated: #141416;
  --bg-elevated-2: #1b1b1e;
  --ink: #f1eee6;
  --ink-dim: #9a989c;
  --red: #e1362c;
  --gold: #d9a441;
  --gold-dim: #8a6b2e;
  --line: #2a2a2d;

  --display: "Big Shoulders Display", sans-serif;
  --body: "Archivo", sans-serif;
  --mono: "IBM Plex Mono", monospace;

  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

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

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

.mono { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ============================================
   Letterbox bars — cinematic frame, fixed
   ============================================ */
.letterbox {
  position: fixed;
  left: 0; right: 0;
  height: 10px;
  background: #000;
  z-index: 500;
  pointer-events: none;
}
.letterbox--top { top: 0; }
.letterbox--bottom { bottom: 0; }
@media (max-width: 640px) {
  .letterbox { height: 6px; }
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 10px;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) { .site-header { top: 6px; } }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.95rem;
}
.nav a {
  color: var(--ink-dim);
  transition: color 0.2s;
}
.nav a:hover { color: var(--ink); }

.nav-cta {
  color: var(--bg) !important;
  background: var(--gold);
  padding: 8px 18px;
  border-radius: 2px;
  font-weight: 600;
}
.nav-cta:hover { background: #e8b45a; }

.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(--ink);
  display: block;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.is-open { max-height: 320px; }
  .nav a {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta { border-radius: 0; text-align: center; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.75) 55%, rgba(10,10,11,0.96) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 60px;
}

.slate-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(20,20,22,0.6);
  padding: 10px 16px;
  margin-bottom: 40px;
  color: var(--ink-dim);
  flex-wrap: wrap;
}
.slate-right { margin-left: auto; }
@media (max-width: 640px) { .slate-right { display: none; } }

.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1.6s infinite step-start;
  flex: none;
}
@keyframes blink { 50% { opacity: 0.15; } }

.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 0 0 28px;
  text-transform: uppercase;
}
.hero-title .accent { color: var(--gold); }

.hero-sub {
  max-width: 46ch;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin: 0 0 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--solid { background: var(--gold); color: var(--bg); }
.btn--solid:hover { background: #e8b45a; }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-dim);
  z-index: 1;
}
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 110px 0;
  border-bottom: 1px solid var(--line);
}
.section--alt { background: var(--bg-elevated); }

.eyebrow {
  color: var(--gold);
  margin: 0 0 16px;
}

.section-title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.03;
  margin: 0 0 20px;
  max-width: 20ch;
}

.section-lede {
  color: var(--ink-dim);
  max-width: 60ch;
  font-size: 1.05rem;
  margin: 0 0 56px;
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .section-lede { margin-bottom: 40px; }
}

/* ============================================
   Servicios — cards
   ============================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--bg);
  padding: 40px 32px;
}
.card-icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  margin-bottom: 24px;
}
.card h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.card p {
  color: var(--ink-dim);
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}

/* ============================================
   Proceso — timeline
   ============================================ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.timeline-step { position: relative; padding-top: 30px; }
.timeline-step::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline-tc { color: var(--gold); display: block; margin-bottom: 14px; }
.timeline-step h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.3rem;
  margin: 0 0 10px;
}
.timeline-step p {
  color: var(--ink-dim);
  font-size: 0.92rem;
  margin: 0;
}

@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 48px; }
}
@media (max-width: 520px) {
  .timeline { grid-template-columns: 1fr; }
}

/* ============================================
   Portfolio grid
   ============================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 1300px) {
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
}

.portfolio-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-elevated);
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(0.35) contrast(1.05);
}
.portfolio-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0) contrast(1.1);
}

.portfolio-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(241,238,230,0.6);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: rgba(10,10,11,0.35);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.portfolio-item:hover .portfolio-play { opacity: 1; }

.portfolio-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(10,10,11,0.92) 0%, rgba(10,10,11,0) 100%);
}
.portfolio-caption h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.portfolio-caption .mono { color: var(--gold); }

@media (max-width: 860px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item { aspect-ratio: 16 / 11; }
  .portfolio-play { opacity: 1; }
}

.portfolio-note {
  margin: 20px 0 0;
  color: var(--ink-dim);
}

/* ============================================
   Sobre nosotros
   ============================================ */
.about-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 100%;
}
.about-body p {
  color: var(--ink-dim);
  font-size: 1rem;
  margin: 0;
}
@media (max-width: 760px) {
  .about-body { grid-template-columns: 1fr; }
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 780px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--gold);
  flex: none;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  color: var(--ink-dim);
  margin: 16px 0 0;
  max-width: 65ch;
  font-size: 0.96rem;
}

/* ============================================
   Video modal
   ============================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal[hidden] { display: none; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 7, 0.92);
}

.video-modal-panel {
  position: relative;
  width: min(920px, 100%);
  z-index: 1;
}

.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1rem;
}
.video-modal-close:hover { border-color: var(--gold); color: var(--gold); }

.video-modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-modal-fallback {
  display: block;
  text-align: center;
  color: var(--ink-dim);
  margin-top: 14px;
  transition: color 0.2s;
}
.video-modal-fallback:hover { color: var(--gold); }
/* Instagram usa su propio widget con alto variable — no forzamos aspect-ratio */
.video-modal-frame.is-instagram {
  aspect-ratio: auto;
  max-width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  margin: 0 auto;
  background: transparent;
}

@media (max-width: 640px) {
  .video-modal { padding: 16px; }
  .video-modal-close { top: -40px; }
}

/* ============================================
   Fotografía — carrusel
   ============================================ */
.wrap--bleed { padding: 0; max-width: none; }
.wrap--bleed > .wrap { max-width: var(--wrap); padding: 0 24px; }

.carousel {
  position: relative;
  max-width: 1398px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.carousel-viewport {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.carousel-track {
  display: flex;
}

.carousel-slide {
  flex: none;
  width: 100%;
  margin: 0;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}
.carousel-slide figcaption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(0deg, rgba(10,10,11,0.85) 0%, rgba(10,10,11,0) 100%);
  color: var(--ink);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10,10,11,0.75);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.carousel-arrow:hover { border-color: var(--gold); color: var(--gold); }
.carousel-arrow--prev { left: 36px; }
.carousel-arrow--next { right: 36px; }

@media (max-width: 640px) {
  .carousel { padding: 0 8px; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 1.2rem; }
  .carousel-arrow--prev { left: 14px; }
  .carousel-arrow--next { right: 14px; }
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--ink-dim);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.carousel-dots button.is-active {
  background: var(--gold);
  border-color: var(--gold);
}

/* ============================================
   Contacto
   ============================================ */
.contact { text-align: center; border-bottom: none; }
.slate-bar--contact { justify-content: center; max-width: 220px; margin: 0 auto 40px; }
.contact-title {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.03;
  margin: 0 auto 20px;
  max-width: 18ch;
}
.contact .section-lede { margin: 0 auto 44px; }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }

.social-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}
.social-row a { border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.social-row a:hover { color: var(--gold); border-color: var(--gold); }

/* ============================================
   Footer
   ============================================ */
.site-footer { padding: 28px 0 40px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  color: var(--ink-dim);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================
   WhatsApp float
   ============================================ */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 400;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.06); }
