/* ==========================================================================
   FIP CINEMATIC FILMS™ · SISTEMA DE DISEÑO ESQUEUMÓRFICO CINEMATOGRÁFICO Y CONTRASTE SUPREMO
   Atmósfera Oscura 4K · Titanio, Tungsteno & Biseles Físicos
   ========================================================================== */
:root {
  --fip-h-bg: #030508;
  --fip-h-panel: rgba(8, 14, 22, 0.94);
  --fip-h-line: rgba(56, 189, 248, 0.28);
  --fip-h-teal: #38bdf8;
  --fip-h-orange: #ea580c;
  --fip-h-orange-glow: rgba(234, 88, 12, 0.5);
  --fip-h-teal-glow: rgba(56, 189, 248, 0.4);
}

html {
  overflow-x: hidden !important;
  background: var(--fip-h-bg) !important;
  scroll-behavior: smooth;
}

body {
  margin: 0 !important;
  overflow-x: hidden !important;
  background: var(--fip-h-bg) !important;
  color: #f1f5f9 !important;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   HEADER / BANNER SUPERIOR GLOBAL OFICIAL DE FIP CINEMATIC FILMS (ESQUEUMORFISMO FÍSICO)
   ========================================================================== */
.site-header,
.fip-unified-banner,
.fip-shell-header,
.cine-nav-header,
.header-nav {
  position: fixed !important;
  top: 12px !important;
  left: 16px !important;
  right: 16px !important;
  width: calc(100% - 32px) !important;
  max-width: 1400px !important;
  min-height: 64px !important;
  height: auto !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  z-index: 999999 !important;
  border: 1.5px solid rgba(56, 189, 248, 0.32) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(14, 22, 34, 0.97) 0%, rgba(5, 9, 15, 0.96) 100%) !important;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.92),
    0 0 35px rgba(56, 189, 248, 0.12),
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.35),
    inset 0 -2px 1px rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(24px) saturate(155%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(155%) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 18px !important;
  gap: 12px !important;
}


.site-header > .wrap,
.site-header > .header-inner,
.site-header > .wrap.header-inner,
.cine-nav-header > .nav-flex,
.fip-global-header-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── CONTENEDOR DE BOTONES DE ACCIÓN DEL HEADER (fip-inline-003) ── */
/* Este div contiene el botón iPod + el botón Cotizar. DEBE ser flex en fila */
.site-header .fip-inline-003,
.cine-nav-header .fip-inline-003,
.header-inner > div:last-child,
[style*="display:flex"] > .fip-inline-003 {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}


/* Logos con drop-shadow cinematográfico */
.site-header .brand-logo img,
.site-header .brand-link img,
.fip-unified-brand img,
.fip-shell-brand img,
.nav-logo img,
.fip-inline-001,
.fip-inline-128 {
  height: 36px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 15px rgba(56, 189, 248, 0.25)) !important;
  transition: transform 0.25s ease !important;
}
.site-header .brand-logo:hover img,
.nav-logo:hover img {
  transform: scale(1.03) !important;
}

/* Navegación y Enlaces Esqueumórficos */
.site-header nav,
.site-nav,
.main-nav,
.fip-unified-nav,
.fip-shell-nav,
.fip-inline-104,
.fip-inline-129 {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
  flex: 1 !important;
  justify-content: center !important;
  min-width: 0 !important;
}

.site-header nav a,
.site-nav a,
.main-nav a,
.fip-unified-nav a,
.fip-shell-nav a,
.fip-inline-105,
.fip-inline-106,
.fip-inline-130 {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font: 800 10.5px/1 'Montserrat', Arial, sans-serif !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  border: 1px solid transparent !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.site-header nav a:hover,
.site-nav a:hover,
.main-nav a:hover,
.fip-unified-nav a:hover,
.fip-shell-nav a:hover,
.fip-inline-105:hover,
.fip-inline-106:hover,
.fip-inline-130:hover {
  color: #ffffff !important;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.22) 0%, rgba(13, 98, 128, 0.35) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65), inset 0 1px rgba(255, 255, 255, 0.3), 0 0 15px rgba(56, 189, 248, 0.35) !important;
  transform: translateY(-1.5px) !important;
}

.site-header nav a.active,
.site-nav a[aria-current="page"],
.main-nav a.active {
  color: #ea580c !important;
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.22) 0%, rgba(154, 52, 18, 0.35) 100%) !important;
  border: 1px solid rgba(234, 88, 12, 0.6) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65), inset 0 1px rgba(255, 255, 255, 0.3), 0 0 18px rgba(234, 88, 12, 0.4) !important;
}

/* Botón Portal Staff - Azul Titanio Esqueumórfico */
.fip-unified-portal,
.fip-nav-portal,
.portal-btn,
.fip-inline-108 {
  background: linear-gradient(180deg, #1e3a8a 0%, #0f172a 100%) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.5) !important;
  color: #93c5fd !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.75), inset 0 1.5px 0.5px rgba(255, 255, 255, 0.25) !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
}
.fip-unified-portal:hover,
.fip-nav-portal:hover {
  background: linear-gradient(180deg, #2563eb 0%, #1e3a8a 100%) !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.85), 0 0 20px rgba(56, 189, 248, 0.6) !important;
  transform: translateY(-2px) !important;
}

/* Botón Cotizar Proyecto - Fuego Esqueumórfico 3D */
.fip-unified-quote,
.fip-nav-quote,
.btn-filled,
.btn.btn-filled,
.fip-inline-107 {
  background: linear-gradient(175deg, #fb923c 0%, #ea580c 45%, #9a3412 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 
    0 14px 34px rgba(0, 0, 0, 0.88),
    inset 0 2px 3px rgba(255, 255, 255, 0.65),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(249, 115, 22, 0.65) !important;
  padding: 8px 16px !important;
  font: 900 11px/1 'Montserrat', Arial, sans-serif !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border-radius: 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.fip-unified-quote:hover,
.fip-nav-quote:hover,
.btn-filled:hover,
.btn.btn-filled:hover,
.fip-inline-107:hover {
  background: linear-gradient(175deg, #fdba74 0%, #f97316 45%, #c2410c 100%) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 
    0 18px 44px rgba(0, 0, 0, 0.95),
    inset 0 2px 4px rgba(255, 255, 255, 0.85),
    0 0 40px rgba(249, 115, 22, 0.85) !important;
}

/* Botón Outline */
.btn-outline,
.btn.btn-outline {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.5) 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.85), inset 0 1.5px 1px rgba(255, 255, 255, 0.35) !important;
  padding: 8px 16px !important;
  font: 900 11px/1 'Montserrat', Arial, sans-serif !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border-radius: 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.btn-outline:hover,
.btn.btn-outline:hover {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.25) 0%, rgba(13, 98, 128, 0.5) 100%) !important;
  border-color: #38bdf8 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.92), inset 0 2px 4px rgba(255, 255, 255, 0.7), 0 0 32px rgba(56, 189, 248, 0.75) !important;
}

/* Espacio superior para compensar el header fijo */
body.fip-unified-shell,
body:not(.fip-unified-shell) {
  padding-top: 96px !important;
}

/* ==========================================================================
   ESQUEUMORFISMO PROFUNDO MULTICAPA EN TARJETAS, PANELES Y HERO (6+ CAPAS)
   ========================================================================== */
.hero-container,
.hero-section,
.theater-display-box,
.solution-hero,
.editorial-page main > section,
.fip-card,
.fip-work-grid article,
.film-container-3d,
.hero-card,
.editorial-sections article,
.fip-cinematic-finale {
  position: relative !important;
  border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 24px !important;
  background: linear-gradient(165deg, rgba(20, 28, 40, 0.88) 0%, rgba(6, 10, 16, 0.98) 100%) !important;
  box-shadow: 
    0 35px 85px rgba(0, 0, 0, 0.96),
    0 0 35px rgba(56, 189, 248, 0.08),
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.28),
    inset 0 -2px 1px rgba(0, 0, 0, 0.9) !important;
}

.spec-bar,
.fip-specs-bar,
.fip-inline-148 {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  gap: 16px !important;
  padding: 18px 26px !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(15, 25, 38, 0.92) 0%, rgba(4, 7, 12, 0.98) 100%) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.3) !important;
  box-shadow: 
    0 20px 48px rgba(0, 0, 0, 0.9),
    0 0 25px rgba(56, 189, 248, 0.12),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.2),
    inset 0 -2px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Gráfico Lens / Showcase Derecho */
.lens-graphic {
  position: relative !important;
  width: 100% !important;
  max-width: 440px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.14) 0%, rgba(234, 88, 12, 0.1) 25%, rgba(5, 7, 10, 0.98) 70%) !important;
  border: 2.5px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 
    inset 0 0 70px rgba(0, 0, 0, 0.98),
    inset 0 0 25px rgba(234, 88, 12, 0.3),
    0 30px 80px rgba(0, 0, 0, 0.95),
    0 0 40px rgba(234, 88, 12, 0.25) !important;
  display: grid !important;
  place-items: center !important;
}

.lens-graphic::after {
  content: "";
  position: absolute;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  border: 1.5px dashed rgba(234, 88, 12, 0.45);
  animation: rotateLens 60s linear infinite;
}

@keyframes rotateLens {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Flares y destellos anamórficos reactivados con buen rendimiento */
.fip-flare-teal {
  position: absolute;
  width: clamp(260px, 35vw, 550px);
  height: clamp(260px, 35vw, 550px);
  top: 10%;
  left: 15%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(13, 98, 128, 0.08) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(32px);
  z-index: 1;
}

.fip-flare-orange {
  position: absolute;
  width: clamp(280px, 40vw, 600px);
  height: clamp(280px, 40vw, 600px);
  bottom: 10%;
  right: 10%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.22) 0%, rgba(154, 52, 18, 0.08) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(36px);
  z-index: 1;
}

/* Contraste en títulos y letras en naranja vivo */
.highlight-text,
.main-title .highlight-text,
em,
.orange-dash {
  color: #ea580c !important;
  text-shadow: 0 0 14px rgba(234, 88, 12, 0.75), 0 0 28px rgba(234, 88, 12, 0.4) !important;
}

/* ==========================================================================
   IPOD CLASSIC 3D METÁLICO & BLANCO FLOTANTE (ESTABILIZADO)
   ========================================================================== */
#fip-ipod-dock,
.fip-ipod-dock {
  position: fixed !important;
  right: 24px !important;
  bottom: 22px !important;
  z-index: 2147483000 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 10px !important;
  pointer-events: auto !important;
}

#fip-ipod-dock .fip-ipod-chassis,
#fip-ipod-player .fip-ipod-chassis {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#fip-ipod-dock .fip-ipod-chassis.is-open,
#fip-ipod-player .fip-ipod-chassis.is-open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  animation: ipodSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes ipodSlideUp {
  from { transform: translateY(20px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 900px) {
  .site-header,
  .fip-unified-banner,
  .cine-nav-header,
  .header-nav {
    top: 8px !important;
    left: 8px !important;
    right: 8px !important;
    padding: 8px 12px !important;
  }
  .site-header nav,
  .fip-unified-nav,
  .main-nav {
    display: none !important;
  }
  .site-header nav.is-open,
  .fip-unified-banner.is-menu-open .fip-unified-nav,
  .main-nav.is-open {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    padding: 12px 0 6px !important;
    gap: 8px !important;
  }
  body, body.fip-unified-shell {
    padding-top: 84px !important;
  }
}
