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

html, body {
    height: 100vh;
    width: 100vw;
    font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

@media (min-width: 1001px) {
    html, body {
        overflow: hidden;
    }
}

@media (max-width: 1000px) {
    body {
        height: auto;
        min-height: 100vh;
    }
}

.header-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    background: #0548f052;
    padding: 4px 15px;
    border-bottom: 2px solid #1f2937;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    min-height: 28px;
    flex-shrink: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.texto-tuvace {
    cursor: pointer;
}

.fecha-hora {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fecha {
    background: rgba(0, 0, 0, 0.506);
    padding: 4px 10px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    font-size: 1.0em;
    color: #ffffff;
    font-weight: 600;
}

.tuvace-div {
    text-align: center;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.texto-tuvace {
    display: inline-block;
    font-size: 2.4em;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 12px;
    color: #204381;
}

.texto-tuvace .t {
    /* color: #006341; */
    display: inline-block;
    animation: movimiento-tu 2s ease-in-out infinite;
    margin: 0 4px;
}

.texto-tuvace .u {
    /* color: #006341; */
    display: inline-block;
    animation: movimiento-tu 2s ease-in-out infinite 0.3s;
    margin: 0 4px;
}

.texto-tuvace .v {
    /* color: #ffffff; */
    display: inline-block;
    animation: movimiento-va 2s ease-in-out infinite 0.6s;
    margin: 0 4px;
}

.texto-tuvace .a {
    /* color: #ffffff; */
    display: inline-block;
    animation: movimiento-va 2s ease-in-out infinite 0.9s;
    margin: 0 4px;
}

.texto-tuvace .c {
    /* color: #ce1126; */
    display: inline-block;
    animation: movimiento-ce 2s ease-in-out infinite 1.2s;
    margin: 0 4px;
}

.texto-tuvace .e {
    /* color: #ce1126; */
    display: inline-block;
    animation: movimiento-ce 2s ease-in-out infinite 1.5s;
    margin: 0 4px;
}

@keyframes movimiento-tu {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
    }
    25% { 
        transform: translateY(-3px) rotate(-2deg);
    }
    50% { 
        transform: translateY(-5px) rotate(0deg);
    }
    75% { 
        transform: translateY(-3px) rotate(2deg);
    }
}

@keyframes movimiento-va {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
    }
    25% { 
        transform: translateY(-3px) rotate(-2deg);
    }
    50% { 
        transform: translateY(-5px) rotate(0deg);
    }
    75% { 
        transform: translateY(-3px) rotate(2deg);
    }
}

@keyframes movimiento-ce {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
    }
    25% { 
        transform: translateY(-3px) rotate(-2deg);
    }
    50% { 
        transform: translateY(-5px) rotate(0deg);
    }
    75% { 
        transform: translateY(-3px) rotate(2deg);
    }
}

.hora {
    background: rgba(0, 0, 0, 0.506);
    padding: 4px 10px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    font-size: 1.0em;
    color: #ffffff;
    font-weight: 600;
    justify-self: end;
}

.main-content {
    flex: 1;
    display: flex;
    width: 100%;
    height: calc(100vh - 60px);
    padding: 0;
    overflow: hidden;
}

@media (max-width: 1000px) {
    .main-content {
        height: auto;
        overflow: visible;
        min-height: calc(100vh - 60px);
    }
}

.calendario {
    flex: 1;
    background: #fff;
    border: 2px solid;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 0;
    margin: 4px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.calendario:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.titulo-calendario {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
    border-radius: 10px 10px 0 0;
    margin: 0;
    background: linear-gradient(135deg, #3498db 0%, #25cc65 100%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    height: 28px;
    flex-shrink: 0;
}

#salaComercial h2 { 
    background: #3498db;
}

#salaPlanta h2 { 
    background: #25cc65;
}

.calendario iframe {
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
    width: 100%;
    height: 100%;
    border: none;
    flex: 1;
}

.calendario iframe:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.footer {
    text-align: center;
    font-size: 0.55rem;
    padding: 4px 0;
    background: rgba(255,255,255,0.9);
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
    width: 100%;
    min-height: 20px;
}

.footer-link {
    text-decoration: none;
    color: #9b2cdb;
}

.footer-link:hover {
    text-decoration: underline;
}

@media (min-width: 1001px) {
    .main-content {
        flex-direction: row;
        gap: 8px;
        padding: 0 8px;
    }
    
    #salaComercial, #salaPlanta {
        width: 50%;
        margin: 1px 0;
    }
}

@media (max-width: 1000px) {
    .main-content {
        flex-direction: column;
        padding: 0 4px;
    }
    
    #salaComercial, #salaPlanta {
        width: 100%;
        margin: 1px 0;
        height: 400px;
        min-height: 400px;
    }
    
    .texto-tuvace {
        font-size: 0.8em;
        padding: 3px 10px;
    }
    
    .header-content {
        min-height: 25px;
        padding: 3px 15px;
    }
    
    .fiestas-patrias-text {
        height: 18px;
    }
    
    .fecha, .hora {
        font-size: 0.65em;
        padding: 3px 8px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 0 2px;
    }
    
    .header-content {
        padding: 3px 10px;
        min-height: 22px;
    }
    
    #salaComercial, #salaPlanta {
        height: 350px;
        min-height: 350px;
    }
    
    .calendario {
        margin: 2px 0;
    }
    
    .footer {
        font-size: 0.5rem;
        padding: 3px 0;
        min-height: 18px;
    }
}


