/* VARIABLES */
:root {
  --primary: #d90429;
  --secondary: #ef233c;
  --dark: #050505;
  --card-bg: #111111;
  --text-white: #ffffff;
  --text-gray: #b0b0b0;
  --gold: #ffb703;
}

/* RESET Y BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth !important;
  scroll-padding-top: 100px; 
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--dark);
  color: var(--text-white);
  line-height: 1.8;
}

h1, h2, h3, h4, nav a {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- MODIFICACIÓN DEL HEADER --- */
/* --- RESET DE SEGURIDAD PARA EL HEADER --- */
/* --- HEADER: VIDEO FULL WIDTH CON TEXTO SUPERPUESTO --- */
header {
    position: relative;
    width: 100%;
    height: 85vh; /* Altura del header */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Corta lo que sobresalga del video */
    background-color: #000; /* Fondo negro de seguridad */
}

/* 1. EL VIDEO: Ocupa todo el fondo */
.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centra el video perfectamente */
    min-width: 100%; 
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover; /* Evita que el video se estire o deje franjas negras */
    z-index: 1; /* Al fondo */
}

/* 2. LA CAPA OSCURA (OVERLAY): Encima del video, debajo del texto */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2; /* Capa intermedia */
}

/* 3. EL CONTENIDO (TEXTO): Por encima de todo */
.header-content {
    position: relative; /* Importante para que el z-index funcione */
    z-index: 3; /* Capa superior */
    text-align: center;
    padding: 0 20px;
    width: 100%; /* Asegura que el texto se centre respecto a todo el ancho */
}

/* Ajustes para el título masivo */
.header-content h1 {
    font-size: clamp(3.5rem, 15vw, 8rem);
    line-height: 0.85;
    margin-bottom: 10px;
    color: var(--text-white);
    text-shadow: 0 5px 20px rgba(0,0,0,0.8); /* Sombra para que resalte del video */
}

/* Badge y descripción */
.badge {
    background: var(--primary);
    padding: 5px 20px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.header-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-gray);
}

/* NAVEGACIÓN STICKY */
nav {
  position: sticky;
  top: 0;
  background: rgba(5, 5, 5, 0.98);
  border-bottom: 2px solid var(--primary);
  z-index: 1000;
  padding: 15px 0;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--text-white);
  font-size: 0.9rem;
  transition: 0.3s ease;
}

nav a:hover {
  color: var(--primary);
}

/* CONTENEDOR Y POSTS */
.container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.post {
  background: var(--card-bg);
  padding: 60px;
  margin-bottom: 60px;
  border-left: 5px solid var(--primary);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.category {
  color: var(--gold);
  font-weight: bold;
  font-size: 0.8rem;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

h2 {
  font-size: 3rem;
  margin-bottom: 30px;
  line-height: 1;
}

h3 {
  color: var(--secondary);
  margin: 25px 0 10px 0;
}

/* LAYOUTS Y GRIDS */
.content-split {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.text-block, .info-block {
  flex: 1.2;
  min-width: 300px;
}

.mega-grid, .equipment-grid, .pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* VIDEO DINÁMICO NOSOTROS */
.video-wrapper-nosotros {
  flex: 1;
  min-width: 320px;
  position: relative;
  border-right: 4px solid var(--primary);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  background: #000;
}

.video-promo {
  width: 100%;
  display: block;
  filter: contrast(1.1) brightness(0.9);
  transition: 0.4s ease;
}

.video-wrapper-nosotros:hover .video-promo {
  filter: contrast(1) brightness(1);
}

.live-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  font-family: 'Oswald';
  font-size: 0.75rem;
  letter-spacing: 1px;
  border-radius: 3px;
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* TABLAS */
.table-container {
  overflow-x: auto;
  margin-top: 30px;
}

.nutri-table {
  width: 100%;
  border-collapse: collapse;
  background: #1a1a1a;
}

.nutri-table th {
  background: var(--primary);
  padding: 20px;
  text-align: left;
}

.nutri-table td {
  padding: 20px;
  border-bottom: 1px solid #333;
}

/* LEYENDAS Y REGLAS */
.black-card {
  background: linear-gradient(135deg, #000 0%, #151515 100%);
}

.legends-flex {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.legend {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 8px;
}

.reglas-list {
  list-style: none;
  margin-top: 20px;
}

.reglas-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.reglas-list li::before {
  content: "🔔";
  position: absolute;
  left: 0;
}

/* PRECIOS */
.price-card {
  background: #000;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #333;
  transition: 0.3s ease;
  position: relative;
}

.price-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

.featured-label {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 5px 15px;
  font-size: 0.8rem;
  font-weight: bold;
}

.price {
  font-size: 3rem;
  font-family: 'Oswald';
  margin: 20px 0;
}

.price span {
  font-size: 1rem;
  color: var(--text-gray);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
}

.price-card li {
  margin-bottom: 10px;
  color: var(--text-gray);
}

.price-card li::before {
  content: "✔️ ";
  color: var(--primary);
}

.btn-small, .btn-red {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  font-family: 'Oswald';
  border: none;
  cursor: pointer;
}

.btn-red {
  font-size: 1.2rem;
  padding: 15px;
}

/* CONTACTO */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
}

.main-form {
  display: grid;
  gap: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--text-gray);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: white;
  border-radius: 5px;
}

.social-links {
  margin: 20px 0;
}

.social-links a {
  margin-right: 15px;
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
  border: 1px solid var(--primary);
  padding: 5px 10px;
}

/* FOOTER */
footer {
  background: #000;
  padding: 80px 20px 40px;
  border-top: 5px solid var(--primary);
}

.footer-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.newsletter-form input {
  padding: 12px;
  border: none;
  border-radius: 3px;
  flex: 1;
}

.newsletter-form button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 25px;
  font-weight: bold;
  cursor: pointer;
}

.copyright {
  text-align: center;
  margin-top: 60px;
  color: #555;
  font-size: 0.8rem;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .contact-wrapper, .content-split {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .price-card.featured {
    transform: scale(1);
  }

  .post {
    padding: 30px;
  }

  h2 {
    font-size: 2rem;
  }

  .nav-container {
    gap: 10px;
  }

  .video-wrapper-nosotros {
    width: 100%;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Contenedor del video en técnica */
.video-tecnica-container {
  margin: 20px 0;
  border: 2px solid var(--primary);
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-demo-tecnica {
  width: 100%;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.video-demo-tecnica:hover {
  filter: grayscale(0%);
}

.video-caption {
  background: var(--primary);
  color: white;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  padding: 5px 10px;
  text-transform: uppercase;
  position: absolute;
  bottom: 0;
  right: 0;
}