
/* CONFIGURACIÓN GENERAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #1e293b;
}

a {
    text-decoration: none;
}

/* MENÚ PRINCIPAL */

.encabezado {
    background: #0f172a;
    color: white;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h2 {
    font-size: 25px;
    letter-spacing: 1px;
}

.logo span {
    color: #60a5fa;
    font-size: 11px;
    letter-spacing: 3px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu a {
    color: #cbd5e1;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

.menu a:hover,
.menu a.activo {
    color: #60a5fa;
}

/* PORTADA PRINCIPAL */

.inicio {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 8%;

    background: linear-gradient(
        135deg,
        #0f172a 0%,
        #172f69 50%,
        #2563eb 100%
    );

    color: white;
    text-align: center;
}

.inicio-contenido {
    max-width: 850px;
}

.inicio h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.2;
    margin-bottom: 25px;
}

.inicio h1 span {
    display: block;
    color: #93c5fd;
}

.inicio p {
    font-size: 19px;
    line-height: 1.8;
    color: #e2e8f0;
    margin-bottom: 35px;
}

.botones-inicio {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-principal {
    display: inline-block;
    padding: 15px 30px;
    background: #2563eb;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;

    transition:
        background 0.3s,
        transform 0.3s,
        box-shadow 0.3s;
}

.btn-principal:hover {
    background: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px #00000030;
}

/* SECCIÓN DE BENEFICIOS */

.beneficios {
    padding: 85px 8%;
    background: #f5f7fb;
    text-align: center;
}

.beneficios h2 {
    font-size: 34px;
    margin-bottom: 45px;
    color: #0f172a;
}

.beneficios-contenedor {
    display: grid;

    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );

    gap: 25px;
    max-width: 1200px;
    margin: auto;
}

.beneficio {
    background: white;
    padding: 38px 28px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;

    box-shadow: 0 5px 20px #00000008;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.beneficio:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px #00000018;
}

.beneficio h3 {
    font-size: 21px;
    color: #1d4ed8;
    margin-bottom: 18px;
}

.beneficio p {
    font-size: 16px;
    line-height: 1.7;
    color: #64748b;
}

/* PIE DE PÁGINA */

footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 28px 15px;
    font-size: 14px;
}

/* ADAPTACIÓN PARA CELULARES */

@media (max-width: 768px) {

    .encabezado {
        flex-direction: column;
        text-align: center;
        padding: 22px;
    }

    .menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 22px;
    }

    .inicio {
        min-height: 65vh;
        padding: 75px 7%;
    }

    .inicio p {
        font-size: 16px;
    }

    .beneficios {
        padding: 60px 6%;
    }

    .beneficios h2 {
        font-size: 27px;
    }

    .beneficios-contenedor {
        grid-template-columns: 1fr;
    }

    .beneficio {
        padding: 30px 20px;
    }
} /* CIERRE DE LA ADAPTACIÓN PARA CELULARES */


/* E7T - PERSONALIZACIÓN DEL ENCABEZADO */

.encabezado {
    background-color: var(
        --color-encabezado-fondo,
        #0F172A
    );
}

.encabezado .menu a {
    color: var(
        --color-encabezado-texto,
        #CBD5E1
    );
}

.encabezado .menu a:hover,
.encabezado .menu a.activo {
    color: var(
        --color-encabezado-activo,
        #60A5FA
    );
}

/* Transiciones suaves */

.encabezado,
.encabezado .menu a {
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}


/* EVITAR DESTELLO DEL ENCABEZADO E7T */

html.e7t-cargando .encabezado {
    visibility: hidden;
}

/* ==========================================
   E7T - CATÁLOGO PÚBLICO DE SERVICIOS
========================================== */

.catalogo-publico {
    padding: 80px 8%;
    background: #f5f7fb;
}

.catalogo-encabezado {
    text-align: center;
    margin-bottom: 30px;
}

.catalogo-encabezado h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #0f172a;
}

.catalogo-encabezado p {
    font-size: 18px;
    color: #64748b;
}

.mensaje-servicios {
    text-align: center;
    color: #64748b;
    font-size: 17px;
    margin-bottom: 30px;
}

.catalogo-categoria {
    margin-bottom: 60px;
}

.catalogo-categoria h2 {
    font-size: 30px;
    color: #0f172a;
    margin-bottom: 10px;
}

.catalogo-categoria p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.producto-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 5px 20px #00000008;
    transition: transform 0.3s, box-shadow 0.3s;
}

.producto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px #00000014;
}

.producto-imagen {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #e2e8f0;
}

.producto-contenido {
    padding: 20px;
}

.producto-titulo {
    font-size: 24px;
    color: #1d4ed8;
    margin-bottom: 12px;
}

.producto-descripcion {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 14px;
}

.producto-precio {
    font-size: 20px;
    font-weight: bold;
    color: #0f172a;
}

.catalogo-boton-centro {
    margin-top: 45px;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .catalogo-publico {
        padding: 60px 6%;
    }

    .catalogo-encabezado h1 {
        font-size: 32px;
    }

    .catalogo-categoria h2 {
        font-size: 25px;
    }

    .producto-imagen {
        height: 200px;
    }
}


/* E7T - JUEGOS Y PRODUCTOS */

.e7t-juego {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.e7t-juego-encabezado {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.e7t-juego-encabezado h3,
.e7t-juego > h3 {
    font-size: 25px;
    color: #0f172a;
    margin-bottom: 8px;
}

.e7t-juego-encabezado p {
    margin-bottom: 0;
}

.e7t-juego-imagen {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    background: #f1f5f9;
}

.e7t-productos-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
}

.e7t-producto {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    max-width: 290px;
}

.e7t-producto-imagen {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: #e2e8f0;
}

.e7t-producto-contenido {
    padding: 16px;
}

.e7t-producto h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0f172a;
}

.catalogo-categoria .e7t-producto p {
    font-size: 14px;
    margin-bottom: 12px;
}

.e7t-producto-precio {
    display: block;
    font-size: 19px;
    color: #2563eb;
}

@media (max-width: 600px) {
    .e7t-juego {
        padding: 16px;
    }

    .e7t-productos-grid {
        grid-template-columns:
            repeat(auto-fill, minmax(150px, 1fr));
    }
}


