/*
 * CSS CUSTOM — solo lo que Bootstrap no puede hacer:
 * parallax, fuente global, colores de marca, animaciones, aspect-ratio, tamaños de fuente fluidos
*/

body { font-family: 'Montserrat', sans-serif; }

/* --- Parallax fija (siempre detrás de todo) --- */
.parallax-bg {
  position: fixed;
  inset: 0;
  background-image: url('../img/backgrond-parallax.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

@media (max-width: 575px) {
  .parallax-bg {
    background-image: url('../img/backgrond-parallax-mobile.png');
  }
}

/* --- Todo lo visible encima del parallax --- */
nav, section, footer { position: relative; z-index: 1; }

/* --- Menu overlay --- */
#menuOverlay { background: rgba(0,0,0,.55); z-index: 200; }

/* --- Navbar scroll effect --- */
#mainNav { z-index: 100; transition: background .4s, padding .4s; }
#mainNav.scrolled {
  background: rgba(0,0,0,.82) !important;
  backdrop-filter: blur(6px);
}

/* --- Nav logo --- */
.nav-logo { height: 62px; }

/* --- Hamburger lines --- */
.hamburger span {
  display: block;
  width: 28px; height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* --- Side drawer --- */
.side-menu {
  position: fixed;
  top: 0; right: -300px;
  width: 270px; height: 100vh;
  background: rgba(5,5,5,.97);
  z-index: 300;
  transition: right .35s ease;
}
.side-menu.open { right: 0; }

/* --- Hero font size fluido --- */
#hero h1 { font-size: clamp(44px, 8vw, 96px); }

/* --- Hero subtitle --- */
.hero-subtitle { letter-spacing: 3px; font-size: clamp(13px,1.8vw,18px); }

/* --- Explore link --- */
.explore-link { font-size: 13px; letter-spacing: 2.5px; opacity: 1; transition: opacity .25s; }
.explore-link:hover { opacity: .6; }

/* --- Bounce animation for chevron --- */
.bounce {
  animation: bounce 1.6s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); opacity:1; }
  50%      { transform: translateY(9px); opacity:.6; }
}

/* --- Production slate section --- */
#production-slate { min-height: 100vh; padding: 2vh 0; }


/* --- Poster portrait (usado en modales) --- */
.poster-wrap {
  aspect-ratio: 2 / 3;
  overflow: hidden;
}
.poster-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* --- Poster placeholder background (modal) --- */
.poster-placeholder { background: rgba(15,25,50,.88); }
.placeholder-title  { font-size: 12px; }

/* --- Project card labels — altura fija para uniformidad --- */
.card-labels {
  min-height: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.card-title { font-size: 13px; }
.card-type  { font-size: 10px; }

/* --- Custom gap utility --- */
.gap-10 { gap: 2.5rem !important; }

/* --- About section solid background (hides parallax) --- */
.about-section { background: rgba(4, 6, 16, 0.97); }

/* =============================================
   FLIP CARD
   ============================================= */

.project-card {
  cursor: pointer;
  perspective: 1000px;
  width: 100%;
}

.flip-inner {
  aspect-ratio: 2 / 3;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .65s ease;
  border-radius: 4px;
}

.project-card:hover .flip-inner { transform: rotateY(180deg); }

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 4px;
  overflow: hidden;
}

.flip-front img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.flip-front-placeholder {
  width: 100%; height: 100%;
  background: rgba(15,25,50,.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.flip-back {
  background: rgba(12,20,50,.96);
  border: 1px solid rgba(0,212,216,.25);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  text-align: center;
}

.flip-back-type {
  font-size: 1rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #00d4d8;
  margin-bottom: 1rem;
}

.flip-back-text {
  font-size: 1.25rem;
  line-height: 1.75;
  color: rgba(255,255,255,.85);
  margin: 0;
}



/* --- Contact section --- */
.contact-h2   { font-size: clamp(26px,4vw,44px); }
.contact-inq  { letter-spacing: 2.5px; }
.contact-email { font-size: 14px; }
#contactForm  { max-width: 490px; }

/* --- Form fields: estilo glassmorphism (Bootstrap no lo trae) --- */
.form-glass {
  background: rgba(255,255,255,.11) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  color: #fff !important;
}
.form-glass::placeholder { color: rgba(255,255,255,.48) !important; }
.form-glass:focus {
  background: rgba(255,255,255,.17) !important;
  border-color: rgba(255,255,255,.42) !important;
  box-shadow: none !important;
}
.form-glass option { background: #111; }

/* --- Platform select placeholder color --- */
.platform-select { color: rgba(255,255,255,.48); }

/* --- Textarea resize --- */
.msg-textarea { resize: vertical; }

/* --- SEND button --- */
.btn-send {
  background: rgba(255,255,255,.88);
  color: #111;
  letter-spacing: 2.5px;
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
  transition: background .25s, color .25s;
}
.btn-send:hover { background: #fff; color: #000; }

/* --- About Us page --- */
.about-container  { max-width: 860px; }
.about-title      { font-size: clamp(22px,3vw,36px); letter-spacing: 2px; }
.about-intro      { font-size: clamp(15px,1.5vw,18px); line-height: 1.9; max-width: 720px; color: rgba(255,255,255,.95); font-weight: 400; }
.about-label      { font-size: 11px; letter-spacing: 2.5px; color: #fff; }
.about-body       { font-size: clamp(14px,1.3vw,16px); line-height: 1.9; color: rgba(255,255,255,.92); font-weight: 400; }

/* --- Footer --- */
footer { background: rgba(0,0,0,.94); }
.footer-copy { font-size: 11.5px; }
.footer-link { font-size: 12px; }

/* =============================================
   PROJECT MODALS
   ============================================= */

/* Modal content wrapper */
.project-modal {
  background: rgba(10,14,28,.97);
  border: 1.5px solid rgba(0,212,216,.35);
  border-radius: 14px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Close button */
.project-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  z-index: 10;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s;
  padding: 0;
}
.project-modal-close:hover { color: #fff; }

/* Inner layout: poster + info side by side */
.project-modal-body {
  display: flex;
  gap: 2.5rem;
  padding: 2.5rem;
  align-items: flex-start;
}

/* Left: poster column */
.modal-poster-col {
  width: 350px;
  flex-shrink: 0;
}
.modal-poster-img {
  width: 100%;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

/* Left: placeholder when no poster */
.modal-poster-placeholder-col {
  width: 350px;
  aspect-ratio: 2 / 3;
  flex-shrink: 0;
  background: rgba(15,25,50,.88);
}

/* Right: info column */
.modal-info-col {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  max-height: 70vh;
  padding-right: 0.5rem;
}
.modal-info-col::-webkit-scrollbar { width: 4px; }
.modal-info-col::-webkit-scrollbar-thumb { background: rgba(0,212,216,.3); border-radius: 4px; }

.modal-project-type {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #00d4d8;
  margin-bottom: 0.75rem;
}

.modal-tagline {
  font-size: 13px;
  font-style: italic;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.modal-synopsis-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.modal-divider {
  border-color: rgba(255,255,255,.25);
  margin-bottom: 1rem;
}

.modal-synopsis-text {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,.82);
  margin-bottom: 0;
}

/* =============================================
   RESPONSIVE — Tablet & Mobile
   Todo lo que está encima es desktop.
   Sólo se sobreescribe lo necesario.
   ============================================= */

/* ---------- Modal: imagen arriba, texto abajo (tablet + mobile) ---------- */
@media (max-width: 991px) {
  .project-modal-body {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.5rem 1.5rem;
  }
  .modal-poster-col,
  .modal-poster-placeholder-col {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
  .modal-poster-placeholder-col { aspect-ratio: 2 / 3; }
  .modal-info-col {
    max-height: 45vh;
    padding-right: 0.25rem;
  }
  .project-modal-close { top: 0.75rem; right: 0.9rem; }
}

/* ---------- Tablet (576px – 991px) ---------- */
@media (max-width: 991px) {

  /* Cards: 3 por fila */
  #production-slate .col-3 {
    width: calc(33.333% - 1.5rem) !important;
    flex: 0 0 auto !important;
  }

  /* Centra ambas filas */
  #production-slate .row { justify-content: center !important; }

  /* Gap más chico */
  .gap-10 { gap: 1.5rem !important; }

  /* Slate: quita min-height fija en pantallas chicas */
  #production-slate { min-height: auto; padding: 5rem 0; }
}

/* ---------- Mobile (< 576px) ---------- */
@media (max-width: 575px) {

  /* Logo más chico en mobile */
  .nav-logo { height: 44px; }

  /* Cards: 2 por fila */
  #production-slate .col-3 {
    width: calc(50% - 0.75rem) !important;
    flex: 0 0 auto !important;
  }

  /* Gap mínimo */
  .gap-10 { gap: 0.75rem !important; }

  /* Títulos de sección del slate */
  #production-slate .fs-1 { font-size: 1.25rem !important; }
  #production-slate .fs-2 { font-size: 1rem !important;   }

  /* Labels de cada card: override !important de Bootstrap fs-* */
  .card-title { font-size: 10px !important; }
  .card-type  { font-size: 9px  !important; }
  .placeholder-title { font-size: 10px !important; }

  /* Text-card desc más chica */
  .text-card-desc { font-size: 0.7rem; }

  /* Hero subtitle letra más chica */
  .hero-subtitle { letter-spacing: 1.5px; }

  /* Footer: apila los tres bloques y centra */
  footer .d-flex.flex-wrap {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    gap: 1.25rem !important;
  }

}
