@import url('https://fonts.googleapis.com/css2?family=Forum&display=swap');
    

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }  


html, body {
    width: 100%;
    min-height: 100vh;
    overflow: auto;
    font-family: "Forum", serif;
    font-optical-sizing: auto;
  }

h2 {
    font-weight: 400;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url(img/hero_img.png);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.main h1 {
    color: white;
}

.main_menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.main_menu a {
    text-decoration: none;
    border: 2px solid white;
    padding: 1rem;
    margin: 1rem;
    color: white;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 100vh;
}

.fixed-bg {
    position: fixed;
    inset: 0;
    background-image: url(img/fondo_1.jpg);
    background-image: url(img/fondo_1.webp);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.space {
    height: 35px;
}

.arrow img {
    max-width: 20%;
}

.titileo {
    animation: parpadeo 1s infinite;
}

@keyframes parpadeo {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.titulo_1 {
    max-width: 100%;
}

.section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contador{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-inline: 1rem;
    padding-block: 10rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
    max-width: 100%;
}

.contenido-contador {
    text-align: center;
    text-wrap: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #422520;
}

.contenido-contador h2 {
    padding-bottom: 1rem;
}

.titulo_2 {
    max-width: 75%;
}

.card {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.card img {
    max-width: 45%;
    padding-bottom: 6rem;
}

.card h2 {
    padding-bottom: 1rem;
    color: #422520;
}

.card h3 {
    max-width: 50%;
    padding-bottom: 10rem;
    color: #422520;
}

.card a {
    text-decoration: none;
    color: #422520;
    border: 1px solid #422520;
    padding: 10px;
}

@media (max-width: 768px) {
    .card img {
        padding-bottom: 4rem;
    }

    .card h3 {
        max-width: 85%;
        padding-bottom: 5rem;
    }

    .card2 img {
        padding-bottom: 4rem;
    }

    .card2 h2 {
        padding-bottom: 3rem;
    }
}

.card2 {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.card2 img {
    max-width: 45%;
    padding-bottom: 6rem;
}

.card2 h2 {
    padding-bottom: 3rem;
    font-weight: bold;
}

.card2 h4 {
    font-size: 1.5rem;
    padding-block: 1rem;
}

.card2 p {
    font-weight: bold;
}

.palette {
    display: flex;
    justify-content: center;
    padding-block: 3rem;
}

.circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #422520;
    margin-inline: 0.5rem;
}

.circle1 {
    background-color: blue;
}

.circle2 {
    background-color: rgb(226, 157, 78);
}

.circle3 {
    background-color: rgb(105, 211, 140);
}

.circle4 {
    background-color: rgb(210, 101, 214);
}

.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-container:target {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.popup-content p {
    padding-bottom: 1rem;
}

.btn-cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    text-decoration: none;
    color: #333;
}

.popup {
    background: #007BFF;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
}

.logo {
    width: 58.5%;
    height: auto;
    min-width: 0;
}

.boton-flotante {
    position: fixed;
    right: 20px;  /* Distancia desde el borde derecho */
    top: 20px;    /* CAMBIO: Ahora se alinea desde la parte superior */
    width: 60px;
    height: 60px;
    background-color: #e5d4c3;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 9999; /* Se mantiene al frente de todo */
    transition: all 0.4s ease;
    opacity: 1;
    visibility: visible;
  }

  .boton-flotante.oculto {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px); /* Hace que suba un poco al ocultarse */
  }
  
  /* Efecto al pasar el mouse por encima */
  .boton-flotante:hover {
    transform: scale(1.1);
    background-color: #e5d4c3;
  }
  
  /* Estado activo cuando la música se está reproduciendo (opcional) */
  .boton-flotante.reproduciendo {
    background-color: #422520; /* Cambia a verde */
    animation: pulso 2s infinite; /* Efecto de latido */
  }
  
  /* Animación de pulso */
  @keyframes pulso {
    0% { box-shadow: 0 0 0 0 rgba(156, 77, 53, 0.856); }
    70% { box-shadow: 0 0 0 15px rgba(46, 213, 115, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0); }
  }
  