:root {
    /* COLORES QUE NO CAMBIAN (Identidad) */
    --azul-gradiente: #0033FF;
    --azul-oscuro: #0600AB;
    --blaco-gradiente: #F2E6EE; /* Tu rosa/blanco de fondo actual */
    
    /* COLORES QUE SÍ CAMBIAN */
    --bg-dinamico: #F2E6EE;      /* Fondo de las secciones */
    --texto-dinamico: #0033FF;  /* Texto que ahora es azul oscuro/negro */
    --sidebar-bg: #0033FF;      /* Fondo del sidebar */
    --texto-sidebar: #F2E6EE;
    --fondo-modulo: #0033FF;
    --fondo-invertido: #1f1e1e;
    --fondo-invertido2: #1f1e1e;
    --fondo-barra: #0033FF;


    /* Estructura constante */
    --sidebar-width: 65px;
    --expanded-width: 33.33vw;
    --transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

body.dark-mode {
    --bg-dinamico: #1f1e1e;      /* El fondo rosa/blanco pasa a ser negro */
    --texto-dinamico: #FFFFFF;   /* El texto oscuro pasa a ser blanco */
    --sidebar-bg: #121212;       /* Sidebar oscuro */
    --texto-sidebar: #121212;
    --fondo-modulo:rgba(255,255,255,0.1);
    --fondo-invertido: #F2E6EE;
    --fondo-barra: rgb(37, 37, 37);
    --fondo-invertido2: #0033FF;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dinamico);
    color: var(--texto-dinamico);
    transition: background-color 0.4s ease, color 0.4s ease;
    display: flex;
    overflow-x: hidden;
}

/* --- SIDEBAR --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--blaco-gradiente)!important;
    display: flex;
    z-index: 1000;
    transition: var(--transition);
    overflow: hidden;
}

.sidebar.active {
    width: var(--expanded-width);
    box-shadow: 10px 0 30px rgba(0,0,0,0.05);
}

/* Franja de activación */
.sidebar-trigger {
    min-width: var(--sidebar-width);
    background-color: var(--fondo-barra); /* Tu azul oscuro */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Distribuye arriba, centro y abajo */
    padding: 30px 0;
    height: 100vh;
}

.social-list {
    list-style: none;
    padding: 40px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-list li a {
    color: var(--blanco); /* Tu blanco gradiente */
    transition: transform 0.3s, color 0.3s;
    display: block;
}

.social-list li a:hover {
     /* Un azul cyan para el hover tecnológico */
    transform: scale(1.2);
    
   


}

.social-list svg {
    width: 20px; /* Tamaño ajustado a la franja de 65px */
    height: 20px;
}

.logo-small {
    margin-bottom: 40px;
}

.logo-small a {
    text-decoration: none !important; /* Quita el subrayado */
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--blanco); /* Usa tu variable blanca */
    display: inline-block;
    transition: 0.3s;
}

.logo-small a:hover {
    
    transform: scale(1.1);
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 30px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #F2E6EE;
    
    margin: 5px auto;
    transition: 0.3s;
}

.close-x {
    display: none;
    font-size: 2.5rem;
    color: #F2E6EE;
    line-height: 30px;
}

.sidebar.active .hamburger { display: none; }
.sidebar.active .close-x { display: block; }

/* Contenido desplegable */
.sidebar-content {
    padding: 60px 40px;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--blaco-gradiente) !important;
    background-color: var(--fondo-barra);
}

.sidebar.active .sidebar-content {
    opacity: 1;
}



.nav-links {
    list-style: none;
    padding: 0;
    margin: 200px 0;
    margin-left: 25%;
    margin-right: -25%;
    gap: 5px;
}

.nav-links button{
    padding: 10px;
    width: 45%;
    height: 25%;
    margin-left: -4%;
    border-radius: 20px 10px;
    background-color: transparent;
    border: 2px solid var(--blaco-gradiente);
    color: var(--blaco-gradiente);
    font-size: 20px;
    transition: 0.3s;

}
.nav-links button:hover{

    margin-top: 5px;
    background-color: var(--blaco-gradiente) ;
    color: var(--azul-gradiente);

}


.nav-links li { margin-bottom: 20px; }

.nav-links a {
    text-decoration: none;
    color: var(--blaco-gradiente);
    font-size: 1.2rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--blanco); padding-left: 10px; }

/* --- MAIN CONTENT --- */
#main-content {
    
    width: 100%;
   
    min-height: 100vh;
    transition: var(--transition);
}

/* Clase que aplicaremos al main cuando el sidebar esté abierto */
#main-content.blur-effect {
    filter: blur(3px);
    transition: filter 0.3s ease;
    pointer-events: none; /* Evita que el usuario haga clic en el contenido mientras está borroso */
}

.btn-text{
    background-color: var(--blanco-gradiante);
    color: var(--azul-gradiente);
    border-radius: 0px;
    border: 2px solid var(--azul-gradiente) ;
    padding: 0.5%;
    transition: 0.3s ease;

}

.btn-text:hover{
    background-color: var(--azul-gradiente);
    color: var(--blaco-gradiente);
    margin-top: 0.3%;
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(252, 189, 236, 0.4);
    backdrop-filter: blur(2px);
    /* Compatibilidad para navegadores antiguos (Safari) */
    -webkit-backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--blanco);
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
}

/* --- MODAL CONTACTO TECH --- */
.modal-content.contact-tech {
    background: var(--fondo-barra); /* Fondo azul intenso de la referencia */
    backdrop-filter: blur(10px);
    color: white;
    padding: 50px;
    border-radius: 0; /* Diseño cuadrado más moderno según referencia */
    max-width: 900px;
    position: relative;
    border: none;
    border-radius: 10px;
}

.contact-tech h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    font-weight: 800;
}

.tech-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Tres columnas como en la imagen */
    gap: 20px;
}

/* Ajuste para el textarea y campos largos */
.form-row:nth-child(2) {
    grid-template-columns: 1fr 2fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group-telefono {
    margin-top: -31%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: bold;
}

.tech-form input, 
.tech-form select, 
.tech-form textarea {
    
    border: none;
    padding: 12px;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 4px;
}

.tech-form textarea {
    resize: none;
}

/* Botón estilo píldora blanca */
.btn-enviar {
   
    color: var(--azul-gradiente);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    text-transform: uppercase;
}

.btn-enviar:hover {
    transform: scale(1.05);
    background: var(--blaco-gradiente);
}

.form-footer {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
}

.form-footer p {
    font-size: 0.7rem;
    margin: 0;
}

/* Botón cerrar blanco */
.close-modal {
    color: var(--blanco-gradiante);
    font-size: 2.5rem;
    position: absolute;
    top: 20px;
    right: 25px;
    cursor: pointer;
}

.dark-mode-toggle{

    position: 'fixed';
        bottom: '20px';
        right:  '80px';
        zIndex: '1000';
        padding: '10px';
        borderRadius: '50%';
        cursor: 'pointer';
        border: '1px solid rgba(255,255,255,0.1)';
        background: 'rgba(255,255,255,0.1)';
        color: 'white';
        transition: 0.3s ease;

}
.dark-mode-toggle:hover{

    background-color: var(--fondo-invertido) !important;
    transform: scale(1.05);
}


/* --- ESTILOS DEL EASTER EGG (PONG) --- */
#pong-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Se pone por detrás de tus menús para no molestar */
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none; /* Por defecto no interfiere */
}

#pong-canvas.activo {
    opacity: 1;
    z-index: 50; /* Se pone por delante para poder jugar */
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.85); /* Fondo oscuro para contraste */
}

/* Efecto al ganar los 10 puntos */
.sidebar.victoria-pong {
    background: linear-gradient(135deg, #FFD700, #FF8C00) !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    transition: all 0.5s ease;
}


/* --- BOTÓN SECRETO PONG (PÍXEL ANÓMALO) --- */
#secret-pong-btn {
    position: absolute;
    bottom: 20px;
    right: 20px; /* Se queda en la esquina inferior derecha de la barra */
    width: 8px;
    height: 8px;
    background-color: var(--fondo-invertido2);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 70;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: transparent;
    font-weight: bold;
    font-size: 0px;
}

/* Al pasar el ratón, se convierte en la paleta del Pong y muestra texto */
#secret-pong-btn:hover {
    opacity: 1;
    width: 60px;
    height: 24px;
    border-radius: 12px;
    color: white;
    font-size: 11px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 51, 255, 0.4);
}

#secret-pong-btn:hover::after {
    content: "PONG";
}

/* Ocultar el botón cuando el juego está activo */
#pong-canvas.activo ~ #secret-pong-btn {
    display: none;
}

