/* ==========================================
   BOMBEROS NAVALES DEL PERÚ — PREMIUM UX/UI V2026
   Corporate Design System · Elegant & Fast
   ========================================== */

/* ── CSS Variables & Design Tokens ── */
:root {
  /* Brand Palette (from logo) */
  --primary-red: #C62828;
  --primary-red-hover: #B71C1C;
  --primary-red-glow: rgba(198,40,40,0.25);
  --primary-red-subtle: rgba(198,40,40,0.08);
  
  /* Navy Palette (Dark Theme Defaults) */
  --navy-deep: #0f172a; /* Lighter navy base for a more natural dark mode */
  --navy-base: #1e293b;
  --navy-surface: #1e293b;
  --navy-card: #334155;
  --navy-card-hover: #475569;
  --navy-border: rgba(255,255,255,0.1);
  --navy-border-hover: rgba(255,255,255,0.2);
  
  /* Text Hierarchy */
  --text-white: #f8fafc;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Accents */
  --gold: #D4A843;
  --gold-subtle: rgba(212,168,67,0.12);
  --success: #22c55e;
  --success-subtle: rgba(34,197,94,0.15);
  --danger: #ef4444;
  --danger-subtle: rgba(239,68,68,0.15);
  --info: #3b82f6;
  
  /* Typography */
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing & Sizing */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows - Softer */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-glow-red: 0 0 20px rgba(198,40,40,0.1);
  
  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
}

/* ── Light Mode Variables ── */
html.light-mode,
body.light-mode {
  --navy-deep: #f8fafc; /* light background */
  --navy-base: #f1f5f9;
  --navy-surface: #ffffff;
  --navy-card: #ffffff;
  --navy-card-hover: #f1f5f9;
  --navy-border: #e2e8f0;
  --navy-border-hover: #cbd5e1;
  
  --text-white: #0f172a; /* headings */
  --text-light: #334155; /* body text */
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
}

/* ── Light Mode Overrides ── */
body.light-mode .text-white {
  color: var(--text-white) !important;
}
body.light-mode .text-silver,
body.light-mode .text-muted {
  color: var(--text-muted) !important;
}
body.light-mode .hero-section .text-white,
body.light-mode .page-header .text-white {
  color: #ffffff !important;
}
body.light-mode .hero-section .text-silver,
body.light-mode .hero-section .text-muted,
body.light-mode .page-header .text-silver,
body.light-mode .page-header .text-muted {
  color: #94a3b8 !important;
}
.header-logo-light { display: none; }
.header-logo-dark { display: block; }

body.light-mode .header-logo-light { display: block !important; }
body.light-mode .header-logo-dark { display: none !important; }

body.light-mode .header-logo {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: 48px !important;
  max-height: 48px !important;
  width: auto !important;
  max-width: 220px !important;
}

body.light-mode .btn-outline-light-custom,
body.light-mode .btn-tactical-secondary {
  color: #1e293b !important;
  border-color: rgba(0,0,0,0.3) !important;
}
body.light-mode .hero-section .btn-outline-light-custom {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.18) !important;
}
body.light-mode .btn-outline-light-custom:hover,
body.light-mode .btn-tactical-secondary:hover {
  color: #ffffff !important;
  background-color: var(--primary-red) !important;
  border-color: var(--primary-red) !important;
}

/* ── Global Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--navy-deep);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--primary-red);
  color: white;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast) var(--ease-smooth);
}

/* ── Typography System ── */
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-white);
}

.mono-font {
  font-family: var(--font-display);
  font-weight: 600;
}

.font-mono {
  font-family: var(--font-mono);
}

.text-silver { color: var(--text-muted); }
.text-primary-red { color: var(--primary-red); }
.text-gold { color: var(--gold); }

.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.08em; }

/* ── NAVBAR — Premium Glass Navigation ── */
.bn-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all var(--duration-normal) var(--ease-smooth);
  background: transparent;
}

.bn-navbar.scrolled {
  background: var(--navy-deep);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--navy-border);
  box-shadow: var(--shadow-sm);
}

body.light-mode .bn-navbar,
body.light-mode .bn-navbar.scrolled {
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #e2e8f0 !important;
}

body.light-mode .bn-navbar .nav-link {
  color: #1e293b !important;
}
body.light-mode .bn-navbar .nav-link:hover,
body.light-mode .bn-navbar .nav-link.active {
  color: var(--primary-red) !important;
}

body.light-mode .bn-navbar #themeToggleBtn {
  color: #1e293b !important;
}
body.light-mode .bn-navbar #themeToggleBtn span {
  color: #1e293b !important;
}

body.light-mode .bn-navbar .btn-outline-red {
  background: rgba(198, 40, 40, 0.06) !important;
  color: var(--primary-red) !important;
  border-color: rgba(198, 40, 40, 0.3) !important;
}
body.light-mode .bn-navbar .btn-outline-red:hover {
  background: var(--primary-red) !important;
  color: #ffffff !important;
}

.bn-navbar .navbar {
  padding: 0.9rem 0;
  transition: padding var(--duration-normal) var(--ease-smooth);
}

.bn-navbar.scrolled .navbar {
  padding: 0.6rem 0;
}

.bn-navbar .navbar-brand img,
header.bn-navbar .navbar-brand img,
.bn-navbar img.header-logo {
  height: 48px !important;
  max-height: 48px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  transition: height var(--duration-normal) var(--ease-smooth);
}

.bn-navbar.scrolled .navbar-brand img,
header.bn-navbar.scrolled img.header-logo {
  height: 40px !important;
  max-height: 40px !important;
}

.bn-navbar .nav-link {
  color: rgba(255,255,255,0.7) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.85rem !important;
  position: relative;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.bn-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: all var(--duration-normal) var(--ease-smooth);
  transform: translateX(-50%);
}

.bn-navbar .nav-link:hover,
.bn-navbar .nav-link.active {
  color: #fff !important;
}

.bn-navbar .nav-link:hover::after,
.bn-navbar .nav-link.active::after {
  width: 70%;
}

/* ── HERO SECTION — Immersive Fullscreen Video ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 14, 23, 0.75); /* Darker overlay for better contrast */
}

body.light-mode .hero-overlay {
  background: rgba(10, 14, 23, 0.65); /* Still dark enough in light mode */
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-badge .pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--primary-red);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(198,40,40,0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(198,40,40,0); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  color: #ffffff; /* always white in hero to contrast with image */
  margin: 1.2rem 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

body.light-mode .hero-title {
    color: #ffffff; 
}

.hero-title .highlight {
  color: var(--primary-red);
  text-shadow: 0 0 40px rgba(198,40,40,0.3);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* Hero Slider */
.hero-slider-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--navy-border);
  position: relative;
}

.hero-slider-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(198,40,40,0.3), transparent 50%, rgba(255,255,255,0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  z-index: 2;
  pointer-events: none;
}

.hero-slider-frame .carousel-inner {
  height: 440px;
}

.hero-slider-frame .carousel-caption {
  background: linear-gradient(0deg, rgba(13,19,33,0.95), transparent);
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: 2rem 1.5rem 1.2rem !important;
  text-align: left !important;
}

.hero-slider-frame .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  opacity: 0.4;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.hero-slider-frame .carousel-indicators button.active {
  opacity: 1;
  background: var(--primary-red);
  width: 24px;
  border-radius: 4px;
}

/* ── BUTTONS — Premium Action System ── */
.btn-primary-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.6rem;
  background: var(--primary-red);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: 0 4px 14px var(--primary-red-glow);
  text-decoration: none;
  white-space: nowrap !important;
}

.btn-primary-red:hover {
  background: var(--primary-red-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(198,40,40,0.35);
}

.btn-primary-red:active {
  transform: translateY(0) scale(0.97);
}

.btn-outline-light-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.6rem;
  background: transparent;
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  text-decoration: none;
  white-space: nowrap !important;
}

.btn-outline-light-custom:hover {
  border-color: var(--primary-red);
  color: white;
  background: var(--primary-red-subtle);
  transform: translateY(-2px);
}

.btn-outline-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.3rem;
  background: rgba(198,40,40,0.06);
  color: var(--primary-red);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1.5px solid rgba(198,40,40,0.25);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  text-decoration: none;
  white-space: nowrap !important;
}

.btn-outline-red:hover {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--primary-red-glow);
}

/* Legacy button compatibility */
.btn-tactical-primary { 
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.75rem 1.6rem; background: var(--primary-red); color: white;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.04em; border: none;
  border-radius: var(--radius-md); cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: 0 4px 14px var(--primary-red-glow); text-decoration: none;
  white-space: nowrap !important;
}
.btn-tactical-primary:hover { background: var(--primary-red-hover); color: white; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(198,40,40,0.35); }

.btn-tactical-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.75rem 1.6rem; background: transparent; color: white;
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  border: 1.5px solid rgba(255,255,255,0.18); border-radius: var(--radius-md);
  cursor: pointer; transition: all var(--duration-normal) var(--ease-smooth); text-decoration: none;
  white-space: nowrap !important;
}
.btn-tactical-secondary:hover { border-color: var(--primary-red); color: white; background: var(--primary-red-subtle); transform: translateY(-2px); }

.btn-tactical-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.65rem 1.3rem; background: rgba(198,40,40,0.06); color: var(--primary-red);
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  border: 1.5px solid rgba(198,40,40,0.25); border-radius: var(--radius-md);
  cursor: pointer; transition: all var(--duration-normal) var(--ease-smooth); text-decoration: none;
  white-space: nowrap !important;
}
.btn-tactical-outline:hover { background: var(--primary-red); color: white; border-color: var(--primary-red); transform: translateY(-2px); }

/* ── CARDS — Elegant Glass Cards ── */
.bn-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: var(--shadow-sm);
}

.bn-card:hover {
  transform: translateY(-6px);
  border-color: var(--navy-border-hover);
  box-shadow: var(--shadow-lg);
}

.bn-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.bn-card:hover .bn-card-img {
  transform: scale(1.05);
}

.bn-card-body {
  padding: 1.5rem;
}

.bn-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.bn-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bn-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

/* Legacy card compatibility */
.titanium-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: var(--shadow-sm);
}
.titanium-card:hover {
  transform: translateY(-5px);
  border-color: var(--navy-border-hover);
  box-shadow: var(--shadow-lg);
}

.glass-panel {
  background: var(--navy-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--navy-border);
}

/* ── SECTION STYLING ── */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-white);
  border-left: 4px solid var(--primary-red);
  padding-left: 1rem;
  line-height: 1.15;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--primary-red);
  border-radius: 3px;
}

/* Background variants */
.bg-navy-deep { background-color: var(--navy-deep); }
.bg-navy-surface { background-color: var(--navy-surface); }
.bg-navy-card { background-color: var(--navy-card); }
.bg-carbon-black { background-color: var(--navy-deep); }
.bg-titanium-grey { background-color: var(--navy-surface); }
.bg-primary-red { background-color: var(--primary-red); }

/* ── STATS SECTION ── */
.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary-red);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* ── DNI VALIDATION BANNER ── */
.validation-banner {
  background: var(--navy-surface);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
}

.validation-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--navy-surface);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease-smooth);
}

.validation-input-group:focus-within {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px var(--primary-red-subtle);
}

.validation-input-group input {
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  width: 100%;
  padding: 0.5rem;
}

.validation-input-group input::placeholder {
  color: var(--text-dim);
}

/* ── GALLERY GRID ── */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  height: 260px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,23,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

/* ── CLIENTS CAROUSEL ── */
.clients-track {
  display: flex;
  gap: 3rem;
  animation: scroll-left 60s linear infinite;
  width: max-content;
}

.clients-track img {
  height: 60px; /* Agrandar logos según PDF */
  object-fit: contain;
  opacity: 0.8;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.clients-track img:hover {
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── TESTIMONIAL ── */
.testimonial-card {
  background: var(--navy-deep);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  position: relative;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-red);
  border-radius: 3px;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* ── FORM CONTROLS ── */
.form-tactical-control {
  background-color: var(--navy-surface) !important;
  border: 1.5px solid var(--navy-border) !important;
  color: var(--text-white) !important;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--duration-fast) var(--ease-smooth), 
              box-shadow var(--duration-fast) var(--ease-smooth);
}

.form-tactical-control:focus {
  background: var(--bg-dark);
  border-color: var(--primary-red);
  color: var(--text-white);
  box-shadow: 0 0 0 3px var(--primary-red-subtle);
  outline: none;
}

.form-tactical-control::placeholder {
  color: var(--text-dim);
}

.form-tactical-control:-webkit-autofill,
.form-tactical-control:-webkit-autofill:hover, 
.form-tactical-control:-webkit-autofill:focus, 
.form-tactical-control:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--navy-surface) inset !important;
  -webkit-text-fill-color: var(--text-white) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ── BADGES ── */
.badge-tactical {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.3em 0.75em;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-tactical-success {
  color: var(--success);
  background: var(--success-subtle);
  border: 1px solid rgba(34,197,94,0.2);
}

.badge-tactical-error {
  color: var(--danger);
  background: var(--danger-subtle);
  border: 1px solid rgba(239,68,68,0.2);
}

.badge-tactical-warning {
  color: var(--gold);
  background: var(--gold-subtle);
  border: 1px solid rgba(212,168,67,0.2);
}

/* ── FOOTER ── */
.bn-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--navy-border);
  padding: 4rem 0 2rem;
}

.bn-footer h5 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

.bn-footer a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.bn-footer a:hover {
  color: var(--primary-red);
}

.bn-footer .footer-social-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-surface);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.bn-footer .footer-social-btn:hover,
.bn-footer a.footer-social-btn:hover {
  background: var(--navy-surface-hover, rgba(255,255,255,0.05));
  border-color: var(--primary-red) !important;
  color: var(--primary-red) !important;
  transform: translateY(-2px);
}

/* ── CONSTANCIA / CERTIFICATE CARD ── */
.constancia-digital-card {
  background: #FFFFFF;
  color: #1E293B;
  border: none;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.constancia-digital-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-red) 0%, var(--gold) 100%);
}

.constancia-header {
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.constancia-title {
  font-family: var(--font-display);
  color: var(--navy-deep);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.constancia-seal {
  width: 90px;
  height: 90px;
  border: 2px dashed var(--gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  color: var(--gold);
  text-transform: uppercase;
}

/* ── TABLES ── */
.table-tactical {
  color: var(--text-light);
  font-size: 0.9rem;
}

.table-tactical th {
  background: var(--primary-red-subtle);
  border-bottom: 2px solid var(--navy-border);
  color: var(--text-white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px;
  font-size: 0.8rem;
}

.table-tactical td {
  border-bottom: 1px solid var(--navy-border);
  padding: 14px;
  transition: background-color var(--duration-fast) var(--ease-smooth);
}

.table-tactical tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* ── ADMIN SIDEBAR ── */
.admin-sidebar {
  background: var(--navy-base);
  border-right: 1px solid var(--navy-border);
  min-height: 100vh;
}

.admin-sidebar .nav-link {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-left: 3px solid transparent;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: var(--text-white);
  background: var(--primary-red-subtle);
  border-left-color: var(--primary-red);
}

.active-tactical {
  background: var(--primary-red-subtle) !important;
  border-left: 3px solid var(--primary-red) !important;
  color: var(--text-white) !important;
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

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

.animate-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Scroll reveal placeholder */
.scroll-reveal {
  will-change: transform, opacity;
}

/* ── PRINT STYLES ── */
@media print {
  body { background: white !important; color: black !important; }
  header, footer, section:not(.print-target), .print-exclude { display: none !important; }
  .print-target {
    position: absolute; top: 0; left: 0; width: 100%;
    margin: 0; padding: 0; border: none; box-shadow: none;
  }
  .constancia-digital-card {
    border: 8px double #000 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    width: 100%; margin-top: 40px;
  }
}

/* ── RESPONSIVE ── */
@media (min-width: 1200px) {
  .bn-navbar .navbar-collapse,
  body.light-mode .bn-navbar .navbar-collapse {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

@media (max-width: 1199.98px) {
  .bn-navbar .navbar-collapse { 
    background: rgba(10,14,23,0.98); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    border: 1px solid var(--navy-border);
  }
  body.light-mode .bn-navbar .navbar-collapse {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
  }
}

@media (max-width: 991.98px) {
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-slider-frame .carousel-inner { height: 300px; }
}

@media (max-width: 767.98px) {
  .hero-section { min-height: 85vh; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .gallery-item { height: 200px; }
  .constancia-digital-card { padding: 1.5rem; }
}

/* ── UTILITY OVERRIDES ── */
.object-fit-cover { object-fit: cover; }
.filter-grayscale { filter: grayscale(100%); }
.transition-all { transition: all var(--duration-normal) var(--ease-smooth); }

/* Page header for inner pages — compact with video support */
.page-header {
  position: relative;
  min-height: 30vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-header-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,14,23,0.88) 30%, rgba(10,14,23,0.65) 100%);
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

/* Video Feature Card (e.g. nosotros page) */
.video-feature-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--navy-border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
}

.video-feature-card video,
.video-feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-feature-card .video-logo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,23,0.7) 0%, rgba(10,14,23,0.2) 40%, rgba(10,14,23,0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.video-feature-card .video-logo-overlay img {
  width: auto;
  height: 80px;
  opacity: 0.9;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}

@media (max-width: 767.98px) {
  .page-header { min-height: 25vh; }
  .video-feature-card { aspect-ratio: 16 / 9; }
  .video-feature-card .video-logo-overlay img { height: 50px; }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER COMPLIANCE & LEGAL BUTTONS
   ══════════════════════════════════════════════════════════════ */
.footer-logo-light { display: none; }
.footer-logo-dark { display: block; }

body.light-mode .footer-logo-light { display: block !important; }
body.light-mode .footer-logo-dark { display: none !important; }

body.light-mode .bn-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

body.light-mode .bn-footer h5 {
  color: #0f172a !important;
  font-weight: 800;
  letter-spacing: 0.06em;
}

body.light-mode .bn-footer p.text-silver {
  color: #475569 !important;
  opacity: 1 !important;
}

body.light-mode .bn-footer a:not(.btn):not(.footer-compliance-card) {
  color: #475569 !important;
  text-decoration: none;
}

body.light-mode .bn-footer a:not(.btn):not(.footer-compliance-card):hover {
  color: #c62828 !important;
}

body.light-mode .bn-footer ul li span {
  color: #334155 !important;
}

body.light-mode .bn-footer .footer-social-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.light-mode .bn-footer .footer-social-btn:hover {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
  transform: translateY(-2px);
}

.footer-compliance-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-smooth);
}
.footer-compliance-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(198, 40, 40, 0.4);
  transform: translateY(-2px);
}
body.light-mode .footer-compliance-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}
body.light-mode .footer-compliance-card:hover {
  border-color: #ef4444 !important;
  box-shadow: 0 6px 20px rgba(198, 40, 40, 0.12) !important;
}
body.light-mode .footer-compliance-card .text-white {
  color: #0f172a !important;
}
body.light-mode .footer-compliance-card .text-silver {
  color: #64748b !important;
}

.footer-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  transition: all var(--duration-fast) var(--ease-smooth);
}
.footer-pill-btn:hover {
  background: rgba(198, 40, 40, 0.15);
  border-color: #ef4444;
  color: #ffffff;
}
body.light-mode .footer-pill-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
body.light-mode .footer-pill-btn:hover {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}

/* ── BOTÓN INGRESAR RECLAMO Y BOTONES DANGER EN FOOTER ── */
.bn-footer .btn-danger,
.bn-footer a.btn-danger,
body.light-mode .bn-footer .btn-danger,
body.light-mode .bn-footer a.btn-danger {
  background: #c62828 !important;
  border-color: #b71c1c !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.3) !important;
}

.bn-footer .btn-danger *,
.bn-footer a.btn-danger *,
body.light-mode .bn-footer .btn-danger *,
body.light-mode .bn-footer a.btn-danger * {
  color: #ffffff !important;
}

.bn-footer .btn-danger:hover,
.bn-footer a.btn-danger:hover,
body.light-mode .bn-footer .btn-danger:hover,
body.light-mode .bn-footer a.btn-danger:hover {
  background: #b71c1c !important;
  border-color: #991b1b !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

body.light-mode .bn-footer .bottom-bar-links a {
  color: #64748b !important;
}

body.light-mode .bn-footer .bottom-bar-links a:hover {
  color: #c62828 !important;
}

/* ══════════════════════════════════════════════════════════════
   LIGHT MODE — Hamburger toggler icon fix
   Solo reemplaza el SVG del toggler para que sea visible en modo día
   ══════════════════════════════════════════════════════════════ */
body.light-mode .bn-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231e293b' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
body.light-mode .bn-navbar .navbar-toggler {
  border-color: rgba(15, 23, 42, 0.3);
}
