/* ========================================================
   1. ELIMINAR CINTILLO / PANEL BLANCO VACÍO EN EL FOOTER
   ======================================================== */
.a2w_footer_section,
.a2w_footer_section .footer,
.a2w_footer_section .col-md-12,
.a2w_footer_section .col-md-6,
.a2w_footer_section .col-md-3 {
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.a2w_footer_section .panel,
.a2w_footer_section .panel-default,
.a2w_footer_section .panel-body,
.a2w_footer_section .avcms-module-position,
.panel:has(.chat-button),
.panel-default:has(.chat-button),
.panel-body:has(.chat-button) {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

/* ========================================================
   2. BOTONES FLOTANTES SIMÉTRICOS (CHAT VERDE Y SOPORTE NARANJA)
   ======================================================== */
/* Botón Verde: Chat Bot */
.chat-button {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 52px !important;
    height: 52px !important;
    background: #25D366 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45) !important;
    z-index: 9999 !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.chat-button:hover {
    transform: scale(1.08) !important;
    background: #128C7E !important;
    box-shadow: 0 6px 20px rgba(18, 140, 126, 0.6) !important;
}
.chat-button svg {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
}

/* Botón Naranja: Soporte / Reportar */
.ck-report-btn {
    position: fixed !important;
    bottom: 84px !important;
    right: 20px !important;
    width: 52px !important;
    height: 52px !important;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.45) !important;
    z-index: 9998 !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.ck-report-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.6) !important;
}
.ck-report-btn .ck-report-bubble {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #c2410c;
    font: 800 13px/1 'Outfit', 'Plus Jakarta Sans', Arial, sans-serif;
    padding: 8px 12px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
    white-space: nowrap;
    pointer-events: none;
}
.ck-report-btn .ck-report-bubble::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    margin-top: -6px;
    border: 6px solid transparent;
    border-left-color: #ffffff;
}
.ck-report-btn svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
}

/* Responsivo Móvil: Exactamente alineados y simétricos */
@media (max-width: 767px) {
    .chat-button {
        bottom: 16px !important;
        right: 16px !important;
        width: 48px !important;
        height: 48px !important;
    }
    .chat-button svg {
        width: 26px !important;
        height: 26px !important;
    }
    .ck-report-btn {
        bottom: 74px !important;
        right: 16px !important;
        width: 48px !important;
        height: 48px !important;
    }
    .ck-report-btn svg {
        width: 22px !important;
        height: 22px !important;
    }
    .ck-report-btn .ck-report-bubble {
        display: none !important;
    }
}

/* Ventana Flotante del Chatbot / Agente */
.chat-window {
    position: fixed !important;
    bottom: 84px !important;
    right: 20px !important;
    width: 380px !important;
    max-width: calc(100vw - 32px) !important;
    height: 580px !important;
    max-height: calc(100vh - 105px) !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28) !important;
    z-index: 100000 !important;
    display: none;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid #cbd5e1 !important;
    box-sizing: border-box !important;
}
.chat-window.active {
    display: flex !important;
}
.chat-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    font-weight: 800 !important;
    font-size: 14.5px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}
.close-chat {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 20px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}
.close-chat:hover {
    background: rgba(255, 255, 255, 0.35) !important;
}
.chat-iframe {
    flex: 1 !important;
    border: none !important;
    width: 100% !important;
    height: 100% !important;
    background: #f8fafc !important;
}
@media (max-width: 767px) {
    .chat-window {
        bottom: 74px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        max-width: none !important;
        height: 75vh !important;
    }
}

/* ========================================================
   3. FOOTER INTEGRAL Y PROFESIONAL CHANNELKIDS
   ======================================================== */
.ck-main-footer {
    background: #ffffff !important;
    color: #475569 !important;
    border-top: 4px solid #0284c7 !important;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    position: relative !important;
    z-index: 10 !important;
    margin-top: 0 !important;
    box-shadow: 0 -10px 30px rgba(2, 132, 199, 0.12) !important;
}

/* Se conserva espacio al pie del contenido para que el fondo celeste con doodles global
   continue visible alrededor de las tarjetas, incluso antes del footer. */
.a2w_content_section {
    padding-bottom: 40px !important;
}

/* El wrapper del footer no debe pintar una capa blanca sobre el fondo global.
   Se centra en pantallas anchas para dejar visible el doodles alrededor de las
   tarjetas, que ya tienen su propio fondo y esquinas redondeadas. */
.a2w_footer_top {
    max-width: 1170px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Cintillo de nubes decorativo como transicion suave hacia el footer. */
.ck-main-footer::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
    height: 18px;
    background-image: url('/webmaster/templates/frontend/kidsoo/images/footer-strip.png');
    background-repeat: repeat-x;
    background-position: center bottom;
    pointer-events: none;
}

.ck-footer-top-grid {
    padding: 50px 0 35px !important;
}

.ck-footer-brand-wrap {
    margin-bottom: 25px;
}

.ck-footer-logo-text {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    letter-spacing: -0.5px !important;
}
.ck-footer-logo-text .ck-brand-kids {
    color: #0284c7 !important;
}
.ck-footer-ai-badge {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.ck-footer-desc {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #64748b !important;
    margin: 14px 0 20px !important;
}

.ck-footer-social-row {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.ck-footer-social-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(15, 23, 42, 0.05) !important;
    color: #0f172a !important;
    font-size: 16px !important;
    text-decoration: none !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    transition: all 0.25s ease !important;
}
.ck-footer-social-btn:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4) !important;
}
.ck-footer-social-btn.fb:hover { background: #1877F2 !important; }
.ck-footer-social-btn.pin:hover { background: #E60023 !important; }
.ck-footer-social-btn.yt:hover { background: #FF0000 !important; }
.ck-footer-social-btn.wa:hover { background: #25D366 !important; }

.ck-footer-col-title {
    color: #0284c7 !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    margin: 0 0 16px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border-bottom: 2px solid rgba(2, 132, 199, 0.2) !important;
    padding-bottom: 8px !important;
}

.ck-footer-nav-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ck-footer-nav-item {
    margin-bottom: 9px !important;
}

.ck-footer-nav-link {
    color: #64748b !important;
    font-size: 13px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}
.ck-footer-nav-link:hover {
    color: #0f172a !important;
    text-decoration: none !important;
    transform: translateX(4px) !important;
}
.ck-footer-nav-link.highlight {
    color: #0284c7 !important;
    font-weight: 700 !important;
}
.ck-footer-nav-link.highlight:hover {
    color: #0369a1 !important;
}

.ck-footer-trust-badges {
    margin-top: 15px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.ck-trust-pill {
    background: rgba(15, 23, 42, 0.04) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    color: #64748b !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.ck-footer-bottom-bar {
    background: #f8fafc !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    padding: 18px 0 !important;
    font-size: 12.5px !important;
    color: #64748b !important;
}

.ck-footer-bottom-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.ck-footer-legal-quicklinks {
    display: flex !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ck-footer-legal-quicklinks a {
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 12px !important;
    transition: color 0.2s ease !important;
}
.ck-footer-legal-quicklinks a:hover {
    color: #0284c7 !important;
    text-decoration: underline !important;
}

@media (max-width: 991px) {
    .ck-footer-col {
        margin-bottom: 30px !important;
    }
}
@media (max-width: 767px) {
    .ck-footer-bottom-flex {
        flex-direction: column !important;
        text-align: center !important;
    }
    .ck-footer-legal-quicklinks {
        justify-content: center !important;
    }
}

/* ========================================================
   4. ESTILO PARA DOCUMENTOS LEGALES (PÁGINAS /PAGE/...)
   ======================================================== */
.ck-legal-document {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #334155;
}
.ck-legal-hero {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 25px;
}
.ck-legal-hero h1 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}
.ck-legal-updated {
    font-size: 13px;
    color: #0284c7;
    font-weight: 600;
    margin: 0;
}
.ck-legal-section {
    margin-bottom: 25px;
}
.ck-legal-section h2 {
    font-size: 18px;
    font-weight: 800;
    color: #0369a1;
    margin: 0 0 12px 0;
}
.ck-legal-section p {
    font-size: 14.5px;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 12px 0;
}
.ck-legal-section ul, .ck-legal-section ol {
    padding-left: 22px;
    margin-bottom: 15px;
}
.ck-legal-section li {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 8px;
}
@media (max-width: 767px) {
    .ck-legal-document {
        padding: 20px 18px;
    }
    .ck-legal-hero h1 {
        font-size: 21px;
    }
}

/* Fondo estelar para toda la pagina. */
html,
body {
    min-height: 100%;
    background-color: #0091F4 !important;
    background-image: url('/images/channelkids-space-background-stars-v3-20261105.webp') !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center top !important;
    background-attachment: fixed !important;
}

@media (max-aspect-ratio: 6/5) {
    html,
    body {
    background-image: url('/images/channelkids-space-background-stars-v3-20261105.webp') !important;
    }
}

/* El contenido deja ver el fondo del body a los lados y entre secciones. */
.kidsoo_top3,
.a2w_content_section {
    background-color: transparent !important;
    background-image: none !important;
}
@media (max-width: 767px) {
    .a2w_content_section {
        background-color: transparent !important;
        background-image: none !important;
    }
}
