
@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Work+Sans:wght@100;300;400;600;800&display=swap');

/* ==========================================================================
   MÓDULO 1: VARIABLES Y TEMAS
   ========================================================================== */

::-moz-selection{
    background:#b3d4fc;
    text-shadow:none
}




::selection{
    background:#b3d4fc;
    text-shadow:none
}


:root {
    --bg-body: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --primary: #00C598;
    --glass-blur: blur(9px);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text: #1a1a1a;
    --border: #e2e8f0;
    --input-bg: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --nav-height: 70px;
    --sidebar-width: 260px;
    --sidebar-collapsed: 75px;
    --radius-lg: 20px;
    --radius-md: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --wave-color: #ffffff;
    --inicio-overlay1: rgba(255,255,255,0.65);
    --inicio-overlay2: rgba(255,255,255,0.9);
    --inicio-text: var(--text-main);
}

[data-theme="dark"] {
    --bg-body: #252A2E;
    --bg-card: rgba(30, 41, 59, 0.98);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --input-bg: #0f172a;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --glass: rgba(18, 18, 18, 0.9);

    --wave-color: #252A2E;
    --inicio-overlay1: rgba(30,35,38,.8);
    --inicio-overlay2: rgba(30,35,38,1);
    --inicio-text: #ffffff;
}
/* ==========================================================================
   MÓDULO 2: RESET Y BASE
   ========================================================================== */

* {
    box-sizing: border-box;
}

html, body{
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: var(--bg-body);
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: 'Work Sans';
    position: relative;
    -ms-text-size-adjust: 100%; /* 2 */
    -webkit-text-size-adjust: 100%; /* 2 */
    color: var(--text-main);
    -webkit-overflow-scrolling: touch;

    transition: 0.3s;
    min-height: 100vh;
}

/* SECCION I N I C I O */
.inicio {

    display: flex;

    background: linear-gradient(
        to right,
        var(--inicio-overlay1),
        var(--inicio-overlay2)
        ),
        url(../img/fondo.jpg);

    width: auto;
    height: 75vh;

    color: var(--inicio-text);

    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;

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

    transition: var(--transition);
}
.inicio .textos-header{
    display:flex;
    height:230px;
    width:100%;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    text-align:center;
}

.inicio .textos-header h1{
    margin-top:2px;
    font-size:35px;
    font-family:'Righteous';
}

.inicio .textos-header h2{
    font-size:18px;
    font-weight:normal;
    font-family:'Righteous';
}
.wave{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:120px;
    overflow:hidden;
    line-height:0;
    z-index:1;
}

.wave svg{
    position:relative;
    display:block;
    width:calc(130% + 1.3px);
    height:100%;
}

/* COLOR DINÁMICO SEGÚN TEMA */
.wave path{
    fill:var(--wave-color);
    transition:fill .4s ease;
}

/* ANIMACIÓN SUAVE */
.wave svg{
    animation:waveMove 8s ease-in-out infinite alternate;
}

@keyframes waveMove{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-60px);
    }
}


/* ==========================================================================
   MÓDULO 3: NAVBAR SUPERIOR
   ========================================================================== */




.logo {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.navbar{
    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:var(--nav-height);

    display:flex;
    align-items:center;

    background:var(--bg-card);
    backdrop-filter: var(--glass-blur); /* Aplica el desenfoque */
    -webkit-backdrop-filter: var(--glass-blur); /* Soporte para Safari */

    border-bottom:1px solid var(--border);

    box-shadow:0 2px 8px rgba(0,0,0,0.05);

    z-index:1100;
}


/* CONTENEDOR */

.nav-container{

    width:100%;
    max-width:1300px;

    margin:auto;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 20px;
}


/* CONTENEDOR DEL LOGO */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* MARCO ANIMADO */
.brand-logo {
    position: relative;
   
    display: block;
    padding: 3px; /* Grosor del borde */
    border-radius: var(--radius-lg);
    overflow: hidden; /* CRUCIAL: Recorta el gradiente que sobra */
    z-index: 1;
}

/* ANILLO DE COLORES */
.brand-logo::before {
    content: "";
    position: absolute;
    /* Hacemos que sea mucho más grande para que al rotar cubra todo */
    width: 200%; 
    height: 200%;
    top: -50%;
    left: -50%;
    
    background: conic-gradient(
        #00C598,
        #00e1ff,
        #7c4dff,
        #ff2bd6,
        #ff6a00,
        #00C598
    );
    animation: giroLogo 4s linear infinite;
    z-index: -2;
}

/* FONDO PARA QUE SOLO SE VEA EL BORDE */
.brand-logo::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* IMAGEN */
.brand-logo img {
    height: 46px;
    display: block;
    border-radius: var(--radius-lg);
    z-index: 2;
}

/* ANIMACION */
@keyframes giroLogo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}





.brands{
    overflow:hidden;
    padding:10px 0;
    background:var(--bg-card);
    margin:4px 0.4%;
    border-radius:var(--radius-md);
    white-space:nowrap;
}

.track{
    display:flex;
    align-items:center;
    gap:80px;
    animation:scroll 25s linear infinite;
}

.track img{
    height:70px;
    filter:grayscale(1);
    opacity:0.5;
    transition:var(--transition);
}

.track img:hover{
    filter:grayscale(0);
    opacity:1;
}

[data-theme="dark"] .track img{
    filter:grayscale(1) invert(1);
}

@keyframes scroll{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-50%);
    }
}



/* MENU LINKS */

.nav-menu{


    display:flex;

    align-items:center;

    list-style:none;

    gap:8px;

    margin:0;
}

/* acciones derecha */

.nav-actions{

    display:flex;

    align-items:center;

    gap:12px;

}

/* botón usuario */

.btn-user{

    background:none;

    border:none;

    font-size:1.5rem;

    cursor:pointer;

    color:var(--text-main);

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

    width:38px;
    height:38px;

    border-radius:var(--radius-lg);

    transition:0.2s;

}

.btn-user:hover{

    background:rgba(37,99,235,0.08);

    color:var(--primary);

}


/* LINKS */

.nav-link{


    text-decoration:none;

    color:var(--text-muted);

    font-weight:500;

    padding:10px 18px;

    border-radius:var(--radius-md);

    display:flex;
    align-items:center;

    gap:8px;

    transition:.2s;
}

.nav-link:hover{

    color:var(--primary);

    background:rgba(37,99,235,0.05);
}

.nav-link.active{

    background:var(--primary);

    color:#fff;
}


/* BOTON MENU */

.menu-toggle{

    display:none;

    background:none;

    border:none;

    font-size:1.4rem;

    color:var(--text-main);

    cursor:pointer;
}



/* ==========================================================================
   MÓDULO 6: RESPONSIVE (Móvil - Derecha + Glassmorphism)
   ========================================================================== */
@media (max-width: 850px){

    /* botón hamburguesa */
    .menu-toggle{
        display:block;
        position:relative;
        z-index:1200; /* siempre arriba */
    }

    /* SIDEBAR / MENÚ */
    .nav-menu{

        position:fixed;

        top:var(--nav-height); /* evita tapar navbar */

        right:-280px; /* oculto */

        width:280px;

        height:calc(100vh - var(--nav-height));

        display:flex;
        flex-direction:column;

        padding:25px 20px;

        gap:8px;

        overflow-y:auto;

        /* efecto glass */
        background:rgba(255,255,255,.85);
        backdrop-filter:blur(12px);
        -webkit-backdrop-filter:blur(12px);

        border-left:1px solid var(--border);

        box-shadow:-12px 0 30px rgba(0,0,0,.1);

        transition:var(--transition);

        z-index:1;
    }

    /* dark mode */
    [data-theme="dark"] .nav-menu{
        background:rgba(30,41,59,.9);
    }

    /* menú abierto */
    .nav-menu.open{
        right:0;
    }

    /* links */
    .nav-link{

        width:100%;

        padding:14px 16px;

        font-size:1rem;

        display:flex;
        align-items:center;

        border-radius:var(--radius-md);

        justify-content:flex-start;
    }

    /* overlay */
    .overlay{

        position:fixed;

        top:0;
        left:0;

        width:100%;
        height:100%;

        background:rgba(0,0,0,.35);

        backdrop-filter:blur(3px);

        opacity:0;
        pointer-events:none;

        transition:.3s;

        z-index:2;
    }

    .overlay.active{

        opacity:1;
        pointer-events:auto;
    }

}