/* Asturias Carteles - Estilos del Plugin */

.avc-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.avc-loader.avc-loader-hidden {
    opacity: 0;
    pointer-events: none;
}

.avc-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.avc-loader-cartel {
    animation: avc-pulse 2s ease-in-out infinite;
}

.avc-loader-cartel .avc-cartel-svg {
    width: 250px;
    height: auto;
}

@keyframes avc-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.avc-loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #2E8B57;
    border-radius: 50%;
    animation: avc-spin 1s linear infinite;
}

@keyframes avc-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.avc-loader-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #2E8B57;
    color: white;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    display: none !important;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.avc-loader-close:hover {
    background: #1E5631;
    transform: rotate(90deg);
}

.avc-cartel {
    position: fixed;
    z-index: 9999;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.avc-cartel.avc-cartel-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.avc-auto-footer {
    text-align: center;
    width: 100%;
    padding: 20px 0;
    clear: both;
    margin-top: 30px;
}

.avc-auto-footer.avc-position-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 9999;
    padding: 15px;
}

.avc-auto-footer.avc-position-fixed .avc-auto-footer-inner {
    display: inline-block;
    position: relative;
}

.avc-auto-footer-inner {
    display: inline-block;
}

.avc-auto-footer.avc-size-small .avc-cartel-svg {
    width: 180px;
    height: auto;
}

.avc-auto-footer.avc-size-medium .avc-cartel-svg {
    width: 250px;
    height: auto;
}

.avc-auto-footer.avc-size-large .avc-cartel-svg {
    width: 350px;
    height: auto;
}

.avc-cartel-footer.avc-cartel-hidden {
    transform: translateX(-50%) translateY(100%);
}

.avc-cartel-floating-right {
    bottom: 20px;
    right: 20px;
}

.avc-cartel-floating-left {
    bottom: 20px;
    left: 20px;
}

.avc-cartel-content {
    display: inline-block;
}

.avc-cartel-svg {
    display: block;
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.avc-cartel-container {
    position: relative;
    display: inline-block;
}

.avc-cartel-numero {
    position: absolute;
    bottom: 4%;
    left: 50%;
    transform: translateX(-50%);
    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    pointer-events: none;
}

.avc-cartel-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border: none;
    background: #ff4444;
    color: white;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.avc-cartel-close:hover {
    background: #cc0000;
    transform: scale(1.1);
}

.avc-cartel-footer .avc-cartel-close {
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .avc-cartel {
        max-width: calc(100% - 40px);
    }

    .avc-cartel-svg {
        width: 200px;
        height: auto;
    }

    .avc-cartel-floating-right,
    .avc-cartel-floating-left {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .avc-cartel-floating-right .avc-cartel-content,
    .avc-cartel-floating-left .avc-cartel-content {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .avc-cartel-svg {
        width: 160px;
    }
}

body.avc-loader-active {
    overflow: hidden;
}

body.avc-cartel-hidden {
    margin-bottom: 0;
}