/* Botón de Llamada Flotante */
.call-btn-fixed {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background-color: #E10600;
    border: 1px solid white;
    /* Color de marca rojo */
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-red 2s infinite;
}

/* Solo mostrar en móviles, ocultar en escritorio */
@media (min-width: 768px) {
    .call-btn-fixed {
        display: none !important;
    }
}

.call-btn-fixed:hover {
    transform: scale(1.1);
    background-color: #B80500;
    /* Darker red on hover */
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(225, 6, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(225, 6, 0, 0);
    }
}

/* Modal de Confirmación */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background-color: #161529;
    /* erguz-soft-black */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 90%;
    width: 400px;
    text-align: center;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.modal-text {
    color: #9CA3AF;
    /* gray-400 */
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-cancel {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-confirm {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background-color: #E10600;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-confirm:hover {
    background-color: #B80500;
    transform: translateY(-2px);
}

/* Botón Flotante de WhatsApp */
.floating-wa-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #E10600;
    /* ERGUZ Red */
    border: 1px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: wa-float 4s ease-in-out infinite;
}

.floating-wa-btn:hover {
    transform: scale(1.1);
}

@keyframes wa-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Modal de WhatsApp */
.wa-modal {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.wa-modal.active {
    display: flex;
}

.wa-modal-content {
    background-color: #161529;
    /* erguz-soft-black */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
    text-align: left;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
        scale: 0.9;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        scale: 1;
    }
}

.wa-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #9CA3AF;
    transition: color 0.2s;
}

.wa-modal-close:hover {
    color: white;
}

.wa-modal-content h3 {
    margin-top: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.wa-modal-content p {
    color: #9CA3AF;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    color: #E5E7EB;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #E10600;
    background-color: rgba(255, 255, 255, 0.1);
}

.form-group select option {
    background-color: #161529;
    color: white;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background-color: #E10600;
    background: #E10600;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
    text-transform: uppercase;
}

.btn-submit:hover {
    background-color: #B80500;
    background: #B80500;
    transform: translateY(-2px);
}

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #E10600;
    color: white;
    padding: 1rem;
    z-index: 10000;
    font-weight: bold;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5);
}

/* Accessibility: Focus States */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #E10600;
    outline-offset: 4px;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .call-btn-fixed,
    .floating-wa-btn {
        animation: none !important;
    }
}