/* ===========================================
   INDEX / HOME - CSS
   v3.0 - Adaptado al diseño general.css
   =========================================== */

/* ===========================================
   HERO
   =========================================== */
#home-hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px);
    max-height: 800px;
    overflow: hidden;
}

#hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#hero-slider .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
}

#hero-slider .hero-slide.activo {
    opacity: 1;
}

#hero-slider .hero-slide picture,
#hero-slider .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

#hero-contenido {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    color: #fff;
    padding: 0 40px 40px 40px;
}

#hero-contenido h1 {
    font-size: 2.4rem;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    margin: 0 0 10px 0;
}

#hero-contenido p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    max-width: 600px;
    margin: 0 auto 20px auto;
    line-height: 1.5;
}

#hero-pais {
    margin-bottom: 20px;
}

.hero-pais-nombre {
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    padding: 6px 20px;
    border-radius: 20px;
    display: inline-block;
    transition: opacity 0.5s ease;
}

#go-destinos {
    cursor: pointer;
    background: #d45715;
    padding: 12px 30px;
    border-radius: 6px;
    margin-bottom: 30px;
    transition: background 0.3s ease;
}

#go-destinos:hover {
    background: #b8490f;
}

#go-destinos span {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ===========================================
   CATÁLOGOS / DESTINOS
   =========================================== */
#caja-catalogos {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

#caja-catalogos .titulo-con-filtros {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#caja-catalogos .titulo-con-filtros h2 {
    font-size: 2.2rem;
    color: #333;
}

#caja-catalogos .caja-pais {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

#caja-catalogos .caja-pais a {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    left: 0;
    top: 0;
}

#caja-catalogos .caja-pais .imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

#caja-catalogos .caja-pais:hover .imagen {
    transform: scale(1.05);
}

#caja-catalogos .caja-pais .informacion {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    padding: 15px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

#caja-catalogos .caja-pais .informacion h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

#caja-catalogos .caja-pais .informacion p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin: 4px 0 0 0;
    display: none;
}

#caja-catalogos .caja-pais:hover .informacion p {
    display: block;
}

/* ===========================================
   VIAJEROS EN DESTINO
   =========================================== */
#home-viajeros {
    background: #f9f9f9;
    padding: 30px 0;
}

/* ===========================================
   VENTAJAS
   =========================================== */
#home-ventajas {
    position: relative;
    background: url("/imagenes/home2.jpg") no-repeat center;
    background-size: cover;
    text-align: center;
    padding: 60px 0;
}

#home-ventajas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

#home-ventajas .ventajas-contenido {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

#home-ventajas .ventajas-banner {
    color: #fff;
    font-size: 1.6rem;
    line-height: 1.5;
    margin-bottom: 50px;
}

#home-ventajas .ventajas-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

#home-ventajas .ventaja {
    flex: 1;
    color: #fff;
    text-align: center;
}

#home-ventajas .ventaja .ventaja-icono {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px auto;
}

#home-ventajas .ventaja .ventaja-icono svg {
    width: 100%;
    height: 100%;
}

#home-ventajas .ventaja h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

#home-ventajas .ventaja p {
    font-size: 1rem;
    line-height: 1.4;
    opacity: 0.9;
}

/* ===========================================
   OPINIONES (home)
   =========================================== */
#caja-opiniones-ajax {
    clear: both;
    padding: 40px 0;
    max-width: 1180px;
    margin: 0 auto;
    overflow: hidden;
}

#caja-opiniones-ajax h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 30px;
}

#caja-opiniones-ajax .cerrar-elemento {
    display: none !important;
}

/* ===========================================
   RESPONSIVE - TABLETS (max-width: 1180px)
   =========================================== */
@media (max-width: 1180px) {
    #caja-opiniones-ajax {
        padding: 40px 4%;
        width: 92%;
    }
}

@media (max-width: 1024px) {
    #caja-catalogos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 30px 4%;
    }
}

/* ===========================================
   RESPONSIVE - MÓVIL (max-width: 768px)
   =========================================== */
@media (max-width: 768px) {

    #home-hero {
        height: 70vh;
        min-height: 400px;
        max-height: none;
    }

    #hero-contenido {
        padding: 0 20px 20px 20px;
    }

    #hero-contenido h1 {
        font-size: 1.6rem;
    }

    #hero-contenido p {
        font-size: 1rem;
    }

    /* Catálogos */
    #caja-catalogos {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 4%;
    }

    #caja-catalogos .titulo-con-filtros {
        flex-wrap: wrap;
    }

    #caja-catalogos .titulo-con-filtros h2 {
        width: 100%;
        font-size: 1.8rem;
    }

    #caja-catalogos .titulo-con-filtros #btn-buscador-circuitos {
        margin-left: auto;
        margin-top: 15px;
        font-size: 0.90rem;
        padding: 8px 18px;
    }

    /* En movil solo el nombre del pais: la descripcion tapaba la imagen */
    #caja-catalogos .caja-pais .informacion p,
    #caja-catalogos .caja-pais:hover .informacion p {
        display: none;
    }

    /* Viajeros */
    #home-viajeros {
        padding: 20px 0;
    }

    /* Ventajas */
    #home-ventajas {
        padding: 40px 0;
    }

    #home-ventajas .ventajas-banner {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    #home-ventajas .ventajas-grid {
        flex-direction: column;
        gap: 30px;
    }

    #home-ventajas .ventaja h3 {
        font-size: 1.2rem;
    }

    /* Opiniones */
    #caja-opiniones-ajax {
        padding: 30px 4%;
        width: 92%;
    }

    #caja-opiniones-ajax h2 {
        font-size: 1.6rem;
    }
}
