html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow-x: hidden; /* Eliminar desbordamiento horizontal global */
}
#contenedor-enlaces-nav{
   font-size: small;
}
#contenedor-logo{
    width: 100%;
    height: 100px;
    justify-content: center;
    display: flex;
    align-items: center;
    background-color:#00BC6D;
}
#contenedor-logo {
    display: flex;
    align-items: center;
    gap: 10%;
    position: relative; /* Para el dropdown de resultados */
}

/* 🔹 Diseño del buscador en escritorio */
.search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 5px 10px;
    background: #fff;
    position: relative;
}

.search-form input {
    border: none;
    outline: none;
    padding: 5px 10px;
    font-size: 14px;
    width: 20vw;
}

.search-form .search-button {
    background: none;
    border: none;
    cursor: pointer;
}

.search-form .search-button img {
    width: 20px;
    height: 20px;
}

/* 🔹 Resultados de búsqueda */
.search-results {
    position: absolute;
    top: 90%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
    z-index: 10;
}

.search-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results li {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.search-results li:hover {
    background: #f5f5f5;
}


/* 🔹 Esconde el buscador en móvil */
@media (min-width: 1200px) {
    #search-form-desktop {
        display: flex;
        border-radius: 10px;
    }
    #search-results-desktop{
        padding-top:10px;
    }
}

/* El nav ocupará toda la altura y permitirá el desplazamiento horizontal */
nav#menu-horizontal-movil {
    display: flex;
    justify-content: flex-start;  /* Alinea los elementos a la izquierda */
    align-items: center;          /* Hace que los li ocupen toda la altura del nav */
    background-color: #fff;
    overflow-x: auto;             /* Permite el desplazamiento horizontal */
    white-space: nowrap;          /* Mantiene todos los elementos en una sola línea */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 7vh;                 /* Define la altura del nav */
    width: 100%;                  /* Asegúrate de que el nav ocupe el 100% del ancho */
    box-sizing: border-box;        /* Evita que el padding cause desbordamiento */

    /* Ocultar barra de scroll en Chrome, Safari y Edge */
    -ms-overflow-style: none;  /* IE 10+ */
    scrollbar-width: none;     /* Firefox */
}

/* Ocultar barra de scroll en navegadores basados en WebKit (Chrome, Safari, Edge) */
nav#menu-horizontal-movil::-webkit-scrollbar {
    display: none;
}

/* Flexbox para los elementos de la lista */
nav#menu-horizontal-movil ul {
    list-style: none;
    display: flex;           /* Flexbox para hacer los li horizontales */
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;       /* No permite que los elementos se rompan a la siguiente línea */
    height: 100%;            /* Hace que el ul ocupe toda la altura del nav */
    align-items: center;     /* Alinea verticalmente los elementos dentro del ul */
}

/* Cada li ocupa toda la altura del nav */
nav#menu-horizontal-movil li {
    display: flex;
    align-items: center;     /* Centra el contenido (a) verticalmente */
    height: 100%;            /* Ocupa el 100% de la altura del nav */
    margin: 0 10px;          /* Espacio entre cada li */
    flex-shrink: 0;          /* Evita que los li se reduzcan de tamaño */
}

nav#menu-horizontal-movil a {
    text-decoration: none;
    color: black;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    transition: color 0.3s;
    white-space: nowrap;
    font-size: 1.3rem;
}

body {
    background-color: white;
}

.hero-section {
    position: relative;
    background-size: cover;
    background-position: bottom;
    background-position-y: 60vh;
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Oscurecer imagen */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 20px;
    text-align: left;
    max-width:100%;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1rem;
    margin: 10px 0;
}

.btn-plan {
    display: inline-block;
    padding: 15px 15px;
    background-color: #00BC6D;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 80vw;
    text-align: center;
    margin-top: 3vh;
}

.btn-plan:hover {
   background-color:#22bd7c;
}
.contenedorEnlaceNav a{
    padding:10px;
    color:white;
}
.contenedorEnlaceNav:hover{
    background-color: rgba(255, 255, 255, 0.1); /* Le da un color de fondo más suave */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Sombra al hacer hover */
    border-radius: 20px;
}
.active{
    border: 2px solid white;
    border-radius: 35px;
    background-color: rgba(255, 255, 255, 0.1); /* Le da un color de fondo más suave */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Sombra al hacer hover */
}
#bloque-titulo{
    background-repeat: no-repeat;
    background-position: bottom;
}
#bloque1-acordeon{
    display:block;
}
#bloque-titulo{
    margin-bottom: 3%;
}
/* OVERLAY: Fondo oscuro a pantalla completa */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 9998;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 60px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.search-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* CONTENEDOR DEL BUSCADOR (MODAL) */
.search-modal {
  background: #fff;
  width: 600px;
  max-width: 90%;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

/* FORMULARIO DE BÚSQUEDA */
.search-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding: 8px 16px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background: #fff;
}
.search-form input {
  border: none;
  outline: none;
  font-size: 16px;
  flex: 1;
  padding: 10px;
}
.search-button {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 8px;
}
.search-button img {
  width: 24px;
  height: 24px;
}

/* RESULTADOS DE BÚSQUEDA */
.search-results {
  max-height: 300px;
  overflow-y: auto;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.search-results ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.search-results li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.search-results li:last-child {
  border-bottom: none;
}
.search-results li:hover {
  background: #f5f5f5;
}
.result-icon {
  width: 40px;
  height: 40px;
}
#contenedor-logo{
    height:60px;
}
#contenedor-logo img{
    width:180px;
}
@media only screen and (min-width: 540px) {
    .hero-section{
        background-position-y: 91vh;
        height: 60vh;
    }
}
@media only screen and (min-width: 1200px) {
    #contenedor-logo{
        height:inherit;
    }
    #contenedor-logo img{
        width:230px;
    }
    .hero-content{
        max-width: 50%;
    }
    #bloque-titulo{
        margin-bottom: 0%;
    }
    .hero-content h1 {
        font-size: 6rem;
    }
    .hero-content p {
        font-size: 3rem;
    }
    nav#menu-horizontal-movil {
        height: 75px;
        font-size: 1.5rem;
        border-top: 2px solid white;
    }

    .hero-section{
        background-position-y: 178vh;
        height: 60vh;
    }
    .btn-plan {
        width: 35vw;
        font-size: 2rem;
    }
        .hero-content h1 {
        font-size: 3.5rem;
        padding-left: 0;
    }
        .hero-content p {
        font-size: 1.5rem;
    }
    .hero-section {
        justify-content: left;
    }
    nav#menu-horizontal-movil {
        justify-content: center;
    }
    .hero-section {
        justify-content: center;
    }
    #bloque-titulo{
        background-position-y: 50%;
        margin-bottom: 15px;
    }
}

/* Estilos para móviles */
@media only screen and (max-width: 768px) {

    #search-form-desktop {
        display: none;
    }
    #search-modal .modal-content{
        max-width: none;
    }
    .hero-content h1 {
        font-size: 1.7rem;
        margin-top: 0;
    }

    .btn-plan {
        margin-top: 9.2vh;
        margin-left: 17%;
        width: 50vw;
    }

    /* ==========================
       HOME
    ========================== */

    .hero-detalle {
        justify-content: flex-start;
        padding-left: 3%;
    }

    .hero-detalle .hero-content {
        max-width: 50%;
        align-items: flex-end;
        margin-top: 65%;
        word-wrap: break-word;
    }

    /* ==========================
       LANDINGS / DETALLE
    ========================== */

    .hero-detalle {
        justify-content: flex-start;
        padding-left: 3%;
    }

    .hero-detalle::before {
        background:
            radial-gradient(
                ellipse at bottom left,
                rgba(0, 0, 0, .80) 0%,
                rgba(0, 0, 0, .60) 30%,
                rgba(0, 0, 0, .25) 55%,
                rgba(0, 0, 0, 0) 80%
            );
    }

    .hero-detalle .hero-content {
        max-width: 90%;
        align-items: flex-end;
        margin-top: 40%;
        word-wrap: break-word;
    }
}
/* Estilos para tablets */
@media only screen and (max-width: 1200px) and (min-width: 768px){
    .hero-content {
        align-self: flex-end;
        margin-bottom: 8%;
    }
    .btn-plan {
        display: flex;
        justify-content: center;
        justify-self: center;
        width: 50vw;
        font-size: 1.5rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.5rem;
    }
}

/* Estilos para tablets en modo horizontal */
@media only screen and (min-width: 1025px) and (max-width: 1200px) {
    /* Estilos */
}

/* Estilos para pantallas de escritorio medianas */
@media only screen and (min-width: 1201px) {

}

/* Estilos para pantallas grandes */
@media only screen and (min-width: 1601px) {
    /* Estilos */
}