@import url('global.css');
@import url('header.css');
@import url('hero.css');
@import url('intro.css');
@import url('process.css');
@import url('products.css');
@import url('slider.css');
@import url('contact.css');
@import url('faq.css');
@import url('footer.css');
@import url('animations.css');

.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-alert.active {
    display: block;
    opacity: 1;
}

.custom-alert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.custom-alert-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-alert-content {
    background: linear-gradient(135deg, 
        rgba(42, 58, 133, 0.95) 0%, 
        rgba(26, 36, 94, 0.95) 100%);
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
    overflow: hidden;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 174, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-alert.active .custom-alert-content {
    transform: translateY(0);
    opacity: 1;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.alert-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
}

.alert-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.alert-body {
    padding: 30px;
    text-align: center;
}

.alert-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffae;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.alert-message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.alert-footer {
    padding: 20px 30px 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-btn {
    background: linear-gradient(135deg, #25D366, #1da851);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-family: 'Geist', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.alert-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

@media screen and (max-width: 768px) {
    .custom-alert-content {
        max-width: 350px;
    }
    
    .alert-header {
        padding: 20px 25px 15px;
    }
    
    .alert-body {
        padding: 25px;
    }
    
    .alert-title {
        font-size: 1.8rem;
    }
    
    .alert-message {
        font-size: 1rem;
    }
    
    .alert-footer {
        padding: 15px 25px 25px;
    }
    
    .alert-btn {
        padding: 14px 35px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 576px) {
    .custom-alert-content {
        max-width: 300px;
    }
    
    .alert-header {
        padding: 18px 20px 12px;
    }
    
    .alert-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .alert-body {
        padding: 20px;
    }
    
    .alert-title {
        font-size: 1.6rem;
    }
    
    .alert-message {
        font-size: 0.95rem;
    }
    
    .alert-footer {
        padding: 12px 20px 20px;
    }
    
    .alert-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}


/* Barra Promocional Mejorada - Efecto Infinito Sin Espacios */
.promo-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #D4B483; /* Color arena */
    color: #000;
    padding: 8px 0;
    z-index: 1001;
    overflow: hidden;
    font-family: 'Geist', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #B89A6D;
}

.promo-marquee {
    display: flex;
    white-space: nowrap;
    animation: marquee-infinite 20s linear infinite;
}

.promo-content {
    display: flex;
    animation: marquee-content 40s linear infinite;
}

.promo-text {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.promo-text span {
    margin: 0 15px;
}

.promo-divider {
    color: #8B6B3D;
    font-weight: 800;
}

/* Animación principal - contenedor se mueve continuamente */
@keyframes marquee-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Animación del contenido duplicado para efecto infinito */
@keyframes marquee-content {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pausar animación al hacer hover */
.promo-bar:hover .promo-marquee {
    animation-play-state: paused;
}

.promo-bar:hover .promo-content {
    animation-play-state: paused;
}

/* Ajustar header para que no quede cubierto por la barra promocional */
.main-header {
    top: 38px; /* Altura de la barra promocional */
}

/* Ajuste para móviles */
@media screen and (max-width: 768px) {
    .promo-bar {
        padding: 6px 0;
    }
    
    .promo-text {
        font-size: 0.8rem;
        padding: 0 15px;
    }
    
    .main-header {
        top: 34px;
    }
    
    .promo-marquee {
        animation: marquee-infinite 15s linear infinite;
    }
    
    .promo-content {
        animation: marquee-content 30s linear infinite;
    }
}

@media screen and (max-width: 576px) {
    .promo-bar {
        padding: 5px 0;
    }
    
    .promo-text {
        font-size: 0.75rem;
        padding: 0 12px;
    }
    
    .main-header {
        top: 32px;
    }
    
    .promo-divider {
        display: inline-block;
        margin: 0 8px;
    }
    
    .promo-marquee {
        animation: marquee-infinite 12s linear infinite;
    }
    
    .promo-content {
        animation: marquee-content 24s linear infinite;
    }
}

@media screen and (max-width: 400px) {
    .promo-text {
        font-size: 0.7rem;
        padding: 0 10px;
    }
    
    .promo-text span {
        margin: 0 8px;
    }
    
    .main-header {
        top: 30px;
    }
}