/*
Theme Name: Bajo Cero Films
Theme URI: https://bajocerofilms.com
Author: Bajo Cero Films
Description: Premium cinematic WordPress theme — ACF Pro powered
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: bajocero
*/

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #0A0A0A;
  color: #F8FAFC;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes reveal-tracking {
  0%   { letter-spacing: -0.05em; opacity: 0; filter: blur(10px); }
  100% { letter-spacing: -0.02em; opacity: 1; filter: blur(0); }
}

.animate-cinematic {
  animation: reveal-tracking 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }

[x-cloak] { display: none !important; }

/* ─── Alpine transition helpers ─────────────────────────────── */
[x-show] { transition: opacity 0.3s ease; }

/* ─── Responsive: Mobile overrides ──────────────────────────── */

/* Reduce hero padding on very small screens */
@media (max-width: 400px) {
  #inicio { padding-top: 7rem; }
}

/* Services cards: reduce padding on mobile */
@media (max-width: 640px) {
  .group.p-10 { padding: 1.5rem; }
}

/* Project grid: always at least 260px tall */
#proyectos .grid > div {
  min-height: 260px;
}

/* Nosotros / storytelling: scale down quote on mobile */
@media (max-width: 768px) {
  #nosotros h2 {
    font-size: clamp(1.6rem, 7vw, 4rem);
    line-height: 1.2;
  }
}

/* Contact section: reduce font on mobile */
@media (max-width: 640px) {
  #contacto h2 {
    font-size: clamp(3rem, 12vw, 5rem);
    line-height: 0.85;
  }
}

/* Service detail view: fix title overflow on mobile */
@media (max-width: 768px) {
  [x-show="currentView==='service'"] h2 {
    font-size: clamp(2.5rem, 10vw, 5rem);
    line-height: 0.9;
  }
}

/* Modals: full-screen on mobile */
@media (max-width: 640px) {
  .fixed.inset-0.z-\[100\] > div:last-child {
    border-radius: 0;
    max-height: 100vh;
  }
}

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: #0081ff44; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #0081ff; }

/* ─── Selection ─────────────────────────────────────────────── */
::selection { background: rgba(0, 129, 255, 0.3); }