/* ==========================================================================
   LAYOUTS ESPECÍFICOS - CSIC RESERVAS
   ========================================================================== */

/* ==========================================================================
   LAYOUT BASE
   ========================================================================== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Nunito Sans', sans-serif;
    line-height: 1.6;
}

/* ==========================================================================
   LAYOUT HERO/INDEX PAGE
   ========================================================================== */
.mainSection {
    position: relative;
    height: calc(100vh - 80px); /* Ajuste para el header */
    flex: 1;
}

.mainSection--2 {
    background: url('../imagenes/fondos/fondo_1.jpeg') no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 100%;
}

.mainSection__overlay {
    position: absolute;
    background-color: var(--csic-overlay);
    width: 100%;
    height: 100%;
    z-index: 200;
    top: 0;
}

.mainSection__overlay-content {
    position: absolute;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    color: var(--csic-white);
    width: 100%;
    height: 100%;
    z-index: 220;
    top: 0;
    gap: 10px;
}

.mainSection__overlay-content h1 {
    font-size: 4rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    text-align: center;
    margin: 0;
}

.mainSection__overlay-content p {
    font-size: 2rem;
    letter-spacing: 0.1em;
    text-align: center;
    margin: 0;
}

/* ==========================================================================
   LAYOUT SPLIT-SCREEN (SALAS)
   ========================================================================== */
.contentSection {
    display: flex;
    height: calc(100vh - 80px); /* Ajuste para el header */
    flex: 1;
}

.contentSection__leftSide {
    position: relative;
    width: 50%;
    height: 100%;
}

.contentSection__overlay-content {
    position: absolute;
    background-color: var(--csic-overlay);
    width: 100%;
    height: 100%;
    z-index: 200;
    top: 0;
}

.contentSection__leftSide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contentSection__rightSide {
    display: flex;
    flex-direction: column;
    width: 50%;
    padding: 50px;
    gap: 40px;
    background-color: var(--csic-white);
}

.contentSection__rightSide h2 {
    color: var(--csic-brown);
    font-weight: 600;
    font-size: 2rem;
    margin: 0;
}

.contentSection__rightSide ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.contentSection__rightSide li {
    font-size: 1.75rem;
    letter-spacing: 0.08em;
}

.contentSection__rightSide li:before {
    content: "";
    background: url('../images/next.png') no-repeat center center;
    display: inline-block;
    background-size: 20px 20px;
    width: 20px; 
    height: 20px;
    margin-right: 20px;
    vertical-align: middle;
}

.contentSection__rightSide a {
    text-decoration: none;
    color: var(--csic-black);
    transition: var(--transition-color);
}

.contentSection__rightSide a:hover {
    color: var(--csic-brown);
}

/* ==========================================================================
   LAYOUT FIELDSET (CONVERGE)
   ========================================================================== */
.fieldsetContainer {
    padding: 40px;
    background-color: var(--csic-white);
    min-height: calc(100vh - 80px);
}

.fieldsetContainer fieldset {
    border: 5px solid var(--csic-brown);
    padding: 30px;
    position: relative;
    margin-bottom: 30px;
}

.fieldsetContainer legend {
    background-color: var(--csic-white);
    padding: 10px 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--csic-brown);
}

.salasGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.salaCard {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: var(--csic-white);
    transition: var(--transition-default);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.salaCard:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.videoContainer {
    float: right;
    width: 300px;
    height: 200px;
    margin: 0 0 20px 20px;
    border: 2px solid var(--csic-brown);
}

.logoContainer {
    text-align: center;
    margin-top: 30px;
}

.logoContainer img {
    max-width: 200px;
    height: auto;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .mainSection__overlay-content h1 {
        font-size: 3rem;
        padding-inline: 15px;
    }

    .mainSection__overlay-content p {
        font-size: 1.5rem;
        padding-inline: 15px;
    }
    
    .contentSection__rightSide {
        padding: 30px;
        gap: 30px;
    }
    
    .videoContainer {
        float: none;
        width: 100%;
        margin: 20px 0;
    }
}

@media screen and (max-width: 767px) {
    .contentSection {
        flex-direction: column;
        height: auto;
    }
    
    .contentSection__leftSide {
        width: 100%;
        height: 250px;
    }
    
    .contentSection__rightSide {
        width: 100%;
        padding: 30px 20px;
    }
    
    .fieldsetContainer {
        padding: 20px;
    }
    
    .salasGrid {
        grid-template-columns: 1fr;
    }
    
    .mainSection__overlay-content h1 {
        font-size: 2.5rem;
    }
    
    .mainSection__overlay-content p {
        font-size: 1.2rem;
    }
} 