/* =========================================
   VARIABLES Y RESET
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lora', Roboto, Helvetica, Arial, sans-serif;
}

body {
    overflow: hidden; 
}

/* Ocultar los inputs de control */
.state-radio,
.state-checkbox {
    display: none;
}

/* Contenedor principal - Transición veloz y limpia */
.seasons-container {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    transition: background-color 0.4s ease, color 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* =========================================
   SISTEMA DE COLORES (MODO CLARO POR DEFECTO)
========================================= */
.seasons-container:has(#spring:checked) { background-color: #f1bdce; color: #2e1827; }
.seasons-container:has(#summer:checked) { background-color: #a6d1a5; color: #0f241f; }
.seasons-container:has(#autumn:checked) { background-color: #d1a382; color: #221a13; }
.seasons-container:has(#winter:checked) { background-color: #a1c5e2; color: #151b31; }

.img-dark { display: none; }
.img-light { display: block; }


@media (prefers-color-scheme: dark) {
    .img-light { display: none; }
    .img-dark { display: block; }

    .seasons-container:has(#spring:checked) { background-color: #361836; color: #f5dde4; }
    .seasons-container:has(#summer:checked) { background-color: #182922; color: #dbeccc; }
    .seasons-container:has(#autumn:checked) { background-color: #311b16; color: #e2cdbf; }
    .seasons-container:has(#winter:checked) { background-color: #222d36; color: #c4e0df; }
}


.controls-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 5%;
    z-index: 100;
}

.season-nav {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: 2px solid transparent;
}

.seasons-container:has(#summer:checked) .nav-btn {
    background: rgba(0, 0, 0, 0.1);
}
@media (prefers-color-scheme: dark) {
    .seasons-container:has(#summer:checked) .nav-btn {
        background: rgba(255, 255, 255, 0.2);
    }
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.seasons-container:has(#spring:checked) .btn-spring,
.seasons-container:has(#summer:checked) .btn-summer,
.seasons-container:has(#autumn:checked) .btn-autumn,
.seasons-container:has(#winter:checked) .btn-winter {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}


.content-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
}

.season-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 0 5%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    will-change: transform, opacity;
}

.seasons-container:has(#spring:checked) .content-spring,
.seasons-container:has(#summer:checked) .content-summer,
.seasons-container:has(#autumn:checked) .content-autumn,
.seasons-container:has(#winter:checked) .content-winter {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.text-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 5%;
    z-index: 10;
}

.season-title {
    font-size: 6rem; 
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
    letter-spacing: -2px;
}

.season-description {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 90%;
    opacity: 0.9;
}


.image-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-side::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 0;
    animation: morph 12s ease-in-out infinite;
    
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

.season-img {
    width: 100%;
    max-width: 550px;
    aspect-ratio: 1/1;
    border-radius: 50%; 
    object-fit: cover;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    border: 8px solid rgba(255,255,255,0.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}


@media (max-width: 992px) {

    .content-wrapper {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .season-content {
        position: absolute; 
        flex-direction: column;
        padding-top: 2rem;
        padding-bottom: 4rem;
        height: auto;
        min-height: 100%;
    }
    
    .text-side {
        padding-right: 0;
        text-align: center;
        margin-bottom: 2rem;
        flex: none;
    }
    
    .season-description {
        max-width: 100%;
    }
    
    .season-title { 
        font-size: 4rem; 
    }
    
    .image-side {
        flex: none;
        width: 100%;
    }

    .season-img { 
        max-width: 350px; 
    }

    .image-side::before {
        width: 380px;
        height: 380px;
    }
}

@media (max-width: 480px) {
    .controls-header {
        padding: 1rem 3%;
    }

    .season-nav {
        gap: 0.4rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .season-title { 
        font-size: 3rem; 
    }
    
    .season-img { 
        max-width: 260px; 
    }

    .image-side::before {
        width: 290px;
        height: 290px;
    }
}