/* ESTILOS GENERALES DEL CUERPO */
body {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #f8f9fa;
    overflow-x: hidden;
    background-color: #121212;
}

/* ESTRUCTURA PRINCIPAL */
.d-flex {
    display: flex;
}

/* BARRA LATERAL (SIDEBAR) */
.sidebar {
    width: 250px;
    min-height: 100vh;
    background-color: #0b1a2b;
    color: #f8f9fa;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.sidebar .profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #26c6da;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar h3 {
    font-weight: 600;
}

.sidebar .nav-link {
    color: #e0e0e0;
    padding: 1rem 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #26c6da;
}

/* CONTENIDO PRINCIPAL */
.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
}

/* SECCIÓN PRINCIPAL (HERO) */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../multimedia/ser.jpg'); 
    background-size: cover;
    background-position: center;
    height: 110vh;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: bold;
    color: #ffffff;
}

/* SECCIONES SECUNDARIAS */
main.container {
    background-color: #1a1a1a;
    border-radius: 10px;
    margin-top: -50px;
    position: relative;
    z-index: 1;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* ESTILOS DE LAS TARJETAS (HABILIDADES, PROYECTOS) */
.card {
    background-color: rgba(255, 255, 255, 0.08);
    color: #f8f9fa;
    border-radius: 10px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card .text-muted {
    color: #a0a0a0 !important;
}

/* ESTILOS DE LA LÍNEA DE TIEMPO (FORMACIÓN) */
.timeline {
    position: relative;
    padding: 20px 0;
    margin-top: 20px;
    border-left: 2px solid #26c6da;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 5px;
    width: 15px;
    height: 15px;
    background-color: #26c6da;
    border-radius: 50%;
}

.timeline h5 {
    color: #ffffff;
    font-weight: 600;
}

.timeline p {
    color: #e0e0e0 !important;
}

/* ESTILOS DEL PIE DE PÁGINA (FOOTER) */
#contacto {
    background-color: #171718 !important;
}

.social-links-footer a {
    transition: transform 0.3s ease;
}

.social-links-footer a:hover {
    transform: scale(1.2);
    color: #26c6da !important;
}

/* COLORES ADICIONALES PARA ICONOS Y BOTONES */
.text-primary, .text-success, .text-info {
    color: #26c6da !important;
}

.btn-primary {
    background-color: #26c6da;
    border-color: #26c6da;
    color: #121212;
}
.btn-primary:hover {
    background-color: #53e0f0;
    border-color: #53e0f0;
}

/* --- ESTILOS PARA EL MENÚ DE HAMBURGUESA --- */
/* Oculta el checkbox */
#menu-toggle {
    display: none;
}

/* Estilos del ícono de hamburguesa */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    cursor: pointer;
    font-size: 1.8rem;
    color: #fff;
    background-color: #0b1a2b;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none; /* Oculto por defecto en escritorio */
    transition: all 0.3s ease;
}

/* Efecto de rotación al hacer clic */
#menu-toggle:checked + .hamburger-menu .fa-bars {
    transform: rotate(90deg);
}

/* --- MEDIA QUERIES PARA ADAPTAR A DISPOSITIVOS MÓVILES --- */
@media (max-width: 992px) {
    /* Muestra el ícono de hamburguesa en pantallas pequeñas */
    .hamburger-menu {
        display: block;
    }
    
    /* Oculta la barra lateral por defecto */
    .sidebar {
        position: fixed;
        top: 0;
        left: -250px; /* La barra se esconde fuera de la pantalla */
    }

    /* Muestra la barra lateral cuando el checkbox está marcado */
    #menu-toggle:checked ~ .d-flex .sidebar {
        transform: translateX(250px);
    }

    /* El contenido principal ocupa todo el ancho */
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}