/* =====================================================
   FLEXBOX WEBSITE BOILERPLATE - CSS STYLES
   ===================================================== */

   /* Lista de variables */
:root {
  /* Paleta de colores futurista */
  --color-bg: #0a0a1f; /* Fondo Azul Oscuro/Negro */
  --color-primary: #00ffc2; /* Cian Eléctrico (Acento) */
  --color-secondary: #ff4788; /* Magenta (Alerta/Highlight) */
  --color-tertiary: #6366f1; /* Índigo moderno */
  --color-text: #e0e0ff; /* Texto Blanquecino */
  --color-text-secondary: #a1a1aa; /* Texto secundario */
  --color-surface: #12122a; /* Superficie oscura */
  --color-surface-secondary: #18183b; /* Superficie secundaria */

  /* Tipografías */
  --font-heading: "batmfa", sans-serif;
  --font-body: "Roboto", sans-serif;

  /* Espaciados */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* Transiciones */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

@font-face {
  font-family: "batmfa";
  src: url('../fonts/batmfa__.ttf');
}

/* =====================================================
   RESET Y BASE STYLES
   ===================================================== */

* {
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  /* text-transform: uppercase; */
  letter-spacing: 2px;
  margin: 0 0 var(--spacing-md) 0;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 var(--spacing-md) 0;
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--color-secondary);
}

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

/* =====================================================
   CONTENEDOR PRINCIPAL - ANCHO VARIABLE 1000-2000px
   ===================================================== */

.site-container {
  max-width: 2000px;
  min-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: transparent;
  position: relative;
}

.site-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: 
    linear-gradient(
      180deg,
      rgba(10, 10, 31, 0.6) 0%,
      rgba(10, 10, 31, 0.8) 40%,
      rgba(10, 10, 31, 0.95) 70%,
      var(--color-bg) 100%
    ),
    url('../img/Copilot_20251103_122516.png') no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
  z-index: -1;
}

.site-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 60%,
    var(--color-bg) 80%,
    var(--color-bg) 100%
  );
}

/* =====================================================
   SECCIÓN HERO - FLEXBOX CENTRADO
   ===================================================== */

.hero-section {
  padding: var(--spacing-xxl) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    ellipse at center,
    rgba(12, 170, 133, 0.1) 0%,
    transparent 70%
  );
  border-radius: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(
    135deg,
    #ffffff,
    var(--color-primary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  max-width: 800px;
  text-shadow: 0 0 20px rgba(0, 255, 194, 0.5);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* Subtítulo */
.hero-section p {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  line-height: 1.8;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 400;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* =====================================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ===================================================== */

/* Tablet y pantallas medianas */
@media (max-width: 1200px) {
  .site-container {
    min-width: 800px;
    padding: 0 var(--spacing-md);
  }

  .main-header {
    flex-direction: column;
    gap: var(--spacing-lg);
    text-align: center;
  }

  .nav-list {
    gap: var(--spacing-lg);
  }

  .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
  }

  .main-footer {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg);
  }

  .vote-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .site-container {
    min-width: 320px;
    padding: 0 var(--spacing-sm);
  }

  .main-header {
    padding: var(--spacing-md) 0;
  }

  .nav-list {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .hero-section {
    padding: var(--spacing-xl) 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .imi-status-widget {
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .promo-aside {
    padding: var(--spacing-lg);
  }

  .vote-buttons {
    gap: var(--spacing-sm);
  }

  .btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9rem;
  }
}

/* =====================================================
   ANIMACIONES Y EFECTOS ESPECIALES
   ===================================================== */

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 5px var(--color-primary);
  }
  50% {
    box-shadow: 0 0 20px var(--color-primary), 0 0 30px var(--color-primary);
  }
}

/* Animaciones on scroll */
.content-section {
  animation: fadeInUp 0.8s ease-out;
}

.product-card {
  animation: fadeInUp 0.8s ease-out;
  animation-delay: calc(var(--animation-order, 0) * 0.1s);
}

/* Estados de focus para accesibilidad */
.btn:focus,
.nav-list a:focus,
.footer-col a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Efectos de scroll suave */
html {
  scroll-behavior: smooth;
}

/* Estados de loading */
.loading {
  animation: pulse 1.5s infinite;
}

/* Hover effects para elementos interactivos */
.product-card,
.btn,
.nav-list a,
.social-links a {
  will-change: transform;
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {
  .main-header,
  .main-footer,
  .promo-aside,
  .btn {
    display: none !important;
  }

  .site-container {
    min-width: auto;
    max-width: none;
    background: white;
    color: black;
  }

  .product-card {
    break-inside: avoid;
    border: 1px solid #ccc;
    background: white;
  }
}
