/* ========================================
   RESET Y CONFIGURACIÓN GENERAL
=========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #0A1B2E, #0F2847 60%, #000A12);
    color: #e4e4e4;
    line-height: 1.6;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

body.page-loaded {
    opacity: 1;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

/* ========================================
   TIPOGRAFÍAS
=========================================== */
h1, h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* ========================================
   HEADER
=========================================== */
header {
    width: 100%;
    position: fixed;
    top: 0;
    padding: 18px 0;
    z-index: 1000;
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav a {
    margin-left: 25px;
    color: #d0d0d0;
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
}

header nav a:hover {
    color: #00eaff;
}

.logo {
    font-family: 'Space Grotesk';
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.header-scrolled {
    background: rgb(10,27,46);
    backdrop-filter: blur(6px);
}

/* ========================================
   HERO CON IMAGEN DE FONDO (CORREGIDO)
=========================================== */
.hero {
    position: relative; /* Necesario para el posicionamiento de la imagen */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 100px 0;
}

/* Pseudo-elemento para la imagen de fondo */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Asegúrate de que la ruta de la imagen sea correcta */
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25; /* Controla la intensidad de la imagen aquí */
    z-index: 0;
}

/* Overlay adicional para mejorar contraste */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #0A1B2E 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Por encima de la imagen y el overlay */
    max-width: 850px;
    padding: 0 20px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0,255,255,0.15);
    border: 1px solid #00eaff;
    color: #00eaff;
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(90deg, #00eaff, #5f00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 35px;
    color: #cfcfcf;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ========================================
   BOTONES FUTURISTAS
=========================================== */
.btn-primary,
.btn-secondary {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Montserrat';
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background .3s, color .3s;
}

.btn-primary {
    background: linear-gradient(90deg, #00eaff, #0088ff);
    color: #000c12;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #00bcd4, #0064b1);
}

.btn-secondary {
    border: 1px solid #00eaff;
    color: #00eaff;
}

.btn-secondary:hover {
    background: rgba(0,255,255,0.1);
}

/* Efecto Neón dinámico */
.btn-neon,
.card-neon {
    position: relative;
    overflow: hidden;
}

.btn-neon::before,
.card-neon::before {
    content: "";
    position: absolute;
    top: var(--y);
    left: var(--x);
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0,255,255,0.4), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

.btn-neon:hover::before,
.card-neon:hover::before {
    opacity: 1;
}

/* ========================================
   SECCIÓN CATEGORÍAS
=========================================== */
.categorias-section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtext {
    text-align: center;
    color: #9da2ad;
    margin-bottom: 60px;
}

.grid-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.card {
    background: #0e131d;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0,255,255,0.15);
    transition: transform .3s;
}

.card:hover {
    transform: translateY(-6px);
}

.card img {
    border-radius: 10px;
    margin-bottom: 15px;
}

.card button {
    background: transparent;
    border: 1px solid #00eaff;
    color: #00eaff;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 12px;
    transition: background .3s;
}

.card button:hover {
    background: rgba(0,255,255,0.1);
}

/* ========================================
   MODALES
=========================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: #0d111a;
    max-width: 600px;
    width: 100%;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0,255,255,0.2);
    position: relative;
}

.modal h2 {
    margin-bottom: 10px;
}

.modal ul {
    margin: 15px 0;
    padding-left: 20px;
}

.close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 1.4rem;
    cursor: pointer;
    color: #ccc;
}

.modal-banner {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.modal-actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

/* ========================================
   FOOTER
=========================================== */
.footer {
    text-align: center;
    padding: 40px 0;
    color: #8c8c8c;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ========================================
   SCROLL REVEAL
=========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
=========================================== */
@media (max-width: 768px) {
    /* Ocultar enlace de categorías en el header para móviles */
    header nav a:first-child {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        padding: 0 20px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .logo {
        font-size: 1.3rem;
    }
}

