/* --- CONFIGURACIÓN BASE Y BODY --- */
body {
  font-family: Arial, Ravie;
  margin: 0;
  padding: 0;
  background-image: url("../imagenes/fondo2.png");    
  background-size: cover;        
  background-position: center;   
  background-repeat: no-repeat;  
  background-attachment: fixed;  
}

/* --- VARIABLES DE COLOR GAMER --- */
:root {
  --bg-dark-blue: #0b111e;
  --panel-gray: #1a2233;
  --border-gray: #2d3748;
  --accent-red: #0066ff;
  --accent-red-glow: rgba(0, 60, 255, 0.6);
  --text-white: #0883ff;
}

/* --- ESTILOS DE LA PANTALLA DE CARGA (LOADER) --- */
#gamer-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark-blue);
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255, 0, 60, 0.1) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 30px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999; /* Asegura estar sobre la cabecera */
  transition: opacity 0.5s ease, visibility 0.5s ease;
  color: var(--text-white);
}

/* Efecto de Desaparición Suave */
#gamer-loader.fade-out {
  opacity: 0;
}

/* Ocultar Elementos */
.hidden {
  display: none !important;
}

/* Anillos y Logo Central */
.loader-container {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.loader-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid var(--panel-gray);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
  box-shadow: 0 0 20px var(--accent-red-glow);
}

.loader-ring-inner {
  position: absolute;
  width: 80%;
  height: 80%;
  border: 3px solid transparent;
  border-bottom-color: var(--accent-red);
  border-radius: 50%;
  animation: spin-reverse 0.9s linear infinite;
  opacity: 0.8;
}

.loader-logo {
  position: absolute;
  width: 55%;
  height: 55%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--accent-red-glow));
  animation: logo-pulse 2s ease-in-out infinite alternate;
}

/* Barra de Carga Dinámica */
.loader-bar-container {
  width: 260px;
  height: 6px;
  background-color: var(--panel-gray);
  border: 1px solid var(--border-gray);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #002d80, var(--accent-red));
  position: absolute;
  left: 0;
  transition: width 0.2s ease-out;
  box-shadow: 0 0 12px var(--accent-red);
}

/* Textos e Indicadores */
.loader-text-group {
  text-align: center;
  margin-top: 1rem;
}

.loader-title {
  display: block;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 4px;
  text-shadow: 0 0 10px var(--accent-red);
}

.loader-percent {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-red);
  text-shadow: 0 0 10px var(--accent-red-glow);
  margin-top: 0.3rem;
  letter-spacing: 2px;
}

.loader-status {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
}

/* Botón Press Start */
.start-btn {
  margin-top: 1rem;
  padding: 0.8rem 2rem;
  background: var(--accent-red);
  color: var(--text-white);
  border: 2px solid #ffffff;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 3px;
  cursor: pointer;
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 0 15px var(--accent-red-glow);
  animation: start-blink 1s infinite alternate;
  transition: transform 0.2s ease, background 0.2s ease;
}

.start-btn:hover {
  background: #005dd6;
  transform: scale(1.08);
  box-shadow: 0 0 25px var(--accent-red);
}

/* Keyframes / Animaciones */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes logo-pulse {
  0% { transform: scale(0.95); filter: drop-shadow(0 0 5px var(--accent-red-glow)); }
  100% { transform: scale(1.05); filter: drop-shadow(0 0 15px var(--accent-red)); }
}

@keyframes start-blink {
  0% { opacity: 0.4; }
  100% { opacity: 1; text-shadow: 0 0 10px #ffffff; }
}

/* --- ESTILOS ENCABEZADO PRINCIPAL --- */
.site-header {
  width: 100%;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.top-bar {
  border-bottom: 1px solid #eaeaea;
  padding: 6px 0;
}

.top-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-bar-content {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: #222222;
}

.phone-info strong {
  font-weight: 780;
  letter-spacing: 0.5px;
  color: #2c2c2c;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #2c2c2c;
  transition: color 0.3s ease;
}

.social-label {
  font-weight: 780;
  letter-spacing: 0.5px;
  color: #2c2c2c;
}

.social-links a {
  color: #222222;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.social-links a:hover {
  color: #00bacf;
}

.main-header {
  padding: 15px 0;
  border-bottom: 1px solid #eaeaea;
}

.main-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 85px;
  width: auto;
  display: block;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu a {
  text-decoration: none;
  color: #2c2c2c;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.7px;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: #00bacf;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #222222;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.icon-btn:hover {
  color: #00bacf;
}
.main-content {
  width: 100%;
  position: relative;
  z-index: 1;
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  padding: 80px 20px;
  background: rgba(11, 17, 30, 0.85); /* Fondo oscuro translúcido que deja ver el fondo2.png */
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border-gray);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Texto Hero */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 102, 255, 0.15);
  border: 1px solid var(--accent-red);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #539eff;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-red-glow);
  animation: start-blink 1s infinite alternate;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.text-glow {
  color: var(--text-white);
  text-shadow: 0 0 15px var(--accent-red-glow);
}

.hero-description {
  color: #a0aec0;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 550px;
}

/* Botones Hero */
.hero-cta-group {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-red);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 0 15px var(--accent-red-glow);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #0052cc;
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--accent-red);
}

.btn-primaryR {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0acc00;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(10, 204, 0, 0.4);
  transition: all 0.3s ease;
}

.btn-primaryR:hover {
  background: #08a300;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(10, 204, 0, 0.7);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 6px;
  border: 1px solid var(--border-gray);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--accent-red);
  color: var(--text-white);
  background: rgba(0, 102, 255, 0.1);
}

/* Stats Hero */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
}

.stat-label {
  font-size: 0.75rem;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
}

/* Lado Derecho: Tarjeta Robot Showcase */
.robot-card {
  background: var(--panel-gray);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 25px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.robot-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-red);
}

.card-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent-red);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.robot-image-wrapper {
  background: rgba(11, 17, 30, 0.6);
  border-radius: 8px;
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.robot-img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--accent-red-glow));
}

.card-info h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin: 0 0 6px 0;
  letter-spacing: 1px;
}

.card-info p {
  color: #718096;
  font-size: 0.85rem;
  margin: 0 0 20px 0;
}

/* Barras de Estado Gamer */
.stats-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #a0aec0;
}

.bar-bg {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0052cc, var(--accent-red));
  border-radius: 3px;
  box-shadow: 0 0 8px var(--accent-red-glow);
}

/* --- SECCIÓN DE MÓDULOS / TARJETAS --- */
.features-section {
  padding: 70px 20px;
  background: rgba(11, 17, 30, 0.95);
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 40px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 102, 255, 0.3);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.feature-card {
  background: var(--panel-gray);
  border: 1px solid var(--border-gray);
  padding: 30px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.2);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.feature-card h3 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: #a0aec0;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-link {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.card-link:hover {
  color: #539eff;
}

/* --- RESPONSIVE / ADAPTABILIDAD EN MÓVILES --- */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }
}
/* =========================
   CONFIGURACIÓN GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;

    background:
        radial-gradient(circle at top, #202c45 0%, #111827 45%, #080d18 100%);

    color: white;

    min-height: 100vh;
}


/* =========================
   ENCABEZADO
========================= */

.hero {
    text-align: center;
    padding: 80px 20px 60px;
}

.hero-contenido {
    max-width: 900px;
    margin: auto;
}

.subtitulo {
    display: inline-block;

    color: #00aaff;

    font-size: 14px;
    font-weight: bold;

    letter-spacing: 4px;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(35px, 6vw, 65px);

    font-weight: 900;

    letter-spacing: 3px;

    line-height: 1.05;

    text-shadow:
        0 0 10px rgba(0, 170, 255, 0.5),
        0 0 30px rgba(0, 170, 255, 0.2);
}

.hero p {
    margin-top: 25px;

    color: #a9b7cf;

    font-size: 18px;

    line-height: 1.6;
}


/* =========================
   CONTENEDOR
========================= */

.contenedor {

    width: 90%;
    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;

    padding-bottom: 80px;
}


/* =========================
   TARJETAS
========================= */

.tarjeta {

    position: relative;

    background:
        linear-gradient(
            145deg,
            rgba(31, 43, 65, 0.95),
            rgba(17, 25, 40, 0.95)
        );

    border: 1px solid #34445f;

    border-radius: 18px;

    padding: 35px;

    min-height: 430px;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* brillo decorativo */

.tarjeta::before {

    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    background: #008cff;

    border-radius: 50%;

    filter: blur(80px);

    opacity: 0.08;

    top: -70px;
    right: -70px;
}


/* EFECTO AL PASAR EL MOUSE */

.tarjeta:hover {

    transform: translateY(-12px);

    border-color: #009dff;

    box-shadow:
        0 15px 40px rgba(0, 153, 255, 0.2),
        0 0 25px rgba(0, 153, 255, 0.08);
}


/* =========================
   ICONOS
========================= */

.icono {

    font-size: 55px;

    width: 85px;
    height: 85px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(0, 153, 255, 0.1);

    border-radius: 20px;

    margin-bottom: 25px;

    transition: 0.3s;
}

.tarjeta:hover .icono {

    transform: scale(1.12) rotate(-5deg);

    background: rgba(0, 153, 255, 0.18);

}


/* =========================
   NIVEL
========================= */

.nivel {

    color: #00aaff;

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 2px;
}


/* =========================
   TÍTULOS
========================= */

.tarjeta h2 {

    font-size: 30px;

    margin-top: 8px;

    margin-bottom: 15px;
}


/* =========================
   DESCRIPCIÓN
========================= */

.tarjeta p {

    color: #aebbd0;

    font-size: 15px;

    line-height: 1.7;

    margin-bottom: 20px;
}


/* =========================
   TECNOLOGÍA
========================= */

.tecnologia {

    display: inline-block;

    background: #111c2e;

    border: 1px solid #30415c;

    color: #c7d5e9;

    padding: 8px 12px;

    border-radius: 8px;

    font-size: 13px;

    margin-bottom: 25px;
}


/* =========================
   BOTÓN
========================= */

.boton {

    display: flex;

    justify-content: space-between;

    align-items: center;

    width: 100%;

    padding: 14px 18px;

    border-radius: 10px;

    text-decoration: none;

    color: white;

    font-weight: bold;

    background:
        linear-gradient(
            90deg,
            #0077ff,
            #00b7ff
        );

    box-shadow:
        0 5px 20px rgba(0, 140, 255, 0.25);

    transition: 0.3s;
}

.boton span {

    font-size: 22px;

    transition: 0.3s;
}

.boton:hover {

    transform: scale(1.03);

    box-shadow:
        0 8px 30px rgba(0, 170, 255, 0.45);
}

.boton:hover span {

    transform: translateX(7px);
}


/* =========================
   FOOTER
========================= */

footer {

    text-align: center;

    padding: 30px;

    border-top: 1px solid #26344c;

    color: #6f809b;

    font-size: 14px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .contenedor {

        grid-template-columns: 1fr 1fr;

    }

}

@media (max-width: 600px) {

    .contenedor {

        grid-template-columns: 1fr;

    }

    .hero {

        padding-top: 50px;

    }

    .tarjeta {

        min-height: auto;

    }

}