/* ==========================================================================
   CSS PRINCIPAL - PREVIEW DE MODALES DE CONTACTO PREMIUM (Estilo A & B)
   ========================================================================== */

/* --- Variables Globales y DiseÃƒÂ±o --- */
:root {
    /* Colores del Sistema */
    --bg-dark: #0a0e17;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #ffffff;
    --text-gray: #64748b;
    --accent: #6366f1;
    --border-color: #e2e8f0;

    /* Estilo A Brand Colors */
    --style-a-blue: #2FA7DF;
    --style-a-dark-blue: #2881AD;
    --style-a-light-bg: #f5f9ff;
    --style-a-border: #d0e1fd;
    --style-a-text: #1a1a1a;

    /* Microsoft Brand Colors */
    --msft-blue: #0078d4;
    --msft-dark: #242424;
    --msft-light-bg: #fafafa;
    --msft-border: #f3f3f3;
    --msft-text: #323130;

    /* Fuentes y Sombras */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transiciones */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.modal-contacto {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: 99999999 !important;
    pointer-events: none;
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.5;
}

@keyframes rotateSparkle {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   WIDGET (ESTILO A) - IMPLEMENTACIÃƒâ€œN DETALLADA
   ========================================================================== */
.style-a-widget-container {
    position: relative;
}

/* Overlay para capturar clics fuera del drawer */
.style-a-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.style-a-overlay.active {
    opacity: 1;
    pointer-events: auto !important;
}

/* BotÃ³n de cierre superior (X) */
.style-a-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
}

.style-a-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}


/* BotÃƒÂ³n flotante Estilo A (Sticky Bottom-Right Button) */
.style-a-floating-btn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    background-color: #2FA7DF;
    color: #ffffff;
    border: 2px solid #2FA7DF;
    border-radius: 8px;
    padding: 12px 20px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 100, 210, 0.45);
    z-index: 10001;
    transition: all 0.2s ease-in-out;
    pointer-events: auto !important;
}

.style-a-floating-btn i {
    font-size: 1.15rem;
}

.style-a-floating-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 100, 210, 0.35);
}

/* BotÃƒÂ³n de Estilo A cuando el Drawer estÃƒÂ¡ activo */
.style-a-floating-btn.active {
    background-color: #f3f2f1;
    color: #0064d2;
    border-color: #0064d2;
    box-shadow: none;
}

.style-a-floating-btn.active:hover {
    background-color: #e1dfdd;
    transform: none;
}

/* Drawer estilo tarjeta flotante (Floating Card Drawer) */
.style-a-drawer {
    position: fixed;
    right: 25px;
    bottom: 90px;
    width: 360px;
    max-height: calc(100vh - 120px);
    background: #ffffff;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.style-a-drawer.active {
    opacity: 1;
    pointer-events: auto !important;
    transform: translateY(0);
}

/* Vista de Contenido */
.style-a-drawer-view {
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow: hidden;
}

/* Cabecera Azul Estilo A (Call Us At) */
.style-a-drawer-header-blue {
    background: linear-gradient(#2FA7DF, #2881AD);
    color: #ffffff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
}

.style-a-call-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.style-a-phone-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.style-a-country {
    font-size: 0.72rem;
    opacity: 0.85;
    font-weight: 500;
}

.style-a-phone-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    line-height: 1.2;
    transition: opacity 0.15s ease;
}

.style-a-phone-num:hover {
    opacity: 0.9;
}

.style-a-numbers-link {
    font-size: 0.78rem;
    color: #ffffff;
    opacity: 0.95;
    text-decoration: none;
    margin-top: 4px;
    line-height: 1.35;
}

.style-a-numbers-link u {
    text-underline-offset: 2px;
}

.style-a-numbers-link:hover {
    opacity: 1;
}

/* Cuerpo Blanco Estilo A (Lista de Canales) */
.style-a-drawer-body-white {
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.style-a-channel-row {
    padding: 16px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    cursor: pointer;
    border-bottom: 1px solid #f3f2f1;
    transition: background-color 0.15s ease;
}

.style-a-channel-row:last-child {
    border-bottom: none;
}

.style-a-channel-row:hover {
    background-color: #f3f2f1;
}

.style-a-row-icon {
    color: #323130;
    font-size: 1.1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.style-a-row-icon svg {
    color: #323130;
}

.style-a-row-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-grow: 1;
}

.style-a-row-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0064d2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.style-a-row-desc {
    font-size: 0.8rem;
    color: #605e5c;
    line-height: 1.35;
}

/* Vista del Formulario de Estilo A */
.style-a-form-header {
    padding: 16px 20px;
    background-color: #f3f2f1;
    border-bottom: 1px solid #e1dfdd;
    display: flex;
    align-items: center;
    gap: 12px;
}

.style-a-form-back-btn {
    background: transparent;
    border: none;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    color: #605e5c;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.style-a-form-back-btn:hover {
    background-color: #e1dfdd;
    color: #323130;
}

.style-a-form-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #323130;
}

.style-a-form-container {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.style-a-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.style-a-form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #605e5c;
}

.style-a-form-group input,
.style-a-form-group select {
    font-family: var(--font-primary) !important;
    font-size: 0.85rem !important;
    padding: 8px 10px !important;
    border: 1px solid #d2d0ce !important;
    border-radius: 4px !important;
    color: #323130 !important;
    background-color: #ffffff !important;
    outline: none !important;
    height: 38px !important;
    box-shadow: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    transition: border-color var(--transition-fast) !important;
}

#style-a-message {
    font-family: var(--font-primary) !important;
    font-size: 0.85rem !important;
    padding: 8px 10px !important;
    border: 1px solid #d2d0ce !important;
    border-radius: 4px !important;
    color: #323130 !important;
    background-color: #ffffff !important;
    outline: none !important;
    height: auto !important;
    box-shadow: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    transition: border-color var(--transition-fast) !important;
    resize: vertical;
}

.style-a-form-group input:focus,
.style-a-form-group select:focus,
#style-a-message:focus {
    border-color: #0064d2 !important;
    box-shadow: 0 0 0 2px rgba(0, 100, 210, 0.15) !important;
}

/* Ocultar elementos duplicados generados por Materialize CSS en los selectores */
.style-a-form-group .select-wrapper input.select-dropdown,
.style-a-form-group .select-wrapper .caret,
.style-a-form-group .select-wrapper ul.select-dropdown {
    display: none !important;
}

.style-a-form-group .select-wrapper {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.style-a-submit-btn {
    width: 100% !important;
    background-color: #0064d2 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 20px !important;
    font-family: var(--font-primary) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: auto !important;
    line-height: normal !important;
    text-transform: none !important;
    box-shadow: 0 2px 6px rgba(0, 100, 210, 0.2) !important;
    transition: background-color 0.15s ease, transform 0.1s ease !important;
}

.style-a-submit-btn:hover {
    background-color: #0056b3 !important;
    box-shadow: 0 4px 12px rgba(0, 100, 210, 0.3) !important;
}

.style-a-submit-btn:active {
    transform: translateY(1px) !important;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100005;
    pointer-events: none;
}

.toast {
    background: #0f172a;
    color: var(--text-light);
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    border-left: 4px solid var(--accent);
    transform: translateY(20px);
    pointer-events: auto !important;
}



.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast-icon {
    font-size: 1.1rem;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error .toast-icon {
    color: #ef4444;
}

@keyframes toastIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================================================
   ADAPTATIVIDAD (RESPONSIVE DESIGN)
   ========================================================================== */
@media (max-width: 900px) {
    .style-a-drawer {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 80px;
        max-height: calc(100vh - 100px);
    }

    .style-a-floating-btn {
        right: 15px;
        bottom: 15px;
        padding: 10px 16px;
    }
}

@media (max-width: 380px) {
    .g-recaptcha {
        transform: scale(0.82);
        transform-origin: 0 0;
    }
}

/* Sobrescribir las etiquetas de checkbox de Materialize CSS para que se vean bien dentro del modal */
.style-a-form-group label.style-a-checkbox-text {
    font-size: 0.85rem !important;
    font-weight: normal !important;
    color: #323130 !important;
    display: inline-block !important;
    padding-left: 28px !important;
    height: 22px !important;
    line-height: 22px !important;
    cursor: pointer !important;
    text-transform: none !important;
    margin-bottom: 0 !important;
}

.style-a-form-group p {
    margin: 6px 0 !important;
    padding: 0 !important;
}