/*Cortina.hmtl*/

html {
    scroll-padding-top: 100px;  
}

body { 
    margin: 0; 
    font-family: Arial, sans-serif; 
    background: #000;          /* o el color oscuro que uses */
    overflow-x: hidden; 
}

.curtain-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.curtain-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, #49273F);
    z-index: 5;  
    transition: transform 1s ease-out;
}

.left { left: 0; transform: translateX(-100%); }
.right { right: 0; transform: translateX(100%); }

#toggle:checked ~ .curtain-panel.left { transform: translateX(0); }
#toggle:checked ~ .curtain-panel.right { transform: translateX(0); }

#toggle:not(:checked) ~ .curtain-panel.left { 
    transform: translateX(-100vw); 
}
#toggle:not(:checked) ~ .curtain-panel.right { 
    transform: translateX(100vw); 
}


.title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;  
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.title-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.title-overlay h1 {
    font-family: "Cinzel", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    letter-spacing: 5px;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    margin-bottom: 30px;
    font-size: 5em;      
    line-height: 1.1;     
}

.title-overlay button {
    padding: 18px 40px;
    font-size: 20px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.title-overlay button:hover {
    background: #77080E;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

.content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.content iframe { 
    width: 100%; 
    height: 100%; 
}

.snow, .snow2 {
    position: fixed;       
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;  
    z-index: 15;           
}

.snow {
    background-image: url('../Images/snow.png');  
    background-size: 70em;
    animation: snowfall 30s linear infinite;
}

.snow2 {
    background-image: url('../Images/snow.png');  
    background-size: 50em;
    animation: snowfall2 30s linear infinite;
    opacity: 0.5;
}

@keyframes snowfall {
    100% { background-position: 70em 70em; }
}

@keyframes snowfall2 {
    100% { background-position: 50em 0; }
}


.curtain-container.opened .snow,
.curtain-container.opened .snow2 {
    display: none;
}

/*Index.html*/

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: Arial, sans-serif; 
    line-height: 1.6; 
    color: #333; 
}

/* NAVBAR */

.navbar {
    background: rgb(20, 19, 19);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 3rem;        
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    transition: all 0.4s ease;
    height: 20vh !important;       
    min-height: 20vh !important;
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}


.navbar.scrolled {
    background: rgba(20, 19, 19, 0.15);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    height: 20vh !important;       
}

.logo-center, .logo-imagen, .nav-btn {
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}



/* LOGO + ESLOGAN IZQUIERDA */

.logo-center {
    display: flex;
    flex-direction: column;     
    align-items: center;        
    text-align: center;
}

.logo-center h1 {
    font-family: "Cinzel", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    letter-spacing: 5px;
    font-size: 2.5em;
    margin: 0;
    background: #b40d15;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-imagen {
    display: flex;           
    position: relative;  
    justify-content: center; 
    align-items: center;    
    width: 150px;
    height: 150px;
}

.logo-imagen img {
    opacity: 0;              
    transition: opacity 0.3s ease;  
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.logo-imagen:hover img {
    opacity: 1;              
}

.logo-Slogan {  
    font-family: "Bodoni Moda", serif;
    font-weight: 600;
    font-style: italic;
    font-size: 1.5em;
    margin: 0.2rem 0 0 0;  
    color: #ccc;
}


/* BOTONES DERECHA - ALINEADOS AL CENTRO */

.nav-buttons {
    font-family: "Bodoni Moda", serif;
    font-weight: 600;
    font-style: normal;
    font-size: 1.3em;
    display: flex;
    justify-content: flex-end;
    align-items: center;        
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.nav-btn {
    display: block;
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;     
    overflow: hidden;       
}

.nav-btn:hover {
    transform: translateY(-3px);
}

.nav-btn.active {
    position: relative;
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 100% !important;
    height: 5px;
    background: linear-gradient(90deg, #a10d0d, #b10c0c, #a10d0d); /* ← Dorado BRILLANTE */
    transform: translateX(-50%);
    border-radius: 3px;
    box-shadow: 
        0 4px 15px rgba(139, 7, 7, 0.8),    /* Glow dorado */
        0 0 25px rgba(122, 6, 6, 0.6);      /* Halo intenso */
    border: 1px solid rgba(199, 15, 15, 0.9);
}
/* En navbar transparente */
.navbar.scrolled .nav-btn.active::after {
    height: 3px;
    bottom: -3px;
}

/*Contenido Principal*/

.contenedores{
    min-height: 100vh;  
    display: flex;
    flex-direction: column;
}

.quien-soy {
    position: relative;
    background-image: url('../Images/quien_soy.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.quien-soy::before {
     content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 25, 0.75); 
    z-index: 1;
}


.quien-soy > * {
    position: relative;
    z-index: 2;
}

.contenido {
    display: flex;              
    align-items: center;        
    gap: 3rem;                  
    max-width: 1200px;
    margin: 0 auto;
}

.Titulos_seccion{
    font-family: "Cinzel", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    letter-spacing: 5px;
    font-size: 2.5em;
    padding-bottom: 40px;
}

.contenido p{
    font-family: "Bodoni Moda", serif;
    font-weight: 300;
    font-style: normal;
    font-size: 1.5em;
}

.quien-soy .imagen-hover{
    display: flex;
    justify-content: left;
}

.imagen-hover {
    position: relative;
    width: 400px;  
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-right: 50px;  
}

.img-original {
    position: absolute;
    width: 400px;
    height: 400px;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.img-hover {
    position: absolute;
    width: 400px;
    height: 400px;
    opacity: 0;           
    transition: opacity 0.3s ease;
    z-index: 1;
}

.imagen-hover:hover .img-original {
    opacity: 0;           
}

.imagen-hover:hover .img-hover {
    opacity: 1;           
}

/* Estilos para Gustos */

.gustos {
    position: relative;
    background-image: url('../Images/Pasatiempos.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  
    padding: 2rem;       
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.gustos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 25, 0.75);
    z-index: 1;
}

.gustos > * {
    position: relative;
    z-index: 2;
}

.contenido2 {
    display: flex;                   
    gap: 2rem;                       
    justify-content: center;         
    max-width: 1200px;
    margin: 2rem auto 0;
    flex-wrap: wrap;                 
}

.Panel {
    flex: 1;                         
    min-width: 280px;                
    max-width: 350px;
    background: rgba(255, 255, 255, 0.15);  
    backdrop-filter: blur(10px);     
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;       
    text-align: center;
}

.Panel:hover {
    transform: translateY(-15px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);  
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.Panel h3 {
    font-family: "Bodoni Moda", serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.Panel img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.Panel:hover img {
    transform: scale(1.1);  
}

.Panel p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
}

/* Estilos para Videojuegos */

.videojuegos {
    position: relative;
    background-image: url('../Images/Videojuegos.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  
    padding: 2rem;       
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.videojuegos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 25, 0.75);
    z-index: 1;
}

.videojuegos > * {
    position: relative;
    z-index: 2;
}

.panel-lista {
    list-style: none;
    padding: 0;
    margin: 3rem 0;      
    max-width: 1000px;   
}

.panel-item {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;         
    padding: 2.5rem 2rem; 
    margin-bottom: 2rem; 
    background: rgba(255,255,255,0.15);
    border-radius: 25px; 
    transition: all 0.4s ease;
    border-left: 6px solid #b40d15; 
    min-height: 180px;
    width: 450px;   
}

.panel-icon {
    width: 90px;         
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 4px solid rgba(255,255,255,0.4); 
    margin-top: 0.5rem;
}

.panel-texto {
    flex: 1;
}

.panel-texto h3 {
    font-size: 1.8rem;   
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
}

.panel-texto p {
    font-size: 1.2rem;   
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
}

.panel-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-20px) scale(1.02); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.seccion-doble {
    display: flex;              
    gap: 12rem;                  
    max-width: 1400px;
    margin: 0 auto;
}

.panel-lista {
    flex: 1;                    
    list-style: none;
    padding: 0;
    margin: 0;
}

.sagas_favoritas {
    flex: 1;                    
    display: flex;
    gap: 2rem;
}

.columna-derecha {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.titulo-sagas {
    font-family: "Bodoni Moda", serif;
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin: 0 0 1rem 0;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.3);
}

.sagas_favoritas {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;  
    gap: 1.5rem;                     
    align-items: start;              
}

/* Estilos para Redes Sociales */

.Redes {
    padding: 5rem 3rem;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    text-align: center;

    position: relative;
    background-image: url('../Images/Redes.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  
    padding: 2rem;       
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.Redes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 25, 0.75);
    z-index: 1;
}

.Redes > * {
    position: relative;
    z-index: 2;
}

.carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    border-radius: 25px;
}

.slide-info {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(15px);
    padding: 2rem 3rem;
    border-radius: 20px;
    border: 2px solid rgba(180,13,21,0.3);
    color: white;
    text-align: center;
}

.slide-info h3 {
    font-family: "Cinzel", serif;
    font-size: 2.5em;
    margin: 0 0 0.5rem;
    color: #b40d15;
}

.slide-info p {
    font-size: 1.3em;
    margin: 0;
    opacity: 0.9;
}

/* Flechas */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(180,13,21,0.9);
    backdrop-filter: blur(20px);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2em;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: #b40d15;
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 2rem; }
.next { right: 2rem; }

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: #b40d15;
    transform: scale(1.3);
}

/* Estilos para Footer */

footer {
    font-family: "Cinzel", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-size: 1.2rem;
    background: #333;
    margin-top: auto;
    color: white;
    text-align: center;
    padding: 1.5rem;
}

.quien-soy::before {
    background: rgba(20, 20, 25, 0.95) !important; 
    backdrop-filter: none !important;              
    -webkit-backdrop-filter: none !important;
}

.gustos::before,
.videojuegos::before,
.Redes::before
.proyectos::before {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/*Estilos para Proyectos*/

.proyectos {
    position: relative;
    background-image: url('../Images/Proyecto.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    color: white;
    text-align: center;
}

.proyectos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 25, 0.85);
    z-index: 1;
}

.proyectos > * {
    position: relative;
    z-index: 2;
}

.gato_chambeador {
    flex: 1;
    display: flex;
    justify-content: center;
}

.gato_chambeador img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gato_chambeador:hover img {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 35px 70px rgba(180,13,21,0.3);
}

.leyenda {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.leyenda p {
    font-family: "Bodoni Moda", serif;
    font-weight: 300;
    font-size: 1.4rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    max-width: 500px;
}

.boton_git {
    padding: 18px 45px;
    font-family: "Cinzel", serif;
    font-weight: 600;
    font-size: 1.3rem;
    background: linear-gradient(45deg, #b40d15, #ff4757);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 15px 35px rgba(180,13,21,0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.boton_git::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.boton_git:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 50px rgba(180,13,21,0.6);
    background: linear-gradient(45deg, #a10712, #ff384e);
}

.boton_git:hover::before {
    left: 100%;
}

.boton_git:active {
    transform: translateY(-2px) scale(1.02);
}

/*Responsive*/

@media (max-width: 768px) {
    .logo-center h1 {
        font-size: 1.5rem;
    }
    
    .nav-buttons {
        gap: 1rem;
    }
    
    .nav-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .contenido {
        flex-direction: column; 
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .contenido2 {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .Panel {
        min-width: 100%;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {

    .title-overlay h1 {
        font-size: 3em;
    }

    .navbar {
        padding: 1rem 2rem;
        gap: 1rem;
    }
    
    .logo-center h1 {
        font-size: 2.2em;
        letter-spacing: 3px;
    }
    
    .nav-buttons {
        gap: 0.3rem;
        align-items: center;
        justify-content: center;
    }
    
    .nav-btn {
        padding: 10px 18px;
        font-size: 1em;
    }
    
    .contenido, .contenido2, .seccion-doble {
        flex-direction: column;
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .panel-item {
        width: 100%;
        flex-direction: column;
        text-align: center;
    }
    
    .sagas_favoritas {
        grid-template-columns: 1fr 1fr;
    }

    .panel-item{
        align-items: center;
        justify-content: center;
    }
}

/* Celulares grandes (481px - 767px) */
@media (max-width: 767px) {
    html {
        scroll-padding-top: 80px;
    }
    
    .navbar {
        padding: 0.8rem 1.5rem !important;
        flex-direction: column;
        gap: 0.5rem;
        height: 25vh !important; 
    }
    
    .logo-center h1 {
        font-size: 2em;
        letter-spacing: 2px;
    }
    
    .logo-imagen {
        width: 120px;
        height: 120px;
    }
    
    .logo-Slogan {
        font-size: 1.2em;
    }
    
    .nav-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-btn {
        padding: 8px 16px;
        font-size: 1em;
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    /* Secciones */
    .contenedores, .quien-soy, .gustos, .videojuegos, .Redes {
        padding: 2rem 1rem;
    }
    
    .imagen-hover {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
    
    .img-original, .img-hover {
        width: 280px;
        height: 280px;
    }
    
    .Panel {
        min-width: 250px;
        padding: 1.5rem;
    }
    
    .panel-item {
        flex-direction: column;
        padding: 1.5rem;
        min-height: auto;
        width: 100%;
    }
    
    .panel-icon {
        width: 70px;
        height: 70px;
    }
    
    .sagas_favoritas {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .carousel-slide img {
        height: 50vh;
    }
    
    .slide-info {
        bottom: 2rem;
        padding: 1.5rem 2rem;
    }
    
    .slide-info h3 {
        font-size: 2em;
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }
    
    .prev { left: 1rem; }
    .next { right: 1rem; }
}

/* Celulares pequeños (hasta 480px) */
@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 1rem !important;
        height: 28vh !important;
    }
    
    .logo-center h1 {
        font-size: 1.8em;
        letter-spacing: 1px;
    }
    
    .logo-imagen {
        width: 100px;
        height: 100px;
    }
    
    .nav-btn {
        padding: 10px 12px;
        font-size: 0.95em;
        min-width: 100px;
    }
    
    .Titulos_seccion {
        font-size: 2em;
    }
    
    .contenido p {
        font-size: 1.3em;
    }
    
    .Panel {
        padding: 1rem;
    }
    
    .Panel h3 {
        font-size: 1.5rem;
    }
    
    .carousel-section h2, .image-dash h2 {
        font-size: 2.5em;
    }
    
    .carousel-slide img {
        height: 40vh;
    }
    
    .slide-info h3 {
        font-size: 1.8em;
    }
    
    .title-overlay h1 {
        font-size: 2.5em;
    }
    
    .title-overlay button {
        padding: 15px 30px;
        font-size: 18px;
    }
}

/* Snow responsive */
@media (max-width: 767px) {
    .snow {
        background-size: 40em;
        animation-duration: 20s;
    }
    
    .snow2 {
        background-size: 30em;
        animation-duration: 25s;
    }

}

@media (max-width: 767px) {
    .logo-imagen {
        display: none !important; 
    }
    
    .logo-center {
        width: 100%; 
    }
    
    .navbar {
        align-items: center;
        padding: 1rem 1.5rem !important;
    }

    .navbar.scrolled .nav-btn {
        padding: 8px 16px !important;
        font-size: 1em !important;
        min-width: 100px;
    }

    .panel-item{
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-imagen {
        display: none !important; 
    }

    .navbar.scrolled .nav-btn {
        padding: 4px 12px !important;
        font-size: 0.7em !important;
        min-width: 90px;
    }
    .panel-item{
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    /* ESPACIO entre secciones */
    #quien-soy { padding-bottom: 50px; }
    #gustos { padding-top: 50px; padding-bottom: 50px; }
    #videojuegos { padding-top: 80px; padding-bottom: 50px; }
    #redes { padding-top: 50px; }
    
    html {
        scroll-padding-top: 180px; 
    }
}

@media (max-width: 768px) {
    .seccion-doble {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .gato_chambeador img {
        max-width: 350px;
    }
    
    .leyenda p {
        font-size: 1.2rem;
    }
    
    .boton_git {
        padding: 16px 35px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .proyectos {
        padding: 2rem 1rem;
    }
    
    .gato_chambeador img {
        max-width: 280px;
    }
}

@media (max-width: 767px) {
    #proyectos {
        padding-top: 80px;  
        scroll-margin-top: 200px;
    }
    
    html {
        scroll-padding-top: 220px;  
    }
}