/**
 * Home CSS - Estilos específicos de la página de inicio
 *
 * Este archivo contiene los estilos únicos para la home:
 * - Hero carousel con experiencias destacadas
 * - Sección de información estática
 * - Partners carousel (logos de socios comerciales)
 * - Nuestras experiencias (4 cards verticales)
 * - Testimoniales con carousels
 * - Connect section (pasos de contacto)
 * - Responsive design para cada sección
 *
 * @author One2Travel Development Team
 * @version 1.0
 */

/* ============================================
   HERO CAROUSEL - Carrusel Principal
   ============================================ */
/* Carrusel fullscreen con imágenes de experiencias y captions */

#experienceCarousel .carousel-item {
    height: 85vh; /* Set the height of the carousel */
    min-height: 500px;
    background-color: #000; /* Black fallback for images */
}

#experienceCarousel .carousel-item img {
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area */
    object-position: center;
    opacity: 0.6; /* Darkens the image */
}

#experienceCarousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

#experienceCarousel .carousel-caption a {
    color: #fff;
    text-decoration: none;
}

#experienceCarousel .carousel-caption h1 {
    font-family: 'NonBureau', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Custom Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    z-index: 11; /* Lifts arrows above the caption overlay */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-size: 50% 50%;
}

/* ============================================
   HERO CAROUSEL RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    #experienceCarousel .carousel-caption h1 {
        font-size: 2.5rem;
    }

    #experienceCarousel .carousel-item {
        height: 60vh;
    }
}

/* ============================================
   STATIC INFO SECTION - Sección de Información
   ============================================ */
/* Sección con texto descriptivo y video embebido */
.info-section {
    background-color: #fff;
}

.info-section h2 {
    color: var(--brand-blue, #2a5298); /* Use brand blue from template.css */
    font-family: 'NonBureau', sans-serif;
    font-weight: 700;
}

.info-section p {
    color: #343a40;
    line-height: 1.6;
}

.info-section .btn-primary {
    padding: 10px 30px;
    font-weight: bold;
}

/* Responsive adjustments for info section */
@media (max-width: 992px) {
    .info-section .col-lg-6 {
        margin-bottom: 1.5rem; /* Add space between text and video on mobile */
    }
}

/* ============================================
   PARTNERS SECTION - Socios Comerciales
   ============================================ */
/* Carrusel de logos de partners con hover effects */
.partners-section,
.experiences-section,
.testimonials-section,
.connect-section {
    background-color: #ffffff;
}

/* Prevent partners carousel overflow */
.partners-section {
    overflow: hidden;
}

/* General section title styling */
.partners-section .container {
    position: relative;
}

#partnersCarousel {
    position: relative;
    overflow: visible; /* Permite que los controles sean visibles dentro del contenedor */
}

.section-title {
    text-align: center;
    color: var(--brand-blue, #2a5298);
    font-family: 'NonBureau', sans-serif;
    font-weight: 700;
    margin-bottom: 3rem;
    font-size: 1.75rem;
}

.partner-logo {
    background-color: transparent;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100px; /* Uniform height */
}

.partner-logo:hover {
    border-color: var(--brand-blue, #2a5298);
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.partner-logo img {
    max-width: 100%;
    max-height: 60px; /* Control logo size inside the box */
    height: auto;
    filter: grayscale(100%); /* Logos start in grayscale */
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%); /* Colorize on hover */
}

/* ============================================
   PARTNERS CAROUSEL CONTROLS
   ============================================ */
/* Flechas de navegación personalizadas para el carousel */
#partnersCarousel .carousel-control-prev,
#partnersCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 10;
}

#partnersCarousel .carousel-control-prev:hover,
#partnersCarousel .carousel-control-next:hover {
    opacity: 1;
}

#partnersCarousel .carousel-control-prev-icon,
#partnersCarousel .carousel-control-next-icon {
    background-color: rgba(42, 82, 152, 0.9); /* Brand blue con transparencia */
    border-radius: 50%;
    width: 45px;
    height: 45px;
    background-size: 50% 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#partnersCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#partnersCarousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--brand-blue, #2a5298);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

/* Posicionamiento dentro del contenedor */
#partnersCarousel .carousel-control-prev {
    left: 10px;
}

#partnersCarousel .carousel-control-next {
    right: 10px;
}

/* ============================================
   PARTNERS CAROUSEL RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    #partnersCarousel .carousel-control-prev,
    #partnersCarousel .carousel-control-next {
        width: 45px;
        height: 45px;
        opacity: 0.7;
    }

    #partnersCarousel .carousel-control-prev-icon,
    #partnersCarousel .carousel-control-next-icon {
        width: 40px;
        height: 40px;
    }

    #partnersCarousel .carousel-control-prev {
        left: 5px;
    }

    #partnersCarousel .carousel-control-next {
        right: 5px;
    }
}

@media (max-width: 768px) {
    #partnersCarousel .carousel-control-prev-icon,
    #partnersCarousel .carousel-control-next-icon {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    #partnersCarousel .carousel-control-prev,
    #partnersCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
        opacity: 0.6;
    }

    #partnersCarousel .carousel-control-prev-icon,
    #partnersCarousel .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
}

/* ============================================
   NUESTRAS EXPERIENCIAS - 4 Cards Verticales
   ============================================ */
/* Cards grandes verticales con background images y hover effects */
.home-experiences {
    background-color: #f8f9fa;
}

.home-experiences .row > .col-lg-3 {
    padding-right: 0;
    padding-left: 0;
}

.home-experiences .experience-card {
    position: relative;
    height: 620px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background-color: #343a40; /* Color de fondo por defecto en caso de que no haya imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.home-experiences .experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.home-experiences .experience-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Overlay oscuro semi-transparente */
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.home-experiences .experience-card:hover::after {
    opacity: 0.9;
}

.home-experiences .experience-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    z-index: 2;
    text-align: center;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.home-experiences .experience-content img {
    max-width: 180px;
    margin-bottom: 1rem;
    filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.home-experiences .experience-content h3 {
    font-family: 'NonBureau', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.home-experiences .experience-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, max-height 0.4s ease-out, transform 0.3s ease-out, margin-bottom 0.3s ease-out;
}

.home-experiences .experience-card:hover .experience-content p {
    opacity: 1;
    max-height: 150px; /* Adjust as needed */
    margin-bottom: 1.5rem;
    transform: translateY(0);
}

.home-experiences .experience-content a {
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 3px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.home-experiences .experience-content a:hover {
    color: #f8f9fa;
    border-bottom-color: #f8f9fa;
}

/* ============================================
   EXPERIENCE CARDS - Background Images
   ============================================ */
/* Background images específicos para cada marca */
.home-experiences #exp-sports { background-image: url('/assets/themes/one2travel/img/bg-one2sports.png'); }
.home-experiences #exp-mexico { background-image: url('/assets/themes/one2travel/img/bg-one2mexico.png'); }
.home-experiences #exp-events { background-image: url('/assets/themes/one2travel/img/bg-one2events.png'); }
.home-experiences #exp-move { background-image: url('/assets/themes/one2travel/img/bg-one2move.png'); }

/* ============================================
   TESTIMONIALS SECTION - Testimonios de Clientes
   ============================================ */
/* Cards de testimoniales con foto del usuario y carousels */
.testimonials-section {
    background-color: #f8f9fa;
}

/* Padding para todos los carruseles de testimonios */
[id^="testimonialsCarousel"] .carousel-item {
    padding-top: 50px;
}

.testimonial-card {
    background-color: #fff;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 1rem;
    text-align: center;
    position: relative;
    border-top: 4px solid transparent;
    transition: all 0.3s ease-in-out;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background-color: #28a745;
    color: #fff;
    border-top-color: #218838;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-top: -65px; /* Adjusted to give more space */
    margin-bottom: 1rem;
}

/* Ajustes para tablet - aumentar padding superior */
@media (max-width: 992px) {
    [id^="testimonialsCarousel"] .carousel-item {
        padding-top: 60px; /* Más espacio para evitar corte */
    }
}

.testimonial-card p {
    font-style: italic;
    color: #6c757d;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease-in-out;
}

.testimonial-card h5 {
    font-family: 'NonBureau', sans-serif;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease-in-out;
}

.testimonial-card span {
    font-size: 0.85rem;
    font-weight: bold;
    color: #6c757d;
    transition: color 0.3s ease-in-out;
}

.testimonial-card:hover p,
.testimonial-card:hover h5 {
    color: #fff;
}

.testimonial-card:hover span {
    color: #e9ecef;
}

/* ============================================
   TESTIMONIALS CAROUSEL CONTROLS
   ============================================ */
/* Flechas de navegación para carousels de testimoniales */
[id^="testimonialsCarousel"] .carousel-control-prev,
[id^="testimonialsCarousel"] .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 10;
}

[id^="testimonialsCarousel"] .carousel-control-prev:hover,
[id^="testimonialsCarousel"] .carousel-control-next:hover {
    opacity: 1;
}

[id^="testimonialsCarousel"] .carousel-control-prev-icon,
[id^="testimonialsCarousel"] .carousel-control-next-icon {
    background-color: rgba(52, 58, 64, 0.9);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    background-size: 50% 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

[id^="testimonialsCarousel"] .carousel-control-prev:hover .carousel-control-prev-icon,
[id^="testimonialsCarousel"] .carousel-control-next:hover .carousel-control-next-icon {
    background-color: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    transform: scale(1.1);
}

/* Posicionamiento */
[id^="testimonialsCarousel"] .carousel-control-prev {
    left: -25px;
}

[id^="testimonialsCarousel"] .carousel-control-next {
    right: -25px;
}

/* ============================================
   TESTIMONIALS CAROUSEL RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    [id^="testimonialsCarousel"] .carousel-control-prev {
        left: 5px;
    }

    [id^="testimonialsCarousel"] .carousel-control-next {
        right: 5px;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    [id^="testimonialsCarousel"] .carousel-item {
        padding-top: 70px; /* Más espacio en mobile para imagen que sobresale */
    }

    [id^="testimonialsCarousel"] .carousel-control-prev,
    [id^="testimonialsCarousel"] .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    [id^="testimonialsCarousel"] .carousel-control-prev-icon,
    [id^="testimonialsCarousel"] .carousel-control-next-icon {
        width: 40px;
        height: 40px;
    }

    .testimonial-card {
        margin: 0.5rem;
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }

    .testimonial-card:hover {
        transform: translateY(-8px); /* Menos movimiento para evitar corte */
    }
}

@media (max-width: 576px) {
    [id^="testimonialsCarousel"] .carousel-item {
        padding-top: 75px; /* Aún más espacio en pantallas muy pequeñas */
    }

    [id^="testimonialsCarousel"] .carousel-control-prev,
    [id^="testimonialsCarousel"] .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    [id^="testimonialsCarousel"] .carousel-control-prev-icon,
    [id^="testimonialsCarousel"] .carousel-control-next-icon {
        width: 35px;
        height: 35px;
    }

    [id^="testimonialsCarousel"] .carousel-control-prev {
        left: 2px;
    }

    [id^="testimonialsCarousel"] .carousel-control-next {
        right: 2px;
    }

    .testimonial-card {
        margin: 0.25rem;
        padding: 1.75rem 1.25rem 1.25rem 1.25rem;
    }

    .testimonial-card:hover {
        transform: translateY(-5px); /* Movimiento mínimo en mobile */
    }

    .testimonial-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* Evitar overflow en testimonials section */
.testimonials-section {
    overflow: hidden;
}

.testimonials-section .container {
    position: relative;
}

/* ============================================
   CONNECT SECTION - Pasos de Conexión
   ============================================ */
/* Cards numerados mostrando pasos para contactar */
.connect-section {
    background-color: #f8f9fa;
}

.connect-section .section-title {
    color: #4b60a9;
}

.connect-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.connect-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #4b60a9;
}

.connect-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.connect-card-header h4 {
    margin: 0;
    font-family: 'NonBureau', sans-serif;
    font-weight: 700;
    color: #4b60a9;
}

.connect-card-number {
    background-color: #4b60a9;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.connect-card p {
    color: #4b60a9;
    font-size: 0.95rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.connect-card a {
    font-weight: bold;
    color: #4b60a9;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.connect-card a:hover {
    border-bottom-color: #4b60a9;
}

.connect-logo {
    max-width: 100%;
    height: auto;
}

/* ============================================
   CONNECT SECTION RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .connect-card {
        margin-bottom: 1.5rem;
    }
}
