/* ==========================================================================
   BIG MONKEY FILMS — Productora Audiovisual (bigmonkeyfilms.cl)
   Reconstrucción HTML5/CSS3 Fiel al Tema Original (Coppola / Qode Interactive)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --bg-dark: #000000;
  --bg-dark-elevated: #0d0d0d;
  --bg-light: #ffffff;
  --bg-gray: #f4f4f4;
  --text-white: #ffffff;
  --text-muted: #b5b5b5;
  --text-dark: #020101;
  --accent: #eaa57f;
  --accent-hover: #f3bd9e;
  --border-dark: rgba(255, 255, 255, 0.14);
  --border-light: rgba(0, 0, 0, 0.1);
  --font-heading: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.theme-light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* ==========================================================================
   HEADER & NAVEGACIÓN (Estilo Coppola Minimal / Standard)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 48px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo img {
  height: 68px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.header-logo:hover img {
  transform: scale(1.04);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-white);
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

/* Dropdown Submenu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 220px;
  background: #080808;
  border: 1px solid var(--border-dark);
  padding: 14px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 22px;
  font-family: var(--font-heading);
  font-size: 12.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #d8d8d8;
}

.dropdown-menu a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  padding-left: 27px;
}

/* Botón menú móvil / Fullscreen Drawer */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-white);
  margin: 6px 0;
  transition: var(--transition);
}

/* ==========================================================================
   GRILLA DE PORTAFOLIO DE VIDEOS (Coppola Info-on-Hover / 3 Columnas)
   ========================================================================== */
.portfolio-section {
  padding: 40px 20px 70px;
  background: var(--bg-dark);
}

.portfolio-header-bar {
  max-width: 1440px;
  margin: 0 auto 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 10px;
}

.portfolio-page-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-white);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 9px 18px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--text-white);
  color: var(--bg-dark);
  border-color: var(--text-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1800px;
  margin: 0 auto;
}

.portfolio-card {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111111;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.portfolio-card:hover video {
  transform: scale(1.04);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 28px;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

/* En pantallas táctiles mostrar siempre sutilmente el título */
@media (hover: none) {
  .portfolio-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 60%);
  }
}

.portfolio-cat-tag {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.portfolio-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-white);
}

.portfolio-play-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transform: scale(0.9);
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-play-badge {
  transform: scale(1);
  background: var(--text-white);
  color: var(--bg-dark);
}

/* ==========================================================================
   MODAL LIGHTBOX DE VIDEO COMPLETO + PÁGINA SINGLE DE PORTAFOLIO
   ========================================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.open {
  opacity: 1;
  visibility: visible;
}

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

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: #fff;
}

.video-modal-title {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-modal-meta {
  font-size: 13.5px;
  color: var(--accent);
  margin-left: 12px;
}

.video-modal-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.video-modal-link {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}

.video-modal-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.video-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
}

.video-modal-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(255,255,255,0.12);
}

/* Single Portfolio View */
.single-portfolio-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.single-video-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090909;
  margin-bottom: 36px;
  border: 1px solid rgba(255,255,255,0.12);
}

.single-video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.single-info-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-dark);
}

.single-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.single-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}

.single-meta-item span {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.single-meta-item strong {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--accent);
}

.single-nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 34px;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

/* ==========================================================================
   PÁGINA QUIÉNES SOMOS (Secciones Blancas, Grises y Negras como Elementor)
   ========================================================================== */
.hero-banner-about {
  width: 100%;
  height: 560px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.section-block {
  padding: 105px 24px;
}

.section-light {
  background: #ffffff;
  color: #020101;
}

.section-gray {
  background: #f4f4f4;
  color: #020101;
}

.section-dark {
  background: #000000;
  color: #ffffff;
}

.container-grid {
  max-width: 1240px;
  margin: 0 auto;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.eyebrow-subtitle {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.8;
}

.section-heading-h3 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.service-card-h5 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.body-copy p {
  font-size: 16.5px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.body-copy h5 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 26px;
  margin-bottom: 8px;
}

.about-feature-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

/* ==========================================================================
   PÁGINA CONTACTO + FORMULARIO CON REENVÍO DOBLE
   ========================================================================== */
.contact-hero {
  position: relative;
  padding: 130px 24px 100px;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #ffffff;
}

.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.contact-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.contact-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.contact-details-list p {
  font-size: 18px;
  margin-bottom: 8px;
}

.contact-details-list a:hover {
  color: var(--accent);
}

.contact-team-strip {
  background: #ffffff;
  color: #000000;
  text-align: center;
  padding: 36px 24px;
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 0.06em;
}

.contact-team-strip p {
  margin: 6px 0;
  font-weight: 700;
}

.contact-form-section {
  background: #0a0a0a;
  padding: 80px 24px 100px;
  border-top: 1px solid var(--border-dark);
}

.contact-form-card {
  max-width: 680px;
  margin: 0 auto;
  background: #121212;
  border: 1px solid var(--border-dark);
  padding: 44px 40px;
}

.contact-form-card h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contact-form-card p.sub {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cccccc;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: #070707;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  padding: 13px 34px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: #000000;
}

.form-status-msg {
  margin-top: 16px;
  font-size: 14px;
  padding: 12px 16px;
  display: none;
}

.form-status-msg.ok {
  display: block;
  background: rgba(45, 106, 79, 0.25);
  border: 1px solid #52b788;
  color: #b7e4c7;
}

.form-status-msg.err {
  display: block;
  background: rgba(193, 18, 31, 0.25);
  border: 1px solid #e63946;
  color: #ffccd5;
}

/* ==========================================================================
   FOOTER ORIGINAL BIG MONKEY FILMS (Elemento común en todas las páginas)
   ========================================================================== */
.site-footer {
  background: #000000;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 80px 48px 55px;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.footer-brand img {
  width: 220px;
  height: auto;
  margin-bottom: 18px;
}

.footer-address p {
  font-size: 15px;
  line-height: 1.75;
  color: #dcdcdc;
}

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

.footer-socials {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #ffffff;
}

.footer-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-cta-center {
  text-align: center;
}

.footer-cta-center h3 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.footer-quick-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}

.footer-quick-links a {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-quick-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1440px;
  margin: 50px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  background: #25d366;
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease;
}

.wa-float:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   RESPONSIVE (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col-grid,
  .three-col-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-quick-links {
    align-items: flex-start;
  }
  .footer-cta-center {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 20px;
    height: 78px;
  }
  .header-logo img {
    height: 54px;
  }
  .menu-toggle {
    display: block;
  }
  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: #050505;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 24px 28px;
    border-bottom: 1px solid var(--border-dark);
    display: none;
  }
  .main-nav.open {
    display: flex;
  }
  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-link {
    width: 100%;
    padding: 14px 0;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    background: transparent;
    padding: 0 0 10px 14px;
    box-shadow: none;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .hero-banner-about {
    height: 290px;
  }
  .section-block {
    padding: 64px 20px;
  }
  .site-footer {
    padding: 56px 20px 40px;
  }
}
