/**
 * Brand Categories CSS - Estilos para páginas de categorías de marca
 *
 * Este archivo contiene los estilos para las páginas de categorías (One2Sports, One2Mexico, etc.):
 * - Hero section con logo y descripción
 * - Hero media (imágenes, videos, collages)
 * - Brand description section
 * - Experience carousels por categoría
 * - Experience cards con overlay
 * - Responsive design completo
 *
 * @author One2Travel Development Team
 * @version 1.0
 */

/* ============================================
   HERO SECTION - Sección Principal de Marca
   ============================================ */
/* Hero con logo, título, descripción y media (imagen/video/collage) */
.brand-hero {
    background-color: #ffffff;
    padding: 4rem 0;
    color: #2a5298;
}

.brand-hero-text {
    max-width: 600px;
}

.brand-hero-logo {
    max-height: 68px;
    width: auto;
}

.brand-hero-title {
    font-family: 'NonBureau', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.brand-hero-description {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #4b5563;
    margin-bottom: 0;
    text-align: justify;
}

.brand-hero-media {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.15);
    background-color: #000;
}

.brand-hero-media--collage {
    background: transparent;
    border-radius: 32px;
    padding: 2.5rem 2rem;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: none;
}

.brand-hero-collage {
    position: relative;
    width: clamp(300px, 58vw, 520px);
    height: clamp(220px, 40vw, 340px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-hero-collage .collage-box {
    position: absolute;
    width: 90%;
    height: 100%;
    border-radius: 16px;
    border: 6px solid #ffffff;
    overflow: hidden;
    box-shadow: 0 28px 55px rgba(15, 23, 42, 0.25);
    background-color: #ffffff;
    transition: transform 0.4s ease;
}

.brand-hero-collage .collage-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collage-box-primary {
    top: 50%;
    left: 50%;
    transform: translate(-58%, -51%) rotate(-9deg);
    z-index: 2;
}

.collage-box-secondary {
    top: 50%;
    left: 50%;
    transform: translate(-42%, -48%) rotate(10deg);
    z-index: 1;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.brand-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   HERO VIDEO - Video Embebido
   ============================================ */

.brand-hero-video iframe {
    border: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   BRAND DESCRIPTION - Descripción de la Marca
   ============================================ */
/* Sección con texto descriptivo e imagen opcional */
.brand-description {
    background-color: #fff;
    padding: 4rem 0;
}

.brand-description .container {
    max-width: 1200px;
}

.brand-description-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.brand-description-text {
    flex: 1;
}

.brand-description-text h2 {
    font-family: 'NonBureau', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.brand-description-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
}

.brand-description-image {
    flex: 0 0 300px;
    text-align: center;
}

.brand-description-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ============================================
   EXPERIENCES SECTION - Listado de Experiencias
   ============================================ */
/* Sección que contiene múltiples categorías con sus carousels */
.experiences-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.experiences-title {
    text-align: center;
    margin-bottom: 3rem;
}

.experiences-title h2 {
    font-family: 'NonBureau', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2a5298;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

/* ============================================
   CATEGORY SECTION - Sección de Categoría Individual
   ============================================ */
/* Cada categoría tiene su header con título, icono y controles */
.category-section {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2a5298;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
}

.category-title h3 {
    font-family: 'NonBureau', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2a5298;
    margin: 0;
}

.category-controls {
    display: flex;
    gap: 0.5rem;
}

.carousel-control-custom {
    width: 40px;
    height: 40px;
    background-color: #2a5298;
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-control-custom:hover {
    background-color: #141728;
    transform: scale(1.1);
}

.carousel-control-custom:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   EXPERIENCE CARDS - Cards de Experiencias
   ============================================ */
/* Cards con imagen, overlay hover y título */
.experience-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    /* border-radius: 10px; */
}

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

.experience-card-image {
    --media-card-min-height: 200px;
    --media-card-fit: cover;
    position: relative;
    min-height: 200px;
    background-color: #fff;
    background-image: var(--experience-card-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.35s ease, background-size 0.35s ease;
}

.experience-card:hover .experience-card-image {
    background-size: 110%;
}

.experience-card-overlay {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.experience-card-logo-wrapper {
    width: min(90%, 280px);
    max-height: 160px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.28s ease 0.05s;
}

.experience-card:hover .experience-card-logo-wrapper,
.experience-card:focus-within .experience-card-logo-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.experience-card-logo {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.experience-card-content {
    padding: 1.5rem;
}

.experience-card-title {
    font-family: 'NonBureau', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   CAROUSEL - Configuración de Carruseles
   ============================================ */
/* Estilos base para carousels de experiencias */
.experience-carousel {
    position: relative;
}

.experience-carousel .carousel-inner {
    overflow: hidden;
}

.experience-carousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

.experience-carousel .carousel-item.active {
    display: flex;
}

.experience-carousel .carousel-item.active .row {
    width: 100%;
}

/* ============================================
   RESPONSIVE DESIGN - Media Queries
   ============================================ */
/* Ajustes para diferentes tamaños de pantalla */
@media (max-width: 1200px) {
    .brand-hero h1 {
        font-size: 3rem;
    }

    .brand-description-content {
        gap: 2rem;
    }

    .brand-description-image {
        flex: 0 0 250px;
    }
}

@media (max-width: 992px) {
    .brand-hero {
        padding: 3rem 0;
        text-align: center;
    }

    .brand-hero-text,
    .brand-hero-media {
        margin: 0 auto;
    }

    .brand-hero-media--collage {
        padding: 2rem 1.5rem;
        margin-bottom: 2.5rem;
    }

    .brand-hero-collage {
        width: min(440px, 95%);
        height: min(280px, 58vw);
    }

    .brand-hero-title {
        font-size: 2.25rem;
    }

    .brand-description-content {
        flex-direction: column;
        text-align: center;
    }

    .brand-description-image {
        flex: none;
        max-width: 300px;
        margin: 0 auto;
    }

    .experiences-title h2 {
        font-size: 2rem;
    }

    .category-title h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .brand-hero-title {
        font-size: 1.9rem;
    }

    .brand-hero-description {
        font-size: 1rem;
    }

    .brand-hero-media--collage {
        padding: 1.75rem 1.25rem;
    }

    .brand-hero-collage {
        width: min(360px, 96%);
        height: min(240px, 70vw);
    }

    .brand-hero-collage .collage-box {
        border-radius: 14px;
    }

    .brand-hero-logo {
        max-height: 60px;
    }

    .brand-description {
        padding: 3rem 0;
    }

    .brand-description-text h2 {
        font-size: 2rem;
    }

    .experiences-section {
        padding: 3rem 0;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .category-controls {
        align-self: flex-end;
    }

    .carousel-control-custom {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .brand-hero {
        padding: 0rem 0 3rem;
        min-height: auto;
    }

    .brand-hero h1 {
        font-size: 1.8rem;
    }

    .brand-hero-media--collage {
        padding: 1.5rem 1rem;
        border-radius: 22px;
    }

    .brand-hero-collage {
        width: min(320px, 100%);
        height: min(210px, 68vw);
    }

    .brand-hero-collage .collage-box {
        border-radius: 12px;
    }

    .brand-hero-logo {
        max-height: 54px;
    }

    .brand-description-text h2 {
        font-size: 1.8rem;
    }

    .experiences-title h2 {
        font-size: 1.8rem;
    }

    .category-title h3 {
        font-size: 1.3rem;
    }

    .experience-card-content {
        padding: 1rem;
    }

    .experience-card-title {
        font-size: 1rem;
    }
}

/* ============================================
   CAROUSEL ANIMATIONS - Animaciones
   ============================================ */
.experience-carousel.auto-advance .carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Pause animation on hover */
.experience-carousel:hover .carousel-item {
    transition: none;
}
