html, body {
    min-height: 100vh;
    height: auto;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    background-color: #ffffff;
}


@keyframes aparecer{
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
header{
    padding: 7px;
    margin-left: 35px;
    margin-top: 50px;
    border: solid black 2px;
    border-radius: 10px;
    background: black;
    color: #ffffff;
    height: 50px;
    width: 80%;
    font-family: "Merriweather", serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 999;
    animation: aparecer 2s ease-in-out forwards;
}

header h1{
    margin-left: 15px;
}

header nav ul {
    list-style: none;
    display: flex;
    margin-left: 0.5rem;
}

header nav ul li {
    margin: 0 5px;
}

header nav ul li a {
    color: #bbcede;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
}
header nav ul li a:visited {
    color: #bbcede;
}
header nav ul li a:hover {
    color: #ffffff;

}

#activo{
    color: #ffffff;
}

#colonia{
    width: 50px;
}

#centrado{
    margin-left: 90px;
}

.menu{
   background: black;
   z-index: 999;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    width: 89%;
    display: flex;
    position: absolute;
    top: 2.8rem;
    flex-direction: column;
    justify-content: center;
    transform: translatex(-300%);
    transition: transform 0.4s;
}


.menu > *{
    margin: 16px;
}

#hamburguesa {
    display: none;
  }

  #icono{
    margin-right: 20px;
    font-size: 25px;
    cursor: pointer;
  }

  #hamburguesa:checked ~ .menu {
    transform: translatex(-2.98%);
    left: 0;
  }

  header > #hamburguesa:checked {
    border-bottom: none;
  }
/* Sección principal */
main {
    margin-top: 0;
    width: 100%;
    height: 100%;
    font-family: "Poppins", sans-serif;
    animation: aparecer 2s ease-in-out forwards;
}

/* Estilo para la primera sección con el título y la imagen */


.slideshow-container {
    display: none;
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

.slideshow-mobile {
    display: block;
    position: relative;
    margin: auto;
    overflow: hidden;
}

.slide {
    text-align: center;
}

.slideshow-mobile .slide img {
    width: auto;
    height: auto;
    max-height: 1000px;
    object-fit: cover;
    border-radius: 10px;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 3px 0  0 3px;
    user-select: none;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    
}

.slideshow-mobile .next {
    right: 1rem;
    border-radius: 0 3px 3px 0;
}
.slideshow-mobile .prev{
    left: 1rem
}


#texto-central, .texto-abajo {
    position: relative;
    z-index: 2;
    color: #f4f4f4;
    text-align: center;
}

#texto-central {
    top: 50%;
    transform: translateY(-50%);
}

.texto-abajo {
    top: 47%;
}

.texto-abajo p{
    display: none;
}
.principal {
    position: relative;
    overflow: hidden;
    border: solid transparent 5px;
    height: 43rem;
    background: url("../images/1.jpg");
    background-size: cover;
    background-position:center ;
    background-repeat:no-repeat;
    width: 80%;
    left: 2.5rem;
    top: 8rem
}

#texto-central{
    font-size: 25px;
    color: #f4f4f4;
    text-align: center;
    position: relative;
    top: 50%;
}



/* Sección de texto y botón debajo de la imagen */
.texto-abajo {
    text-align: center; /* Aligna el texto a la izquierda */
    /* margin-top: 20px; */
    width: 100%;
    position: relative;
    /* top: 60%; */
}

.texto-abajo p {
    font-size: 1rem;
    color: #f4f4f4;
    line-height: 1.5;
    max-width: 100%;
    
}

.texto-abajo .btn-primary {
    display: inline-block;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)); /* Color azul */
    color: #ffffff; /* Texto blanco */
    text-decoration: none;
    padding: 10px 20px; /* Espaciado interno */
    border-radius: 5px; /* Botón redondeado */
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.texto-abajo .btn-primary:hover {
    background:linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 1)); /* Cambio de color al pasar el ratón */
}

#cara{
    border-top: solid lightblue 1px;
    border-bottom: solid lightblue 1px;
    margin-top: 13rem;
    margin-bottom: 3rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;
}

#cara h4{
    color: #003b7a;
}

#cara p{
    color: #0054a8;
}

#cara h1{
    font-size: 2em;
}

#cara img{
    margin-top: 15px;
    width: 14rem;
    height: auto;
    margin-bottom: 30px;
}

.cara2{
    font-size: small;
    height: 45rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    border-bottom: solid lightblue 1px;
    margin-bottom: 30px;
    margin-top: 15px;
}

.cara2 div{
    width: 30%;
}

.cara2 div i{
    font-size: medium;
    color: #0054a8;
}

.lugares{
    margin-top: 5em;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.lugares h1{
    width: 100vw;
}

.lugares div{
    width: 70%;
    height: 80vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5em;
}

.alicante{
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/Alicante.jpg");
}

.torrevieja{
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/torrevieja.jpg");
}

.lamurada{
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/la_murada.jpg");
   
}

.lugares div a {
    text-decoration: none;
    color:#bbcede;
    font-family: "Merryweather", serif;
    font-size: 30px;
    display: inline-block;
    position: relative; /* Necesario para posicionar el ::after */
}

.lugares div a::after {
    content: ''; /* Necesario para que el pseudo-elemento se renderice */
    position: absolute;
    left: 0; /* Comienza desde la izquierda */
    bottom: -2px; /* Posición debajo del texto */
    width: 0; /* Ancho inicial */
    height: 2px; /* Grosor del subrayado */
    
    background-color: #ffffff; /* Color del subrayado */
    transition: width 0.5s ease; /* Transición suave */
}

.lugares div a:hover {
    color: #ffffff; /* Cambia el color del texto al hacer hover */
}

.lugares div a:hover::after {
    width: 100%; /* Ancho completo al hacer hover */
    
}

.footer {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Distribuye las secciones */
    align-items: center; /* Centra los elementos verticalmente */
    background-color: black; /* Fondo azul intenso */
    color: #0054a8; /* Texto blanco */
    padding: 60px 80px; /* Espaciado interno */
    box-sizing: border-box; /* Incluye el padding en el tamaño total */
    width: 100%;
    height: 35rem;
}

.footer-section {
    flex: 1; /* Asegura que las secciones ocupen el mismo espacio */
    text-align: center; /* Alinea el contenido */
    padding: 0 10px; /* Espaciado interno */
}

.arriba{
    border-bottom: white solid 1px;
    padding: 20px;
}

.arriba p{
    margin-bottom: 15px;
}

.abajo{
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin-top: 15px;
    
}

.abajo a{
    font-size: 30px;
}

.redes{
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 150px;
}

a:visited{
    color: inherit
}

.alta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}


/* Estilos para paginación */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: aparecer 1.5s ease-in-out forwards;
    text-align: center;
}

.boton-pagina, .pagina-actual {
    padding: 8px 14px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.boton-pagina {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    color: #ffffff;
}

.boton-pagina:visited{
    color: #ffffff;
}

.boton-pagina:hover {
    background-color: #003b7a;
    border: 2px solid #0054a8;
}

.pagina-actual {
    background-color: #003b7a;
    color: #ffffff;
    border: 2px solid #0054a8;
}

.listado-fragancias {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px auto;
    width: 90%;
}

.columna {
    width: 45%;
    border: 2px solid black;
    padding: 20px;
    border-radius: 10px;
    background-color: #fefefe;
    min-height: 300px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.femenino {
    border-top: 10px solid #d05db1;
}

.botones-ant-sig{
    text-align: center;
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.masculino {
    border-top: 10px solid #00aaff;
}

.titulo-genero {
    background-color: #d05db1;
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.masculino .titulo-genero {
    background-color: #00aaff;
}

.fragancia {
    margin-bottom: 8px;
    font-family: "Poppins", sans-serif;
}

.ref {
    font-weight: bold;
}

.paginacion-botones {
    margin-top: 30px;
    text-align: center;
    width: 100%;
    height: 4rem;
}

/* FORMULARIOS - AJUSTADO Y COMPACTO */

form {
    background-color: #fff;
    padding: 15px;
    margin: 0 auto;
    max-width: 300px;
    width: 70%;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

form p {
    margin: 10px 0 5px 0;
    font-size: 0.95rem;
    font-weight: bold;
    color: #333;
}

form input[type="text"],
form input[type="email"],
form input[type="password"] {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    box-sizing: border-box;
}

form input[type="checkbox"] {
    margin-right: 8px;
}

form label {
    font-size: 0.6rem;
    color: #333;
}

form input[type="submit"],
form button {
    padding: 10px 18px;
    margin-top: 10px;
    margin-right: 8px;
    border: none;
    border-radius: 5px;
    background-color: black;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
}

form input[type="submit"]:hover,
form button:hover {
    background-color: #333;
}

input:focus {
    outline: none;
    border: 2px solid #007bff;
    background-color: #f0f8ff;
}

input.valido {
    border: 2px solid green;
    background-color: #eaffea;
}

input.invalido {
    border: 2px solid red;
    background-color: #ffeaea;
}

small.error {
    color: red;
    font-size: 0.8rem;
    display: none;
}

small.visible {
    display: block;
    margin-top: -8px;
    margin-bottom: 8px;
}

/* MODO NOCHE */

body.modo-noche{
    background-color: #121212;
    color: #ffffff;
}

header.modo-noche, .menu.modo-noche, .footer.modo-noche, .btn-primary.modo-noche, .boton-pagina.modo-noche{
    background-color: #ffffff;
    color: #1f1f1f;
}

header.modo-noche nav ul li a {
    color: #1f1f1f;
}

header.modo-noche nav ul li a:hover {
    color: #007bff;
}

.btn-primary.modo-noche:hover{
    background-color: #bbcede;
    color: lightgray;
}
.boton-pagina.modo-noche:hover{
    background-color: #003b7a;
    border: 2px solid #0054a8;
    color: white;
}




@media only screen and (min-width: 768px) {
        header {
            width: 95%; /* Ajustar a un porcentaje razonable para pantallas grandes */
        }
    
        main {
            width: 100%; /* Asegurarse de que ocupe el ancho completo del contenedor */
        }
    
        .principal {
            top: 10rem;
            height: 100vh; /* Ajuste más proporcional para pantallas grandes */
            background: url("../images/fondo.jpg");
            background-size: cover;
            background-position:center ;
            background-repeat:no-repeat;
            width: 95%;
            margin-bottom: 15rem;
        }

        .textoCara{
            position: relative;
        }

        #cara img{
            width: 43rem;
        }

        .prev{
            left: 2rem;
        }

        .next{
            right: 2rem;
        }

        .cara2{
            flex-direction: row;
            height: 15rem;
        }
        
        .lugares{
            display: flex;
            flex-direction: column;
            flex-wrap: wrap;
        }
        .lugares h1 {
            width: 80%; /* Cambiado a 100% en lugar de 100vw para adaptarse al contenedor */
        }
    
        .lugares div {
            width: 70%; /* Reducir el ancho de las secciones */
            height: 70vh; /* Tamaño más proporcional */
        }
    
        .footer {
            width: 100%; /* Ajustar el ancho al contenedor */
            height: auto; /* Altura automática para evitar problemas de escalado */
        }

        .menu {
            transform: translatex(-100%);
            transition: none;
            top: 0.3em;
            flex-direction: row;
            justify-content: flex-end;
            align-items: center;
            background: transparent;
            height: 37%;
          }

          .menu li{
            margin-left: 15px;
          }
         
          #icono {
            display: none;
          }
        
          .slideshow-container {
        display: block;
    }
    .slideshow-mobile {
        display: none;
    }

    }



