/* ==========================================================================
   PRO PROTECCIÓN CHILE - PLATAFORMA CRO MASTER INTERACTIVA
   Estilos para los 4 Módulos y 17 Herramientas Interactivas
   100% Libre de Emojis | Estándar Vectorial SVG | Mobile First
   ========================================================================== */

:root {
    --cro-bg-base: #f8fafc;
    --cro-bg-card: #ffffff;
    --cro-bg-alt: #f1f5f9;
    --cro-border: #e2e8f0;
    --cro-border-focus: #2563eb;
    
    --cro-primary: #2563eb;
    --cro-primary-hover: #1d4ed8;
    --cro-primary-light: #eff6ff;
    
    --cro-success: #10b981;
    --cro-success-hover: #059669;
    --cro-success-light: #ecfdf5;
    
    --cro-warning: #f59e0b;
    --cro-warning-light: #fef3c7;
    
    --cro-purple: #7c3aed;
    --cro-purple-light: #f3e8ff;
    
    --cro-text-main: #0f172a;
    --cro-text-muted: #475569;
    --cro-text-light: #64748b;
    
    --cro-wsp: #25d366;
    --cro-wsp-hover: #1eb854;
    
    --cro-radius-lg: 20px;
    --cro-radius-md: 14px;
    --cro-radius-sm: 8px;
    
    --cro-shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --cro-shadow-md: 0 8px 24px rgba(0,0,0,0.06);
    --cro-shadow-lg: 0 16px 36px rgba(0,0,0,0.08);
}

/* Master Section Wrapper */
.cro-master-section {
    padding: 70px 0;
    background-color: var(--cro-bg-base);
    border-top: 1px solid var(--cro-border);
    position: relative;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--cro-text-main);
}

.cro-master-section.alt-bg {
    background-color: #ffffff;
}

.cro-module-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.cro-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.cro-badge-pill.blue {
    background: var(--cro-primary-light);
    color: var(--cro-primary);
    border: 1px solid #bfdbfe;
}

.cro-badge-pill.green {
    background: var(--cro-success-light);
    color: #047857;
    border: 1px solid #a7f3d0;
}

.cro-badge-pill.purple {
    background: var(--cro-purple-light);
    color: var(--cro-purple);
    border: 1px solid #ddd6fe;
}

.cro-badge-pill.amber {
    background: var(--cro-warning-light);
    color: #b45309;
    border: 1px solid #fde68a;
}

.cro-badge-pill svg {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    flex-shrink: 0 !important;
    fill: currentColor;
}

.cro-module-title {
    font-size: clamp(1.7rem, 4.5vw, 2.4rem);
    font-weight: 800;
    color: var(--cro-text-main);
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cro-module-desc {
    font-size: clamp(0.92rem, 2.8vw, 1.05rem);
    color: var(--cro-text-muted);
    line-height: 1.55;
}

/* Master Navigation Hub Tabs */
.cro-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    padding: 0 16px;
}

.cro-tab-btn {
    background: #ffffff;
    border: 2px solid var(--cro-border);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--cro-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    user-select: none;
}

.cro-tab-btn svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    flex-shrink: 0 !important;
    fill: var(--cro-text-light);
    transition: fill 0.25s ease;
}

.cro-tab-btn:hover {
    border-color: var(--cro-primary);
    color: var(--cro-primary);
}

.cro-tab-btn:hover svg {
    fill: var(--cro-primary);
}

.cro-tab-btn.active {
    background: var(--cro-primary);
    border-color: var(--cro-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.cro-tab-btn.active svg {
    fill: #ffffff;
}

/* Card Containers & Grids */
.cro-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.cro-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 860px) {
    .cro-grid-2, .cro-grid-3 {
        grid-template-columns: 1fr;
        max-width: 580px;
        margin: 0 auto;
    }
}

.cro-card {
    background: var(--cro-bg-card);
    border: 1px solid var(--cro-border);
    border-radius: var(--cro-radius-lg);
    padding: 28px 24px;
    box-shadow: var(--cro-shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 480px) {
    .cro-card {
        padding: 20px 16px;
        border-radius: var(--cro-radius-md);
    }
}

.cro-card:hover {
    border-color: var(--cro-primary);
    box-shadow: var(--cro-shadow-lg);
}

.cro-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cro-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--cro-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cro-card-icon.blue {
    background: var(--cro-primary-light);
}
.cro-card-icon.blue svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    flex-shrink: 0 !important;
    fill: var(--cro-primary);
}

.cro-card-icon.green {
    background: var(--cro-success-light);
}
.cro-card-icon.green svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    flex-shrink: 0 !important;
    fill: var(--cro-green);
}

.cro-card-icon.purple {
    background: var(--cro-purple-light);
}
.cro-card-icon.purple svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    flex-shrink: 0 !important;
    fill: var(--cro-purple);
}

.cro-card-icon.amber {
    background: var(--cro-warning-light);
}
.cro-card-icon.amber svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    flex-shrink: 0 !important;
    fill: var(--cro-amber);
}

.cro-card-title {
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--cro-text-main);
    line-height: 1.25;
}

.cro-card-sub {
    font-size: 0.8rem;
    color: var(--cro-text-light);
    font-weight: 600;
}

/* WhatsApp Conversion Button */
.cro-btn-wsp {
    width: 100%;
    background-color: var(--cro-wsp);
    color: #ffffff;
    padding: 13px 18px;
    border-radius: 30px;
    font-size: 0.92rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    transition: all 0.25s ease;
    text-decoration: none;
    margin-top: 18px;
}

.cro-btn-wsp svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex-shrink: 0 !important;
    fill: #ffffff;
}

.cro-btn-wsp:hover {
    background-color: var(--cro-wsp-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* Secondary Action Button */
.cro-btn-action {
    background: var(--cro-primary-light);
    color: var(--cro-primary);
    border: 1px solid #bfdbfe;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cro-btn-action svg {
    width: 16px;
    height: 16px;
    fill: var(--cro-primary);
}

.cro-btn-action:hover {
    background: var(--cro-primary);
    color: #ffffff;
}

.cro-btn-action:hover svg {
    fill: #ffffff;
}

/* Sliders & Range Controls */
.cro-slider-group {
    margin: 16px 0;
}

.cro-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cro-range-input {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #cbd5e1;
    outline: none;
    cursor: pointer;
}

.cro-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--cro-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
    transition: transform 0.15s ease;
}

.cro-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Visual Bar Comparisons */
.cro-comp-bar-wrapper {
    margin: 14px 0;
}

.cro-comp-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.cro-comp-bar-track {
    width: 100%;
    height: 22px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.cro-comp-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Toggle Switch Style */
.cro-toggle-container {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 2px solid var(--cro-border);
    border-radius: 30px;
    padding: 4px;
    gap: 6px;
}

.cro-toggle-opt {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cro-text-muted);
}

.cro-toggle-opt svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.cro-toggle-opt.active {
    background: var(--cro-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Interactive Interactive Result Box */
.cro-result-box {
    background: #f8fafc;
    border: 2px solid var(--cro-border);
    border-radius: var(--cro-radius-md);
    padding: 16px;
    text-align: center;
    margin: 16px 0;
}

.cro-result-box.highlight {
    background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%);
    border-color: #a7f3d0;
}

.cro-result-title {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--cro-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cro-result-value {
    font-size: clamp(1.4rem, 4vw, 1.85rem);
    font-weight: 800;
    color: var(--cro-text-main);
    line-height: 1.2;
}

.cro-result-sub {
    font-size: 0.82rem;
    color: var(--cro-text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

/* Vector SVG Map Markers & Badges */
.cro-map-container {
    background: #0f172a;
    border-radius: var(--cro-radius-lg);
    padding: 24px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.cro-comuna-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.cro-chip {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cro-chip:hover {
    background: rgba(37, 99, 235, 0.4);
    border-color: #2563eb;
}

.cro-chip.active {
    background: #2563eb;
    border-color: #3b82f6;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
}

/* Modal Windows for Quote Requests */
.cro-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
}

.cro-modal-backdrop.active {
    display: flex;
}

.cro-modal-dialog {
    background: #ffffff;
    border-radius: var(--cro-radius-lg);
    max-width: 580px;
    width: 100%;
    padding: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.cro-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.cro-modal-close svg {
    width: 16px;
    height: 16px;
    fill: var(--cro-text-muted);
}

.cro-modal-close:hover {
    background: #e2e8f0;
}

/* =========================================================
   OCULTAR BADGE Y FEEDBACK DRAWER DE NETLIFY
   ========================================================= */
#netlify-drawer,
iframe#netlify-drawer,
iframe[src*="netlify"],
div[class*="netlify-drawer"],
div[id*="netlify-drawer"],
[data-netlify-badge],
.netlify-badge,
[class*="feedback-badge"],
div[style*="z-index: 2147483647"],
[data-netlify-deploy-id] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    z-index: -1 !important;
}


        /* =========================================================
           MOBILE ULTRA-REFINEMENT (PREVENT OVERFLOW & ZERO COLLISION)
           ========================================================= */
        html, body {
            overflow-x: hidden !important;
            max-width: 100vw !important;
            width: 100% !important;
        }

        .cta-mobile-text {
            display: none;
        }

        @media (max-width: 768px) {
            .nav-phone-contact {
                display: none !important;
            }
            .nav-actions {
                gap: 8px !important;
            }
            .brand-logo {
                gap: 6px !important;
            }
            .brand-logo-img {
                height: 38px !important;
                max-width: 44px !important;
            }
            .brand-title {
                font-size: 0.98rem !important;
            }
            .brand-tagline {
                display: none !important;
            }
            .nav-cta-btn {
                padding: 6px 12px !important;
                font-size: 0.78rem !important;
                gap: 4px !important;
            }
            .cta-desktop-text {
                display: none !important;
            }
            .cta-mobile-text {
                display: inline !important;
            }
            .hamburger-btn {
                width: 36px !important;
                height: 36px !important;
                padding: 6px 8px !important;
            }
        }

        @media (max-width: 480px) {
            .navbar {
                padding: 6px 0 !important;
            }
            .nav-content {
                padding: 0 10px !important;
                gap: 6px !important;
            }
            .brand-title {
                font-size: 0.88rem !important;
                letter-spacing: 0.2px !important;
            }
            .brand-logo-img {
                height: 34px !important;
                max-width: 38px !important;
            }
            .nav-cta-btn {
                padding: 6px 10px !important;
                font-size: 0.74rem !important;
            }

            /* Floating Bot Widget on Mobile: High-Visibility Pill */
            .pro-bot-widget-container {
                bottom: 16px !important;
                right: 14px !important;
                z-index: 999999 !important;
            }
            .pro-bot-trigger {
                padding: 9px 14px !important;
                border-radius: 30px !important;
                width: auto !important;
                height: 48px !important;
                min-width: unset !important;
                min-height: unset !important;
                justify-content: center !important;
                align-items: center !important;
                gap: 8px !important;
                box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5) !important;
                background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 60%, #0284c7 100%) !important;
                border: 2px solid rgba(255, 255, 255, 0.35) !important;
            }
            .pro-bot-avatar-wrap {
                width: 28px !important;
                height: 28px !important;
                box-shadow: none !important;
            }
            .pro-bot-avatar-wrap svg {
                width: 17px !important;
                height: 17px !important;
            }
            .pro-bot-label-box {
                display: flex !important;
                flex-direction: column !important;
                line-height: 1.1 !important;
                text-align: left !important;
            }
            .pro-bot-label-title {
                font-size: 0.84rem !important;
                font-weight: 800 !important;
                color: #ffffff !important;
                white-space: nowrap !important;
                letter-spacing: -0.2px !important;
            }
            .pro-bot-label-sub {
                display: none !important;
            }
            .pro-bot-chat-window {
                position: fixed !important;
                bottom: 72px !important;
                right: 12px !important;
                left: 12px !important;
                width: auto !important;
                max-width: 100vw !important;
                height: calc(100vh - 95px) !important;
                max-height: 620px !important;
                border-radius: 20px !important;
                z-index: 1000000 !important;
            }

            /* Floating WhatsApp on Mobile: Symmetrical 50px Button */
            .floating-wsp {
                padding: 12px !important;
                border-radius: 50% !important;
                width: 50px !important;
                height: 50px !important;
                min-width: 50px !important;
                min-height: 50px !important;
                justify-content: center !important;
                align-items: center !important;
                bottom: 16px !important;
                left: 16px !important;
                box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45) !important;
            }
            .floating-wsp span {
                display: none !important;
            }

            /* EEAT top bar */
            .eeat-badge-bar {
                font-size: 0.70rem !important;
                padding: 5px 8px !important;
                gap: 4px 10px !important;
            }
        }
