/* 🔥 ELIMINAR TODOS LOS BORDES BLANCOS DE LA PÁGINA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background: #000; /* o tu fondo principal */
    overflow-x: hidden; /* evita línea blanca por desplazamiento horizontal */
}


/* ==========================================================
   HERO violeta
========================================================== */

.hero-docs {
    padding: 140px 40px;
    min-height: 80vh;
    position: relative;
    background: #000;
    
}

.hero-docs-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    line-height: 1.;
    margin-bottom: 20px;
    font-family: "Raleway", sans-serif;
}

.hero-text p {
    max-width: 1200px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    margin-bottom: 36px;
        font-family: "Raleway", sans-serif;
    

}

/* Botones */
.btn-primary {
    background: #ae00ff;
    color: #000000;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: .2s ease;
        font-family: "Raleway", sans-serif;

}

.btn-primary:hover {
    background: #f04dff;
}

.btn-secondary {
    margin-left: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 12px 26px;
    border-radius: 12px;
    text-decoration: none;
    transition: .2s ease;
        font-family: "Raleway", sans-serif;

}

.btn-secondary:hover {
    background: rgba(255,255,255,0.18);
}

/* MEDIA */
.hero-media img {
    width: 480px;
    border-radius: 20px;
}


/* ==========================================================
   GRADIENTE VERDE HERO (CONTROL DESDE ROOT)
========================================================== */

:root {
    --docs-g1: #f700ff;
    --docs-g2: #9900d6;
    --docs-g3: #9f006a;

    --docs-size: 900px;
    --docs-opacity: 0.35;
    --docs-x: 10%;
    --docs-y: 50%;
    --docs-blur: 220px;
    --docs-speed: 3s;
    --docs-scale-min: 2;
    --docs-scale-max: 1.25;
}

.gradient-docs::before {
    content: "";
    position: absolute;
    top: var(--docs-y);
    left: var(--docs-x);
    width: var(--docs-size);
    height: var(--docs-size);

    background: radial-gradient(circle,
        var(--docs-g1),
        var(--docs-g2) 40%,
        var(--docs-g3) 80%,
        transparent 100%
    );

    opacity: var(--docs-opacity);
    filter: blur(var(--docs-blur));
    transform: translate(-50%, -50%);
    animation: docsMove var(--docs-speed) ease-in-out infinite alternate;

    z-index: 1;
}

.gradient-docs * {
    position: relative;
    z-index: 2;
}

@keyframes docsMove {
    0% { transform: translate(-50%,-50%) scale(var(--docs-scale-min)); }
    100% { transform: translate(-45%,-55%) scale(var(--docs-scale-max)); }
}


/* ==========================================================
   SECCIÓN MÓDULOS (CARDS)
========================================================== */

.modules-section {
    padding: 120px 40px;
    background: #000000;
    font-family: "Raleway", sans-serif;
    
}

.modules-header {
    text-align: center;
    margin-bottom: 50px;
     font-weight: 30;
    
}

.modules-header h2 {
    color: #fff;
    font-size: 40px;
    margin-bottom: 12px;
     font-weight: 100;

}

.modules-header p {
    color: rgba(255,255,255,0.65);
}

.modules-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    
}

/* ===========================
   CARD GLASS + GRAIN + GREEN
=========================== */

.glass-card {
    padding: 28px;
    border-radius: 18px;

    background: rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(0, 0, 0, 0);

    position: relative;
    overflow: hidden;
    transition: .25s ease;
    
    
}

/* Granulado Apple */
.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQYGWP4////fwAJ+wP9n9KuWAAAAABJRU5ErkJggg==');
    opacity: 0.14;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.glass-card h3 {
    color: rgb(255, 255, 255);
    font-size: 20px;
    margin-bottom: 10px;
    font-family: "Raleway", sans-serif;
    font-weight: 300;
}

.glass-card p {
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    font-family: "Raleway", sans-serif;
    font-weight: 100;
}

.glass-card:hover {
    background: rgba(162, 0, 255, 0.12);
    transform: translateY(-5px);

    font-family: "Raleway", sans-serif;
}

/* ==========================================================
   📱 MOBILE DESIGN (Pantallas < 768px)
========================================================== */

@media (max-width: 768px) {

    /* -----------------------
       HERO
    ----------------------- */
    .hero-docs {
        padding: 100px 24px 60px;
        text-align: center;
    }

    .hero-docs-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        justify-content: center;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 32px;
        line-height: 1.25;
    }

    .hero-text p {
        font-size: 16px;
        line-height: 1.45;
        margin-bottom: 26px;
    }

    /* Botones */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
        padding: 14px 0;
    }

    /* Imagen/video del héroe */
    .hero-media img,
    .hero-media video {
        width: 100%;
        max-width: 420px;
        border-radius: 18px;
    }



    /* -----------------------
       GRADIENTE (suavizado)
    ----------------------- */
    :root {
        --docs-size: 500px;
        --docs-opacity: 0.28;
        --docs-blur: 160px;
        --docs-x: 50%;
        --docs-y: 60%;
    }



    /* -----------------------
       SECCIÓN MÓDULOS
    ----------------------- */
    .modules-section {
        padding: 70px 24px;
    }

    .modules-header h2 {
        font-size: 28px;
    }

    .modules-header p {
        font-size: 15px;
    }

    /* GRID → UNA COLUMNA */
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Cards glass */
    .glass-card {
        padding: 22px;
        border-radius: 16px;
    }

    .glass-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .glass-card p {
        font-size: 15px;
        line-height: 1.45;
    }
}
