/* Variables CSS */
:root {
    /* --- Fondos y Textos --- */
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-secondary: #dddddd;
    --nav-bg: #000000;
    --sidebar-bg: rgba(0, 0, 0, 0.95);

    /* --- Paleta de colores --- */
    --accent-color: #f47411;      /* Naranja DCnet */
    --accent-green: #9cd84d;      /* Verde nuevo */
    --accent-green-dark: #145a00;      /* Verde oscuro nuevo */
    --accent-yellow-dark: #f3cb03; /* Amarillo oscuro*/
    --accent-yellow-light: #ffe00d;/* Amarillo claro*/
    --accent-green-text: #9cd84d; /* Verde para textos*/

    /* --- Botones --- */
    --btn-primary-bg: var(--accent-color);
    --btn-primary-text: #ffffff;
    --btn-border: var(--accent-color);
    --btn-secondary-bg: transparent;
    --btn-secondary-text: var(--accent-yellow-dark);

    /* --- Degradados genericos --- */
    --gradient-naranja-amarillo: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-yellow-dark) 100%);
    --gradient-amarillo-verde: linear-gradient(135deg, var(--accent-yellow-light) 0%, var(--accent-green) 100%);

    --shape-opacity: 0.11;
    color-scheme: light dark;
}

img, 
.logo, 
.logo-dark, 
.logo-light {
    color-scheme: only light !important; 
}

html {
    overflow-x: hidden;
    width: 100%;
    scrollbar-gutter: stable;
}


body {
    background-color: var(--bg-color);
    color: var(--text-color);
    
    width: 100%;
    overflow-x: hidden; 
    position: relative;
}

/* --- Colores Modo Claro --- */
body.light-mode {
    --bg-color: #f4f4f4;        /* Blanco humo (menos agresivo que el blanco puro) */
    --text-color: #1a1a1a;      /* Negro suave */
    --text-secondary: #333333;
    --nav-bg: #ffffff;          /* Barra de navegación blanca */
    --sidebar-bg: rgba(255, 255, 255, 0.98);

    /* Colores para que resalten en fondo blanco */
    --btn-border: #000000;
    --btn-primary-bg: #000000;
    --btn-primary-text: #fff;
    --btn-secondary-text: #000000;
    --accent-green-text: #145a00;
    --accent-yellow-dark: #dab500;
    --shape-opacity: 0.3;   
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    /* Transicion al cambiar de tema */
    transition: background-color 0.3s, color 0.3s; 
}




/* ===== Navbar ===== */
header {
    width: 100%;
    height: 90px;
    background: var(--nav-bg);
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Sombra sutil para el modo claro */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 100px;   
    height: auto;    
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center; /* Alinea verticalmente los items */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

/* En modo claro, enlaces oscuros*/
body.light-mode .nav-links a {
    color: #555;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--accent-green) !important;
}

/* Botón Switch de Tema */
.theme-switch {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    padding: 8px;
    border-radius: 50%;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-switch:hover {
    color: var(--accent-color);
    background: rgba(128, 128, 128, 0.1);
}

.contenido-principal {
    padding-top: 120px; 
    min-height: 100vh;
    position: relative;
}
@media (max-width: 992px) {
    .contenido-principal {
        padding-top: 120px !important; /* El banner ya ocupa su espacio, no necesitamos tanto padding aquí */
        min-height: 100vh;
    }
}

/* ===== Hero Section ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    
}

.separador{
    height: 15vh;
}

@media (max-width: 992px) {
    .separador {
        height: 40px !important; /* Reduce el hueco drásticamente */
    }
}

.hero-content {
    width: 55%;
}

.hero-content .intro {
    font-size: 1.1rem;
    text-align: left; 
    color: var(--text-secondary);
}

.hero-content .name {
    color: var(--accent-yellow-dark); /* CAMBIO: Título principal en Amarillo oscuro */
    font-weight: 600;
}

.hero-content h1 {
    font-size: 3rem;
    margin: 10px 0;
    color: var(--text-color);
}

.highlight {
    color: var(--accent-green-text); 
    border-right: 3px solid var(--accent-color);
    white-space: nowrap;
    overflow: hidden;
}

/* Texto descriptivo */
.hero-content .description {
    color: var(--text-secondary); /* Antes #aaa */
    line-height: 1.7;
    margin-top: 10px;
    max-width: 500px;
}

/* ===== Buttons ===== */
.buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    border: 2px solid var(--btn-border);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn.primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn.secondary {
    background: transparent;
    color: var(--btn-secondary-text);
}

.btn:hover {
    transform: scale(1.05);
}

/* ===== Social Icons ===== */
.social-icons {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: #ffffff; 
    font-size: 1.3rem;
    background: #111;
    padding: 12px;
    border-radius: 50%;
    transition: 0.3s;
}
/* En modo claro, oscurecemos el fondo de los iconos para que resalten */
body.light-mode .social-icons a {
    background: #e0e0e0;
    color: #000;
}

.social-icons a:hover {
    background: linear-gradient(135deg, var(--accent-yellow-light) 35%, var(--accent-green) 65%);
    color: #fff;
}

body.light-mode .social-icons a:hover {
    background: linear-gradient(135deg, var(--accent-yellow-light) 35%, var(--accent-green) 65%);
    color: #fff;
}

/* ===== Hero Image ===== */
.hero-image {
    position: relative;
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle {
    width: 420px;
    height: 430px;
    border-radius: 50%;
    box-shadow: 0 0 30px var(--accent-color);
}

.circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Play Button */
.play-btn {
    position: absolute;
    right: -40px;
    font-size: 3rem;
    color: var(--accent-color);
    cursor: pointer;
    transition: 0.3s;
}

.play-btn:hover {
    color: #00FFF0;
}


/* ===== Responsive ===== */
@media (max-width: 992px) {

.hero {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding-top: 130px;
    }


}


.hamburger-menu {
    display: none;
    width: 35px;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 2001;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color); /* Se adapta al tema */
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animación en “X” */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Desktop */
@media (min-width: 993px) {
    
    .hamburger-menu {
        display: none !important;
    }

    .nav-links {
        position: static;
        background: none;
        flex-direction: row;
        height: auto;
    }

    .overlay {
        display: none !important;
    }

    .sidebar-logo, .sidebar-hamburger {
        display: none;
    }
}



/* ===== Ajustes para móviles ===== */
@media (max-width: 992px) { 


    .hero-image {
        display: none;
    }

    /* Centrar las redes sociales */
    .social-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
    }

    .social-icons a i {
        font-size: 1.5rem; 
    }

    /* Ajuste del hero-content */
    .hero-content {
        text-align: center;
    }


    .contenido-principal {
        padding-top: 90px; 
    }

    /* ASEGURA EL ANCHO DEL CONTENEDOR */
    .container {
        width: 100%;
        padding: 0 20px;
    }

    .hamburger-menu {
        display: flex;
        margin-right: 10px; 
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        display: flex;
        background: var(--sidebar-bg); /* Usa variable */
        backdrop-filter: blur(10px);
        
        padding: 60px 20px 80px;
        gap: 25px;
        transition: right 0.4s ease;
        z-index: 2000;
        overflow-y: auto; /* Permite scroll si hay muchas opciones */
    }
    
    .nav-links.sidebar-active {
        right: 0;
    }

    .nav-links li {
        text-align: center;
    }

    .nav-links li a {
        color: var(--text-color); /* Se adapta al tema */
        font-size: 1.2rem;
    }
    
    /* En modo claro, el sidebar necesita textos oscuros */
    body.light-mode .nav-links li a {
        color: #000;
    }

/* Dentro de @media (max-width: 992px) */

.sidebar-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    padding-top: 20px;
}

/* === CONFIGURACIÓN LOGO MODO OSCURO (logo13) === */
/* style.css - Dentro de @media (max-width: 992px) */

.logo-dark {
    display: block;
    width: 150px;
    height: 170px;
    object-fit: contain;
    
    margin-top: -50px; 
    
    margin-bottom: -55px; 
    
}

/* === CONFIGURACIÓN LOGO MODO CLARO (logo_dark) === */
.logo-light {
    display: none;         /* Oculto por defecto */
    width: 150px;          /* TAMAÑO PEQUEÑO para el logo cuadrado */
    height: 65px; 
    object-fit: contain;
}

/* === INTERCAMBIO AUTOMÁTICO === */
/* Cuando el body tiene la clase "light-mode"... */

body.light-mode .logo-dark {
    display: none;  /* Ocultamos el logo ancho */
}

body.light-mode .logo-light {
    display: block; /* Mostramos el logo cuadrado */
}

    /* Ícono hamburguesa dentro del sidebar (parte inferior) */
    .sidebar-hamburger {
        position: absolute;
        bottom: 100px; 
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .hamburger-menu.hide {
        display: none !important;
    }

    #hamburger-sidebar {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 35px;
        height: 25px;
        cursor: pointer;
    }

    #hamburger-sidebar span {
        background-color: var(--text-color);
        height: 3px;
        border-radius: 3px;
    }

    /* Overlay */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 1500;
    }

    .overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    /* Ajustes específicos para el hero */
    .hero {
        flex-direction: column; 
        text-align: center; 
    }

    .hero-content {
        width: 100%; 
    }

    .buttons {
        justify-content: center; 
    }
}



/* =========================================
   ESTILOS PARA EL MENÚ DESPLEGABLE (DROPDOWN)
   ========================================= */

/* Contenedor del item (LI) */
.dropdown-item {
    position: relative;
    display: inline-block;
}

/* El menú oculto (UL) */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; /* Justo debajo del enlace */
    left: 0;
    background-color: var(--nav-bg); /* Fondo del tema actual */
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 2000;
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Enlaces dentro del dropdown */
.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s;
}


/* Hover en las opciones: Fondo Naranja y TEXTO NEGRO */
.dropdown-menu li a:hover {
    background-color: var(--accent-green); /* Fondo Naranja */
    color: #000000 !important; /* Texto NEGRO para máximo contraste */
    font-weight: 600; /* Un poco más grueso para que se lea mejor */
}


/* MOSTRAR EL MENÚ AL PASAR EL MOUSE (DESKTOP) */
.dropdown-item:hover .dropdown-menu {
    display: block;
}

/* AJUSTES PARA MODO CLARO */
body.light-mode .dropdown-menu {
    border: 1px solid #ddd;
    background-color: #fff;
}
body.light-mode .dropdown-menu li a {
    color: #333;
}
body.light-mode .dropdown-menu li a:hover {
    color: #fff;
}

/* =========================================
   AJUSTES RESPONSIVE (MÓVIL / SIDEBAR)
   ========================================= */
@media (max-width: 992px) {
    /* En el sidebar, el dropdown no debe flotar, debe estar integrado */
    .dropdown-item {
        width: 100%;
        text-align: center;
    }

    .dropdown-menu {
        position: relative; /* Ya no flota */
        display: none; /* Oculto por defecto, require JS o CSS click */
        top: 0;
        width: 100%;
        box-shadow: none;
        background-color: transparent;
        border: none;
        padding-top: 5px;
    }
    
    /* Mostrar siempre en móvil para simplificar, o usar hover */
    .dropdown-item:hover .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 10px;
        font-size: 1rem;
        color: var(--text-secondary); /* Color más suave */
    }
    
    .dropdown-menu li a:hover {
        background: transparent;
        color: var(--accent-green);
    }
}

.forma-fondo-index {
    position: absolute;
    top: 0;
    right: 0;
    width: 57%; 
    height: 100%; 
    
    background: linear-gradient(135deg, var(--accent-green) 30%, var(--accent-yellow-dark) 70%);
    
    opacity: var(--shape-opacity); 
    
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%);
    
    z-index: -1; 
    pointer-events: none; 
    will-change: transform;
}

body.light-mode .forma-fondo-index {
    opacity: var(--shape-opacity); 
}



/* Responsividad: Ocultar o reducir en móviles para no manchar el diseño */
@media (max-width: 768px) {
    .forma-fondo-index {
        width: 70%;
        height: 100%;
        opacity: 0.08;
    }
    body.light-mode .forma-fondo-index {
        opacity: 0.04; 
    }
}
