:root {
    --gold: #f8c300;
    --light-gold: #ffd700;
    --dark-bg: #0a0a0a;
    --light-text: #f5f5f5;
    --medium-gray: #333;
    --light-gray: #666;
}

body {
    background-color: #000000;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

.bg-dark {
    background-color: #000000 !important;
}

.border-top {
    border-top-color: #333 !important;
}

/* Eliminar todos los espacios entre imágenes */
.gallary {
    margin: 0 !important;
    padding: 0 !important;
}

.gallary.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.gallary-item {
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.gallary-item:hover {
    transform: scale(1.02);
    z-index: 10;
}

.gallary-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none !important;
    transition: transform 0.5s ease;
}

.gallary-item:hover .gallary-img {
    transform: scale(1.05);
}

/* 6 columnas en pantallas grandes SIN ESPACIOS */
.gallary .gallary-item {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

/* 3 columnas en tablets */
@media (max-width: 992px) {
    .gallary .gallary-item {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* 2 columnas en móviles */
@media (max-width: 768px) {
    .gallary .gallary-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* 1 columna en móviles pequeños */
@media (max-width: 576px) {
    .gallary .gallary-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Animación de luz dorada para el título */
.light-title {
    position: relative;
    color: white;
    font-size: 2.5rem;
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
    overflow: hidden;
}

.light-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(248, 195, 0, 0.3), 
        rgba(248, 195, 0, 0.6), 
        rgba(248, 195, 0, 0.3), 
        transparent);
    animation: light-sweep 4s ease-in-out infinite;
}

@keyframes light-sweep {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
}

/* Estilos para el video de fondo */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 37, 41, 0.85);
    z-index: -1;
}

/* Ajuste específico para el header con video */
.header {
    position: relative;
    overflow: hidden;
    height: 100vh;
    max-height: 900px;
    min-height: 750px;
}

.header .overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* MODAL CON DIMENSIONES FIJAS 1920x1080 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    animation: fadeIn 0.4s ease;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.fixed-modal {
    width: 1920px;
    height: 1080px;
    max-width: 90vw;
    max-height: 90vh;
    margin: auto;
    position: relative;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: modalScaleUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Modal Header */
.modal-header-fixed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
}

.modal-title-fixed {
    color: var(--light-text);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.close-modal-fixed {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal-fixed:hover {
    opacity: 1;
    background: rgba(248, 195, 0, 0.2);
    border-color: var(--gold);
    color: var(--gold);
}

/* Contenedor de imagen fija 1920x1080 */
.modal-image-container-fixed {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-fixed {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* CAJA NEGRA SEMI-TRANSPARENTE EN PARTE DERECHA */
.text-overlay-box {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    max-width: 35%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInRight 0.5s ease-out 0.3s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Estilos del texto dentro de la caja - VERSIÓN SIMPLIFICADA */
.box-title {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(248, 195, 0, 0.3);
}

.box-description {
    color: #f0f0f0;
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
}

/* Controles del carrusel */
.carousel-controls-fixed {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot-fixed {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot-fixed.active {
    background: var(--gold);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(248, 195, 0, 0.5);
}

.carousel-nav-fixed {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 40px;
    z-index: 10;
}

.carousel-nav-btn-fixed {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-text);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.8rem;
    opacity: 0.7;
}

.carousel-nav-btn-fixed:hover {
    background: rgba(248, 195, 0, 0.2);
    border-color: var(--gold);
    color: var(--gold);
    opacity: 1;
    transform: scale(1.1);
}

/* Contador de imágenes */
.image-counter {
    position: absolute;
    bottom: 40px;
    right: 40px;
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 20px;
    z-index: 10;
    opacity: 0.8;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalScaleUp {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Clases para carrusel */
.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.carousel-slide.active-slide {
    display: block;
}

/* Responsive - Ajustar para pantallas más pequeñas */
@media (max-width: 1920px) {
    .fixed-modal {
        width: 90vw;
        height: auto;
        aspect-ratio: 16/9; /* Mantener relación 16:9 */
    }
    
    .text-overlay-box {
        right: 30px;
        width: 350px;
    }
}

@media (max-width: 1200px) {
    .text-overlay-box {
        width: 320px;
        padding: 25px;
    }
    
    .carousel-nav-btn-fixed {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .text-overlay-box {
        width: 300px;
        padding: 20px;
        right: 20px;
    }
    
    .box-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-header-fixed {
        padding: 20px;
    }
    
    .fixed-modal {
        width: 95vw;
    }
    
    /* En móviles, la caja se coloca abajo */
    .text-overlay-box {
        position: absolute;
        top: auto;
        bottom: 100px;
        right: 50%;
        transform: translateX(50%);
        width: 85%;
        max-width: 500px;
        max-height: 40%;
        overflow-y: auto;
    }
    
    .carousel-nav-fixed {
        padding: 0 20px;
    }
    
    .carousel-nav-btn-fixed {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-controls-fixed {
        bottom: 20px;
    }
    
    .image-counter {
        bottom: 20px;
        right: 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .text-overlay-box {
        width: 90%;
        padding: 15px;
        bottom: 80px;
    }
    
    .box-description {
        font-size: 0.9rem;
    }
    
    .carousel-nav-btn-fixed {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .box-title {
        font-size: 0.9rem;
    }
}

@media (max-height: 800px) {
    .text-overlay-box {
        max-height: 70%;
        overflow-y: auto;
    }
    /* ==============================================
   SECCIÓN NUESTRAS MARCAS - ESTILOS ORIGINALES OPTIMIZADOS
   ============================================== */

.brands-section {
    background-color: #000;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.brands-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(248, 195, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.brands-main-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.brands-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.brands-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    width: 220px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.brand-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(248, 195, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.brand-item:hover::before {
    opacity: 1;
}

.brand-img {
    width: 150px;
    height: 75px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.brand-item:hover .brand-img {
    transform: scale(1.1);
    filter: brightness(1) invert(0) drop-shadow(0 0 10px rgba(248, 195, 0, 0.3));
}

.brand-name {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.brand-item:hover .brand-name {
    color: var(--gold);
}

.brand-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.brand-counter {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    margin-top: 5px;
    font-family: 'Arial', sans-serif;
    position: relative;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(248, 195, 0, 0.2);
    min-width: 120px;
    transition: all 0.3s ease;
}

.brand-item:hover .brand-counter {
    background: rgba(248, 195, 0, 0.1);
    border-color: var(--gold);
    transform: scale(1.05);
}

.brand-counter::before {
    content: '+';
    position: absolute;
    left: 8px;
    color: var(--light-gold);
    opacity: 0.7;
}

/* Efecto de brillo en hover */
.brand-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(248, 195, 0, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.brand-item:hover::after {
    opacity: 1;
    animation: shine 1.5s ease;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Animación de contadores */
@keyframes counterIncrement {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.counting .brand-counter {
    animation: counterIncrement 0.5s ease forwards;
}

/* Responsive */
@media (max-width: 1200px) {
    .brands-container {
        gap: 20px;
    }
    
    .brand-item {
        width: 200px;
        min-height: 260px;
        padding: 20px;
    }
    
    .brand-img {
        width: 140px;
        height: 70px;
    }
    
    .brand-counter {
        font-size: 1.6rem;
        min-width: 110px;
        padding: 7px 12px;
    }
}

@media (max-width: 992px) {
    .brands-section {
        padding: 60px 0;
    }
    
    .brands-main-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .brands-container {
        gap: 15px;
    }
    
    .brand-item {
        width: 180px;
        min-height: 240px;
        padding: 15px;
    }
    
    .brand-img {
        width: 120px;
        height: 60px;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
    
    .brand-counter {
        font-size: 1.4rem;
        min-width: 100px;
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    .brands-container {
        flex-direction: column;
        align-items: center;
        max-width: 400px;
    }
    
    .brand-item {
        width: 100%;
        max-width: 300px;
        min-height: 200px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 20px;
    }
    
    .brand-img {
        width: 100px;
        height: 50px;
        margin-right: 20px;
        margin-bottom: 0;
    }
    
    .brand-content {
        flex: 1;
        text-align: left;
    }
    
    .brand-name {
        margin-top: 0;
    }
    
    .brand-description {
        margin-bottom: 10px;
    }
    
    .brand-counter {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        margin-top: 0;
        font-size: 1.3rem;
        min-width: auto;
        padding: 5px 10px;
    }
}

@media (max-width: 576px) {
    .brands-main-title {
        font-size: 1.8rem;
    }
    
    .brand-item {
        flex-direction: column;
        text-align: center;
        min-height: 220px;
    }
    
    .brand-img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .brand-content {
        text-align: center;
        width: 100%;
    }
    
    .brand-counter {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 10px;
        display: inline-block;
    }

}