/* ====================================================================
   1. SISTEMA DE DISEÑO (VARIABLES CSS) - VERDE OSCURO GLASS
   ==================================================================== */
:root {
  /* Paleta Base (Dark Green Glass) */
  --bg-main: #02110A; /* Verde oscuro casi negro */
  --bg-card: rgba(6, 24, 14, 0.65); /* Glass Verde */
  --bg-card-solid: #051a10;
  --bg-header: rgba(2, 15, 9, 0.85);
  
  /* Acentos Neón (Callejero/Esports) */
  --accent-primary: #00ff9d; /* Verde Caimanada Eléctrico */
  --accent-primary-hover: #00cc7d;
  --accent-secondary: #ccff00; /* Lima eléctrico para contraste callejero */
  --accent-glow: rgba(0, 255, 157, 0.4);
  --accent-glow-soft: rgba(0, 255, 157, 0.1);
  --danger: #ff3366;
  --warning: #ff9f1c;
  
  /* Texto */
  --text-primary: #ffffff;
  --text-secondary: #a8b8b0;
  --text-muted: #5f7a70;
  
  /* Bordes y Efectos */
  --border-subtle: rgba(0, 255, 157, 0.08);
  --border-card: rgba(0, 255, 157, 0.15);
  --border-card-hover: rgba(0, 255, 157, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
  --glow-primary: 0 0 15px var(--accent-glow);
  --glow-secondary: 0 0 15px rgba(204, 255, 0, 0.3);
  
  /* Tipografía */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ====================================================================
   2. RESET Y GLOBALES (CON FONDO CAIMÁN BESTIAL)
   ==================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Le damos el color de fondo base al HTML para que el body::after trabaje encima */
html {
  background-color: var(--bg-main);
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  /* El body ya no lleva el fondo, se lo pasamos al ::after para poder animarlo */
  position: relative;
}

.is-hidden {
  display: none !important;
}

/* === EL CAIMÁN BESTIAL DE FONDO === */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* Lo deja detrás de todo */
  pointer-events: none; /* No estorba los clics */
  
  /* Ajustes de la imagen (Asegúrate de que la ruta sea correcta) */
  background-image: url('../assets/Caimanada_Solo.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 60vmax; /* Ocupa un 60% de la pantalla, grande e imponente */
  
  /* Opacidad y filtros iniciales */
  opacity: 0.05; /* Súper sutil para no estorbar la lectura */
  filter: drop-shadow(0 0 30px rgba(0, 255, 157, 0.3));
  
  /* Animación perenne: Respiración lenta y epic */
  animation: caimanBreathing 12s ease-in-out infinite;
}

/* ====================================================================
   3. LAYOUT PRINCIPAL Y VISTAS
   ==================================================================== */
.app-content {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 8rem 1.25rem; /* Bottom padding para nav móvil */
}

@media (min-width: 768px) {
  .app-content {
    padding: 3rem 2rem 4rem 2rem;
  }
}

.view-section__header {
  margin-bottom: 2.5rem;
  position: relative;
  padding-left: 1.5rem; 
}

.view-section__header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-full);
  box-shadow: var(--glow-primary);
}

/* Reducimos el tamaño máximo del título de 2.5rem a 2rem, y el mínimo a 1.4rem */
.view-section__title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.view-section__subtitle {
  font-size: 0.85rem; /* Reducido de 0.95rem a 0.85rem */
  color: var(--text-secondary);
  font-weight: 500;
}

/* Watermark */
#app-watermark-footer {
  position: fixed;
  bottom: 90px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.3;
  pointer-events: none;
  z-index: 5;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  user-select: none;
}

@media (min-width: 769px) {
  #app-watermark-footer {
    bottom: 20px;
    opacity: 0.2;
  }
}