/**
 * Ruta: /AdcolimaModal-mejorado/assets/frontend.css
 * Estilos frontend del modal
 */

/* Estilos base del modal */
.adcolima-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483000;
}

.adcolima-modal {
    background: #fff;
    max-width: min(90vw, 880px);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    position: relative;
}

.adcolima-content {
    padding: 0;
    position: relative;
}

.adcolima-img {
    display: block;
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

.adcolima-anchor {
    display: block;
}

.adcolima-close {
    position: absolute;
    right: 0.5rem;
    top: 0.25rem;
    border: 0;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
    color: #333;
    transition: color 0.2s;
}

.adcolima-close:hover {
    color: #000;
}

.adcolima-action {
    margin: 14px auto 18px;
    display: block;
    border: 0;
    background: #555;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.adcolima-action:hover {
    background: #333;
}

/* Estilos del slider */
.adco-slider {
    position: relative;
}

.adco-prev,
.adco-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 6px;
    z-index: 2;
    transition: background 0.2s;
}

.adco-prev {
    left: 8px;
}

.adco-next {
    right: 8px;
}

.adco-prev:focus,
.adco-next:focus {
    outline: none;
}

.adco-prev:hover,
.adco-next:hover {
    background: rgba(0, 0, 0, 0.65);
}

.adco-slide-item {
    position: relative;
}

/* Responsivo */
@media (max-width: 640px) {
    .adcolima-modal {
        max-width: 94vw;
        border-radius: 12px;
    }

    .adcolima-close {
        font-size: 1.75rem;
    }

    .adco-prev,
    .adco-next {
        font-size: 18px;
        padding: 4px 10px;
    }
    
    .adcolima-action {
        font-size: 13px;
        padding: 9px 16px;
    }
}

@media (max-width: 480px) {
    .adcolima-modal {
        max-width: 96vw;
    }
    
    .adco-prev,
    .adco-next {
        font-size: 16px;
        padding: 3px 8px;
    }
}
