/* ============================================
   DC PRODUCCIONES — System & Design Tokens
   ============================================ */

:root {
  --black: #030202;
  --panel: #141414;
  --panel-line: #262622;
  --white: #f4f3ef;
  --muted: #8a8880;
  --red: #d8202b;
  --red-dark: #ad1620;
  --max: 1240px;
  --gap: clamp(24px, 4vw, 64px);
}

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

html { 
  scroll-behavior: smooth; 
}

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

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* ---------- Tipografía ---------- */
h1, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-weight: 300;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 28px;
  border-radius: 3px;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn span { transition: transform 0.18s ease; }
.btn-primary:hover span { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 var(--gap);
  background: var(--black);
}

.logo-mark {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
}

.site-header .logo-mark {
  margin-left: 60px;
}

.logo-mark img {
  height: 60px;   
  padding-top: 5px;   
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: 30px;
}

.icon-link {
  padding-top: 1px;
  display: flex;
  align-items: center;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.icon-link:hover { opacity: 1; }

.icon-link svg {
  width: 30px;
  height: 30px;
  display: block;
}

.menu-toggle {
  position: relative;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease, top 0.25s ease;
}

.menu-toggle span:first-child { top: 4px; }
.menu-toggle span:last-child { top: 16px; }

.menu-toggle.is-active span:first-child {
  top: 9px;
  transform: rotate(45deg);
}

.menu-toggle.is-active span:last-child {
  top: 9px;
  transform: rotate(-45deg);
}

/* ---------- Fullscreen Nav ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gap);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(.65,0,.35,1), opacity 0.3s ease, visibility 0s linear 0.45s;
}

.nav-overlay.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.45s cubic-bezier(.65,0,.35,1), opacity 0.3s ease, visibility 0s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  flex-wrap: wrap;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  color: var(--white);
  transition: color 0.18s ease;
}

.nav-link:hover { color: var(--red); }

.nav-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0.9;
  margin-right: 120px;
}

.nav-mark img {
  width: clamp(240px, 30vw, 460px);
  height: auto;
}

.nav-copyright {
  position: absolute;
  bottom: 22px; 
  left: var(--gap);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Estructura General ---------- */
main { overflow: hidden; }

.section {
  padding: 96px var(--gap);
  max-width: var(--max);
  margin: 0 auto;
}

.section-dark {
  max-width: none;
  background: var(--panel);
  border-top: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
}

.section-dark > .capacity-grid {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--red);
  margin: 0 0 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin-bottom: 8px;
}

#nosotros .section-title {
  font-size: clamp(1.3rem, 1.7vw, 1.9rem);
}

/* ---------- Hero (Inicio) ---------- */
.hero {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr; 
  align-items: stretch;
  min-height: 100vh;
  padding-top: 70px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
  padding: 40px var(--gap) 60px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  color: var(--muted);
  font-style: italic;
  font-weight: 300;
}

.hero-copy .btn { width: fit-content; }

.hero-media {
  position: relative;
  padding-top: 130px;
  padding-right: 70px;  
}

.media-block {
  overflow: hidden;
  position: relative;
}

.media-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 40px 0px rgba(255, 255, 255, 0.08);
}

.media-hero { min-height: 100%; }

/* ---------- Servicios (Inicio) ---------- */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 56px;
}

.service-row {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: var(--gap);
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--panel-line);
}

.service-row:first-child { border-top: none; padding-top: 0; }

.service-copy h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin-bottom: 14px;
}

.service-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 34ch;
}

.service-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.service-media .media-block { aspect-ratio: 16 / 9; min-height: 0; }

/* ---------- Capacidad Operativa / CTA (Inicio) ---------- */
.capacity-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gap);
  padding: 96px var(--gap);
  align-items: start;
}

.capacity-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 100ch;
  margin: 22px 0 30px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.tag-list li {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 16px;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  color: var(--white);
}

.cta-card {
  background: var(--black);
  border: 1px solid var(--panel-line);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cta-card h3 { font-size: 1.5rem; }
.cta-card p { color: var(--muted); line-height: 1.5; }
.cta-card .btn { width: fit-content; }

/* ---------- Clientes (Inicio) ---------- */
.section-caption {
  text-align: center;
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 40px;
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-weight: 400;
}

.client-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px 80px;
}

.client-grid li {
  background: var(--black);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  width: 200px; 
}

.client-grid li img {
  max-width: 150px;
  max-height: 150px;
  width: auto;
  height: auto;
  filter: grayscale(100%) brightness(0.7);
  opacity: 0.6;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.client-grid li:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* ---------- Galería Libre / Estilo Cascada (Masonry) ---------- */
.gallery-section {
  padding-top: 130px;
}

/* Usamos columnas CSS para que fluyan libremente */
.gallery-grid {
  column-count: 3; /* 3 columnas en pantallas grandes */
  column-gap: 20px;
  width: 100%;
  margin-top: 36px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--panel);
  margin-bottom: 20px; /* Espacio vertical entre fotos */
  break-inside: avoid; /* Evita que una foto se corte entre columnas */
  display: inline-block;
  width: 100%;
}

.gallery-item img {
  width: 100%;
  height: auto; /* Mantiene la proporción y resolución libre original */
  display: block;
  transition: transform 0.3s ease;
  -webkit-user-drag: none;
  pointer-events: none;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-item::after {
  content: "© DC PRODUCCIONES";
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 6px;
  border-radius: 2px;
}

/* Adaptación responsive para celulares y tablets */
@media (max-width: 900px) {
  .gallery-grid {
    column-count: 2; /* 2 columnas en tablets */
  }
}

@media (max-width: 540px) {
  .gallery-grid {
    column-count: 1; /* 1 columna fluida en celulares */
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--panel-line);
  padding: 64px var(--gap) 36px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gap);
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand p { color: var(--muted); font-size: 0.9rem; }

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--red);
  margin: 0 0 14px;
  text-transform: uppercase;
}

.footer-col p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-col a:hover { color: var(--white); }

.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--panel-line);
  margin-top: 30px;
  padding-top: 22px;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-map {
  width: 100%;
  height: 180px;
  border: 0;
  margin: 14px 0;
  filter: grayscale(20%) invert(90%) contrast(100%);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-header .logo-mark { margin-left: 0; }
  .header-right { margin-right: 0; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-media { padding-top: 0; padding-right: 0; min-height: 340px; }
  .service-row { grid-template-columns: 1fr; }
  .capacity-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-mark { display: none; }
}

@media (max-width: 540px) {
  .site-header { padding: 18px 20px; }
  .section { padding: 72px 20px; }
  .capacity-grid { padding: 72px 20px; }
  .service-media { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .client-grid { gap: 24px; }
  .client-grid li { width: 140px; }
}

/* ---------- Formulario Minimalista (Estilo Líneas) ---------- */
.contact-section {
  padding-top: 130px;
  max-width: 860px;
}

.minimal-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
}

.minimal-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group.full-width {
  grid-column: 1 / -1;
}

.field-group label {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 400;
}

.field-group input,
.field-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--white);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 8px 0 12px 0;
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s ease;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.field-group input:focus,
.field-group textarea:focus {
  border-bottom-color: var(--red);
}

.channel-selection {
  margin-top: 8px;
}

.radio-options {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--white);
}

.radio-label input[type="radio"] {
  accent-color: var(--red);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.form-divider {
  height: 1px;
  background-color: var(--white);
  width: 100%;
  margin-top: 10px;
}

.btn-minimal-submit {
  width: 100%;
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  border-radius: 0;
}

.btn-minimal-submit:hover {
  background: #f0f0f0;
  opacity: 0.9;
}

@media (max-width: 640px) {
  .minimal-form .form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}