
header {
    background: #9dc5c2;
    width: 100%;
    padding: 0px 0px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
}

.container {
   /* text-align: center;
    
    margin-top: 0px; 
    width: 100%;*/

    display: flex;
    flex-direction: column; /* Asegura que los elementos (imagen y texto) se coloquen uno debajo del otro */
    align-items: center; /* Centra horizontalmente la imagen y el texto */
    width: 100%;
    padding: 0px;
   
}
.container1{
        display: flex;
        flex-direction: column; /* Asegura que los elementos estén en columnas */
        align-items: center;    /* Centra el contenido horizontalmente */
        width: 100%;
        padding: 0px;
    
}

.container span {
    text-transform: uppercase;
    display: block;
}

.text1 {
    color: #005a7c;
    font-size: 60px;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 20px;
    background:  #9dc5c2;
    position: relative;
    animation: ani 4s;
}


@keyframes ani {
    0% {
        color:  #9dc5c2;
        margin-bottom: -40px;
    }
    30% {
        letter-spacing: 25px;
        margin-bottom: -40px;
    }
    85% {
        letter-spacing: 8px;
        margin-bottom: -40px;
    }
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #9dc5c2;
    font-family: 'Arial', sans-serif;
}

.clock {
    position: relative;
    width: 400px;
    height: 400px;
    background-image: url(../images/LOGOazulv1.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0; 
    animation: fadeIn 2s ease-in-out forwards;
    animation-delay: 2s; 

    margin-bottom: 20px; /* Añade espacio entre la imagen y el texto */

   
}
@keyframes fadeIn {
    to {
        opacity: 1; 
    }
}
.popup-imagen {
    display: none;
    position: absolute;
    top: -10%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 140px;
    height: 140px;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 10; 
}

.popup-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.popup-img {
    flex: 1.5;
    background-color: #f0f0f0;
}

.popup-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-text {
    flex: 1;
    padding: 5px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.popup-text p {
    margin: 0;
    font-size: 12px;
    color: #333;
}

.popup-text button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #005a7c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.popup-text button:hover {
    background-color: #007d9f;
}

.number {
    position: absolute;
    width: 17px;
    height: 17px;
    text-align: center;
    line-height: 30px;
    font-size: 12px;
    background-color: white;
    border-radius: 50%;
    border: 1px solid #009688;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform-origin: 200px 200px;
    transition: opacity 1s ease-in-out;
    cursor: pointer;
    transform: translate(-50%, -50%) rotate(0deg);
    z-index: 1; 
}

.number:hover .popup-imagen {
    display: block;
    opacity: 1;
    z-index: 10;
}

.clock:hover .number {
    opacity: 0;
}

.number:hover {
    opacity: 1;
    z-index: 2;
}






.clock-container {
    position: relative;
    width: 400px;
    height: 400px;
    justify-content: center; 
    margin-top: 150px;
    display: flex;
    align-items: center;
/*
    display: flex;
    justify-content: center;  Centra el reloj horizontalmente 
    width: 100%;
    margin-top: 180px;
    margin-bottom: 20px; /* Espacio debajo del reloj */
}

.center-button {
 
    position: absolute;
    top: 48.5%;
    left: 50%;
    margin-top: auto;
    margin-bottom: auto;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: black;
    text-align: center;
    line-height: 150px;
    z-index: 10;
    opacity: 0; 
    animation: fadeIn 1s forwards 3s, blink 1s infinite 4s;
}

.curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #005a7c;
    z-index: 100;
    transform: translateY(-100%);
    transition: transform 2s ease-in-out;
    text-align: center;
    
}
.curtain-texto{
    position: absolute;
    bottom: 0; 
    width: 100%;
    font-size: 3em; 
    color: white; 
    text-align: center;
    margin: 0;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.5); 
    
}
.curtain.active {
    transform: translateY(0);
}
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}


#num1  { top: 0%; left: 60%; background-color: #005a7c;transition-delay: 2.5s; }
#num2  { top: 7.3%; left: 79.7%; background-color: #005a7c;transition-delay: 2.7s; }
#num3  { top: 20.6%; left: 94.3%; background-color: #005a7c;transition-delay: 2.9s; }
#num4  { top: 40.6%; left: 101%; background-color: #005a7c; transition-delay: 3.2s; }
#num5  { top: 60.8%; left: 101%; background-color: #005a7c; transition-delay: 3.6s; }
#num6  { top: 78.8%; left: 94.1%; background-color: #005a7c;transition-delay: 4s; }
#num7  { top: 93.2%; left: 80%; background-color: #005a7c; transition-delay: 4.3s;}
#num8  { top: 100%; left: 60.8%; background-color: #005a7c; transition-delay: 4.7s;}
#num9  { top: 100%; left: 40%; background-color: #005a7c;transition-delay: 5s; }
#num10 { top: 93.2%; left: 22.4%; background-color: #005a7c; transition-delay: 5.4s; }
#num11 { top: 78.2%; left: 8.4%; background-color: #005a7c;transition-delay: 5.8s; }
#num12 { top: 57.8%; left: 0%; background-color: #005a7c;transition-delay: 6.2s; }
#num13 { top: 38.6%; left: 0%; background-color: #005a7c;transition-delay: 6.4s; }
#num14 { top: 20.6%; left: 7.4%; background-color: #005a7c;transition-delay: 6.8s;  }
#num15 { top: 7.3%; left: 21%; background-color: #005a7c;transition-delay: 7s;  }
#num16 { top: 0%; left: 38.7%; background-color: #005a7c;transition-delay: 7.3s; }

.clock.active .number {
    opacity: 1;
}@media (max-width: 600px) {
    .clock {
        width: 250px;
        height: 250px;
    }

    .popup-imagen {
        width: 140px;
        height: 140px;
    }

    .number {
        width: 12px;
        height: 12px;
    }

    /* Asegura que el contenedor del reloj se ajuste a pantallas pequeñas */
    .clock-container {
        height: 250px;
        margin-top: 250px; /* Reduce el espacio superior en pantallas pequeñas */
    }


    .center-button {
 
        position: absolute;
        top: 45%;
        left: 50%;
        margin-top: auto;
        margin-bottom: auto;
     
    }
 .text1 {
        font-size: 10vw; /* Tamaño de texto más pequeño para pantallas más grandes */
        letter-spacing: 2.5vw;
    }
}

/* Para pantallas medianas como tablets */
@media (max-width: 900px) {
    .clock {
        width: 300px;
        height: 300px;
    }

    .popup-imagen {
        width: 160px;
        height: 160px;
    }

    .number {
        width: 15px;
        height: 15px;
    }
}

.paginaOficial {
    
    text-align: center;
    font-family: 'Arial', sans-serif;
    
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.paginaOficial h5 {

    
    text-align: center;
    font-family: 'Arial', sans-serif;
    color: #005a7c;
  
    font-size: 15px;
    margin-left: auto;
    margin-right: auto;
    width: 85%;
}

@media (max-width: 768px) {
    .paginaOficial {
        padding: 15px;
    }

    .paginaOficial h5 {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .paginaOficial {
        padding: 10px;
    }

    .paginaOficial h5 {
        font-size: 0.9em;
    }
}
