/* ==========================================================================
   RESET Y VARIABLES GLOBALES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #0c081c; /* Fondo oscuro ultramoderno */
    color: #f1f1f8;
    overflow-x: hidden;
    line-height: 1.8;
}

/* ==========================================================================
   HEADER Y MENÚ DE NAVEGACIÓN (Efecto de Vidrio Esmerilado)
   ========================================================================== */
header {
    background: rgba(12, 8, 28, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 3px solid #ff007f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ff007f, #7f00ff, #00f0ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1.5px;
}

nav {
    display: flex;
    gap: 12px;
}

nav a {
    color: #e2e2eb;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover, nav a.active {
    background: linear-gradient(45deg, #ff007f, #7f00ff);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.6);
}

/* ==========================================================================
   HERO BANNER (Pantalla de bienvenida)
   ========================================================================== */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(12, 8, 28, 0.75), rgba(12, 8, 28, 0.98)), 
                url('https://images.unsplash.com/photo-1541701494587-cb58502866ab?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    margin-top: 75px;
}

.hero-content h1 {
    font-size: 4.2rem;
    font-weight: 800;
    margin-bottom: 22px;
    background: linear-gradient(45deg, #00f0ff, #7f00ff, #ff007f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.35rem;
    max-width: 850px;
    margin: 0 auto 35px auto;
    color: #d8d8e2;
}

/* ==========================================================================
   CONTENEDORES Y MAQUETACIÓN GENERAL
   ========================================================================== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 20px;
}

.header-spacing {
    margin-top: 100px;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 800;
    color: #00f0ff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #a4a4b2;
    margin-bottom: 60px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* Sistemas de Rejilla Adaptables */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 35px;
}

/* ==========================================================================
   TARJETAS LLAMATIVAS (Cards con sombreados de neón)
   ========================================================================== */
.card {
    background-color: #16122d;
    border-radius: 20px;
    padding: 35px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-10px);
}

/* Bordes y Sombras Neon para cada categoría de Card */
.card-purple { border-left: 6px solid #7f00ff; box-shadow: 0 15px 40px rgba(127, 0, 255, 0.22); }
.card-pink { border-left: 6px solid #ff007f; box-shadow: 0 15px 40px rgba(255, 0, 127, 0.22); }
.card-blue { border-left: 6px solid #00f0ff; box-shadow: 0 15px 40px rgba(0, 240, 255, 0.22); }
.card-orange { border-left: 6px solid #ff5e00; box-shadow: 0 15px 40px rgba(255, 94, 0, 0.22); }
.card-green { border-left: 6px solid #00ff66; box-shadow: 0 15px 40px rgba(0, 255, 102, 0.22); }

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
}

.card h4 {
    font-size: 1.25rem;
    color: #00f0ff;
    margin-top: 15px;
    margin-bottom: 10px;
}

.card p {
    color: #cdcee0;
    font-size: 1.02rem;
    margin-bottom: 15px;
}

/* Soporte de Listas y Enumeraciones dentro de las Cards */
.card ul, .card ol {
    margin-bottom: 20px;
    padding-left: 15px;
}

.card ul li, .card ol li {
    margin-bottom: 10px;
    color: #cdcee0;
    font-size: 1rem;
}

.card ul li strong, .card ol li strong {
    color: #00f0ff;
}

/* Estilo de Botones con Degradado */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(45deg, #00f0ff, #7f00ff, #ff007f);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 40px;
    box-shadow: 0 6px 22px rgba(127, 0, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    box-shadow: 0 10px 35px rgba(0, 240, 255, 0.7);
    transform: scale(1.06);
}

/* Imágenes dentro de la información */
.img-content {
    width: 100%;
    height: auto;
    border-radius: 14px;
    margin-top: 18px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0,0,0,0.55);
}

/* ==========================================================================
   REPRODUCTORES DE VIDEO ADAPTABLES
   ========================================================================== */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    margin-top: 20px;
    border: 3px solid rgba(255, 255, 255, 0.08);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   GALERÍA GRID COMPACTO CON RATIO 1:1 (Para las 15 Imágenes)
   ========================================================================== */
.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.50, 1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(12,8,28,1) 30%, rgba(12,8,28,0.1));
    padding: 25px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.50, 1);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: #00f0ff;
    font-size: 1.35rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.gallery-overlay p {
    font-size: 0.9rem;
    color: #e2e2ec;
    line-height: 1.5;
}

/* ==========================================================================
   FORMULARIO DE CONTACTO
   ========================================================================== */
.form-contacto label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #00f0ff;
    font-size: 0.95rem;
}

.form-contacto input, .form-contacto textarea {
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 25px;
    background-color: #0c081c;
    border: 2px solid #7f00ff;
    border-radius: 12px;
    color: #fff;
    outline: none;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-contacto input:focus, .form-contacto textarea:focus {
    border-color: #ff007f;
    box-shadow: 0 0 14px rgba(255, 0, 127, 0.5);
}

/* ==========================================================================
   PIE DE PÁGINA
   ========================================================================== */
footer {
    background-color: #05030d;
    text-align: center;
    padding: 50px 20px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    color: #8f8fa3;
    font-size: 1rem;
}

/* ==========================================================================
   RESPONSIVIDAD MÓVIL
   ========================================================================== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    nav {
        margin-top: 15px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    nav a {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    .hero-content h1 {
        font-size: 2.6rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .header-spacing {
        margin-top: 190px;
    }
    .section-title {
        font-size: 2.3rem;
    }
}