/* ==========================================================================
   Estilos Institucionales - Colegio Inmaculada Concepción (CIC-CDE)[cite: 1]
   ========================================================================== */

:root {
    --azul-francia: #0050A4;
    --azul-oscuro: #003670;
    --dorado-acento: #D4AF37;
    --dorado-hover: #b89528;
    --gris-fondo: #F8F9FA;
    --texto-oscuro: #212529;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--texto-oscuro);
    background-color: #FFFFFF;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .font-heading {
    font-family: 'Montserrat', sans-serif;
}

/* --------------------------------------------------------------------------
   1. Topbar & Navbar Institucional
   -------------------------------------------------------------------------- */
.topbar {
    background-color: var(--azul-oscuro);
    color: #ffffff;
    font-size: 0.88rem;
}
.topbar a { 
    color: #e0e0e0; 
    text-decoration: none; 
}
.topbar a:hover { 
    color: var(--dorado-acento); 
}

.navbar-cic {
    background-color: #ffffff; /* Asegurar fondo sólido al hacer scroll */
    z-index: 1030;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.navbar-cic .nav-link {
    color: var(--texto-oscuro, #333);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    transition: color 0.2s;
}/* Posicionamiento absoluto del logo para que sobresalga */
.logo-flotante {
    position: absolute !important;
    top: -5px !important; /* Ajusta este valor para que suba y muerda el topbar */
    left: 0;
    height: 90px !important; /* Tamaño del logo */
    width: auto !important;
    z-index: 1050 !important; /* Más alto que el navbar */
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo-flotante:hover {
    transform: scale(1.05);
}

/* Margen para que el texto no quede escondido detrás del logo */
.ms-logo-text {
    margin-left: 95px !important; /* Debe ser un poco mayor que el ancho del logo */
    padding-top: 4px;
}

.navbar-cic .nav-link:hover, 
.navbar-cic .nav-link.active {
    color: var(--azul-francia);
}

.btn-portal-padres {
    background-color: var(--azul-francia);
    color: white !important;
    font-weight: 700;
    border-radius: 25px;
    padding: 0.5rem 1.4rem;
    box-shadow: 0 4px 10px rgba(0, 80, 164, 0.25);
    transition: all 0.3s;
}
.btn-portal-padres:hover {
    background-color: var(--azul-oscuro);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   2. Hero Section (Video & Carrusel)
   -------------------------------------------------------------------------- */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 550px;
    background-color: #000;
    overflow: hidden;
}
.hero-video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.45;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 54, 112, 0.6) 0%, rgba(0, 80, 164, 0.75) 100%);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}

.carousel-avisos .carousel-item {
    padding: 2rem 1rem;
}
.badge-dorado {
    background-color: var(--dorado-acento);
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 0.5em 1em;
    border-radius: 20px;
    text-transform: uppercase;
}
.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: 1.25rem;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   3. Secciones y Tarjetas
   -------------------------------------------------------------------------- */
.section-integral {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f9 100%);
    border-top: 5px solid var(--dorado-acento);
    position: relative;
}
.card-extra {
    border: none;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    height: 100%;
}
.card-extra:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 80, 164, 0.15);
    border-bottom: 4px solid var(--azul-francia);
}
.icon-extra {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 80, 164, 0.1);
    color: var(--azul-francia);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card-acceso {
    border: none;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(0,0,0,0.05);
    padding: 1.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.card-acceso:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 80, 164, 0.12);
    color: var(--azul-francia);
}

.badge-horario {
    background-color: rgba(0, 80, 164, 0.1);
    color: var(--azul-francia);
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   4. Pie de Página (Footer)
   -------------------------------------------------------------------------- */
footer {
    background-color: var(--azul-oscuro);
    color: #d0d0d0;
    border-top: 4px solid var(--dorado-acento);
}
footer h5 { 
    color: #ffffff; 
    font-weight: 700; 
    margin-bottom: 1.2rem; 
}
footer a { 
    color: #d0d0d0; 
    text-decoration: none; 
    transition: color 0.2s; 
}
footer a:hover { 
    color: var(--dorado-acento); 
}

/* --------------------------------------------------------------------------
   5. Chatbot Flotante (PHP/MySQL)
   -------------------------------------------------------------------------- */
.chatbot-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--azul-francia);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 80, 164, 0.4);
    z-index: 1050;
    transition: transform 0.3s, background-color 0.3s;
}
.chatbot-btn:hover { 
    transform: scale(1.1); 
    background-color: var(--azul-oscuro); 
}
/* =========================================================
   BOTONES FLOTANTES (WhatsApp y Chatbot)
   ========================================================= */

/* Contenedor para alinear los botones flotantes */
.floating-buttons-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    gap: 15px; /* Espacio entre el botón de WhatsApp y el Chatbot */
    z-index: 1050;
}

/* Botón base (Estilos compartidos) */
.btn-float {
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.btn-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: white;
}

/* Botón de WhatsApp (Verde) */
.whatsapp-btn {
    background-color: #25D366; 
}

/* Botón del Chatbot (Azul Francia - CIC) */
.chatbot-btn {
    background-color: var(--azul-francia, #0050A4);
}
.chatbot-window {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 360px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1050;
    border: 1px solid #e0e0e0;
}
.chat-header {
    background-color: var(--azul-francia);
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-chat { 
    cursor: pointer; 
    font-size: 1.2rem; 
}
.chat-body {
    height: 350px;
    padding: 15px;
    overflow-y: auto;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.msg { 
    padding: 10px 14px; 
    border-radius: 15px; 
    max-width: 85%; 
    font-size: 0.92rem; 
    line-height: 1.4; 
}
.msg-bot { 
    background-color: #e9ecef; 
    color: #212529; 
    align-self: flex-start; 
    border-bottom-left-radius: 2px; 
}
.msg-user { 
    background-color: var(--azul-francia); 
    color: white; 
    align-self: flex-end; 
    border-bottom-right-radius: 2px; 
}
.chat-footer { 
    padding: 12px; 
    background: white; 
    border-top: 1px solid #ddd; 
    display: flex; 
    gap: 8px; 
}
.chat-footer input { 
    flex: 1; 
    padding: 8px 15px; 
    border: 1px solid #ccc; 
    border-radius: 20px; 
    outline: none; 
    font-size: 0.9rem; 
}
.chat-footer button { 
    background: var(--azul-francia); 
    color: white; 
    border: none; 
    border-radius: 50%; 
    width: 38px; 
    height: 38px; 
    cursor: pointer; 
}
/* Ajustes para el Modal de Inscripciones */
#modalInscripciones .modal-content {
    border-radius: 20px;
}
#modalInscripciones .object-fit-cover {
    object-fit: cover;
}
#modalInscripciones .btn-warning {
    background-color: #D4AF37;
    border-color: #D4AF37;
    color: #000 !important;
}
#modalInscripciones .btn-warning:hover {
    background-color: #b89528;
    border-color: #b89528;
}

.hover-elevate {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-elevate:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}
/* Adaptación Responsiva para Celulares y Tablets */
@media (max-width: 991.98px) {
    .logo-flotante {
        height: 65px;
        top: -10px;
    }
    
    .ms-logo-text {
        margin-left: 55px;
    }
}

/* Ajustes para Móviles y Tablets */
@media (max-width: 991.98px) {
    .logo-flotante { 
        height: 75px !important; 
        top: -5px !important; 
    }
    .ms-logo-text { 
        margin-left: 80px !important; 
    }
}

@media (max-width: 575.98px) {
    .logo-flotante { 
        height: 60px !important; 
        top: -5px !important; 
    }
    .ms-logo-text { 
        margin-left: 65px !important; 
    }
    .ms-logo-text small { 
        display: none; /* Ocultamos subtítulo en celulares */
    }
}