/* 
CSS específico para las salas Converge 
Replica el diseño de boris/page2.css del sistema PHP
*/

/* Configuración base */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Fieldset y Legend - Estilo característico de Converge */
fieldset {
    border: 5px solid brown;
    padding: 0px;
    position: relative;
    margin: 0;
}

legend {
    position: relative;
    padding-inline: 20px;
    background-color: white;
    left: -22px;
    top: -35px;
    width: max-content;
    margin: 0;
}

/* Sección principal - SIN imagen de fondo como en el original */
.mainSection {
    padding: 40px 10px;
    height: 100%;
    min-height: calc(100vh - 200px);
}

.mainSection__textContent {
    padding-inline: 20px;
}

/* Título principal */
.mainSection__title-h2--2 {
    font-size: 45px;
    color: brown;
    margin: 0;
    font-weight: bold;
}

/* Lista de salas con bullets personalizados */
.mainSection ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.mainSection li {
    font-size: 1.75rem;
    letter-spacing: 0.08em;
    position: relative;
}

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

.mainSection li a {
    text-decoration: none;
    color: black;
    transition: all 0.3s ease;
}

.mainSection li a:hover {
    color: brown;
    font-weight: bold;
}

/* Contenedor de video */
.video-container {
    position: relative;
    display: flex;
    justify-content: right;
    width: max-content;
    float: right;
    z-index: 50;
    margin-top: 20px;
}

.video-container video {
    padding: 20px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-container::before {
    content: '';
    background-color: brown;
    width: 5px;
    height: 150px;
    position: absolute;
    left: 0;
    top: 0;
}

.video-container::after {
    content: '';
    position: absolute;
    background-color: brown;
    width: 150px;
    height: 5px;
    top: 0;
    left: 0;
}

/* Sección inferior */
.mainSection__bottom {
    position: relative;
    display: flex;
    flex-direction: row;
    padding-top: 10px;
    align-items: top;
    justify-content: space-between;
    gap: 20px;
    clear: both;
    margin-top: 40px;
}

.mainSection__bottom-logoCont {
    position: relative;
}

.mainSection__bottom-logoCont img {
    max-width: 100%;
    height: auto;
}

.mainSection__bottom-svgContainer {
    width: 40%;
}

/* Texto del slogan - SIN caja blanca, solo texto */
.mainSection__bottom-text {
    position: relative;
    width: max-content;
    top: -55px;
    padding: 10px 0;
}

.mainSection__bottom-text p {    
    font-size: 22px;
    font-weight: 600;
    width: 100%;
    padding: 0;
    margin: 0;
    margin-top: 10px;
    color: brown;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .video-container video {
        width: 450px;
    }
    
    .mainSection__title-h2--2 {
        font-size: 50px;
    }
    
    .mainSection__bottom-logoCont img {
        width: 250px;
    }
}

@media screen and (max-width: 767px) {
    .video-container {
        margin-bottom: 0px;
        width: 100%;
        float: none;
        justify-content: center;
    }
    
    .video-container video {
        width: 100%;
        max-width: 100%;
    }
    
    .mainSection__title-h2--2 {
        font-size: 40px;
        line-height: 35px;
    }
    
    .mainSection__bottom {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .mainSection__bottom-text {
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        top: 0;
        padding: 10px 0;
    } 
    
    .mainSection__bottom-logoCont {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .mainSection__bottom-text p {
        width: 100%;
        font-size: 18px;
    }
    
    .mainSection__bottom-svgContainer {
        width: 100%;
    }
    
    .video-container::before {
        display: none;
    }
    
    .video-container::after {
        display: none;
    }
    
    .video-container {
        padding-top: 20px;
    }
    
    /* Ajustes para móvil */
    .mainSection {
        padding: 20px 10px;
    }
    
    .mainSection li {
        font-size: 1.5rem;
    }
    
    fieldset {
        border-width: 3px;
    }
    
    legend {
        left: -15px;
        top: -25px;
    }
}

@media screen and (max-width: 480px) {
    .mainSection__title-h2--2 {
        font-size: 32px;
        line-height: 30px;
    }
    
    .mainSection li {
        font-size: 1.25rem;
    }
    
    .mainSection__bottom-text p {
        font-size: 16px;
    }
    
    .video-container video {
        height: 200px;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mainSection li {
    animation: fadeInUp 0.6s ease forwards;
}

.mainSection li:nth-child(1) {
    animation-delay: 0.1s;
}

.mainSection li:nth-child(2) {
    animation-delay: 0.2s;
}

.mainSection li:nth-child(3) {
    animation-delay: 0.3s;
}

/* Hover effects */
.mainSection li:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.video-container:hover video {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Accesibilidad */
.mainSection li a:focus {
    outline: 2px solid brown;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    .video-container {
        display: none;
    }
    
    .mainSection__bottom-text p:after {
        content: " - Impreso desde el Sistema de Reservas CSIC";
        font-size: 12px;
        color: #666;
    }
} 