/* Estilos de la sección hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('/assets/images/Backgrounts_images/Pagina principal.jpg');
    background-size: 300% 300%;
    color: white;
    text-align: center;
    padding-top: 4rem;
    animation: gradientShift 15s infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* Contenedor principal de contenido hero */
.hero-content {
    max-width:100%;
    margin: 0 auto;
    padding: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
}

/* Estilos de la caja de búsqueda */
.search-box {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}


/* Estilos específicos para el campo select en la búsqueda */
.search-box select.search-input {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.search-box select.search-input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-box select.search-input option {
    padding: 0.5rem;
}

/* Botón de búsqueda */
.search-button {
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.search-button:hover {
    background: var(--secondary);
}

/* Sección de características */
.features {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Tarjetas de características */
.feature-card {
    background: #1f2937;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature-card h3 {
    color: #00bf63;
}
.feature-card p {
    color: #ffffff;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Sección de destinos */
.destinations {
    padding: 4rem 2rem;
    background: var(--bg-light);
}

.destinations-container {
    max-width: 1200px;
    margin: 0 auto;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Tarjetas de destinos */
.destination-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
    transition: transform 0.3s;
    margin: auto;
}

.destination-card:hover {
    transform: translateY(-5px);
}

.destination-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Información de las tarjetas de destino */
.destination-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.destination-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.destination-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

/* Sección de guías */
.guides-section {
    background: white;
    padding: 4rem 2rem;
}
.guides-section a {
    text-decoration: none;
    color: #1f2937;
}
.guides-container {
    max-width: 1200px;
    margin: 0 auto;
}
.categories {
  font-size: 15px;
}
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.guide-card {
    border-radius: 1rem;
    border: #00bf63 solid 1px;
    overflow: hidden;
    background: var(--bg-light);
    transition: transform 0.3s;
}

.guide-card:hover {
    transform: translateY(-5px);
}

.guide-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.guide-info {
    padding: 1.5rem;
}

.guide-rating {
    color: #fbbf24;
    margin: 0.5rem 0;
}
.guide-description {
    margin-bottom: 1rem;
    color: #1f2937;
}
/* Etiqueta de precio */
.price-tag {
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    display: inline-block;
    margin-top: 1rem;
}

/* Categorías */
.categories-section {
    padding: 4rem 2rem;
    background: var(--bg-light);
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card:hover {
    transform: scale(1.05);
}

.guides-section .ver {
    text-align: center;
    margin-top: 2rem;
    text-decoration: none;
}   

.guides-section .ver button {
    background: var(--primary);
    color: rgb(253, 253, 253);
    padding: 0.5rem 1rem;
    border-radius: 4rem;
    display: inline-block;
    margin-top: 1rem;
}
/* Ajustes para tablets (pantallas medianas) */
@media (max-width: 1024px) {
    .hero {
        height: auto; /* Permite que la altura se adapte al contenido */
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem; /* Reduce el tamaño del texto */
        margin-bottom: 1.5rem;
        margin-top: 25px;
    }

    .search-box {
        padding: 1rem; /* Ajusta el relleno */
        gap: 0.5rem; /* Reduce el espacio entre los elementos */
    }

    .search-box select.search-input {
        min-width: 100%; /* El campo ocupa todo el ancho */
    }

    .search-button {
        width: 100%; /* El botón ocupa todo el ancho disponible */
    }
    .guides-section {
        height: auto;
        padding: 3rem 1rem;
    }
    .price-tag {
        width: 100%;
    }
    .guide-card {
        width: 100%; /* Las tarjetas de guía ocupan todo el ancho */
    }

    .destination-card {
        width: 100%; /* Las tarjetas de destino ocupan todo el ancho */
    }
    
}

/* Ajustes para móviles (pantallas pequeñas) */
@media (max-width: 767px) {
    .hero {
        height: auto; /* Permite que la altura se adapte al contenido */
        padding: 3rem 1rem;
    }

     h1 {
        font-size: 0.5rem; /* Reduce el tamaño del texto */
        margin-bottom: 1.5rem;
        margin-top: 25px;
    }

    .search-box {
        padding: 1rem; /* Ajusta el relleno */
        gap: 0.5rem; /* Reduce el espacio entre los elementos */
    }

    .search-box select.search-input {
        min-width: 100%; /* El campo ocupa todo el ancho */
    }

    .search-button {
        width: 100%; /* El botón ocupa todo el ancho disponible */
    }
    .guides-section {
        height: auto;
        padding: 3rem 1rem;
    }
    .price-tag {
        width: 100%;
    }
    .guide-card {
        width: 100%; /* Las tarjetas de guía ocupan todo el ancho */
    }

    .destination-card {
        width: 100%; /* Las tarjetas de destino ocupan todo el ancho */
    }
    
}

/* Ajustes para móviles muy pequeños (pantallas menores a 480px) */
@media (max-width: 480px) 
{
    .hero {
        height: auto; /* Permite que la altura se adapte al contenido */
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem; /* Reduce el tamaño del texto */
        margin-bottom: 0.5rem;
        margin-top: 25px;
    }

    .search-box {
        padding: 1rem; /* Ajusta el relleno */
        gap: 0.5rem; /* Reduce el espacio entre los elementos */
    }

    .search-box select.search-input {
        min-width: 90%; /* El campo ocupa todo el ancho */
    }

    .search-button {
        width: 100%; /* El botón ocupa todo el ancho disponible */
    }
    .guides-section {
        height: auto;
        padding: 2rem 1rem;
    }
    .price-tag {
        width: 100%;
    }
    .guide-card {
        width: 100%; /* Las tarjetas de guía ocupan todo el ancho */

    }

    .destination-card {
        width: 100%; /* Las tarjetas de destino ocupan todo el ancho */
    }

}