@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Raleway:wght@700;800;900&display=swap');

:root {
    --azul-id: #193E9A;    
    --verde-id: #317F77;   
    --whatsapp: #2cb742; 
    --blanco: #ffffff;
    --fondo: #f8fafc;      /* RESTAURADO: Se mantiene el fondo original */
    --texto: #334155;      
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--fondo); 
    color: var(--texto); 
    margin: 0; 
}

h1, h2, h3, h4, h5, .navbar-brand, .nav-link { 
    font-family: 'Raleway', sans-serif; 
}

/* =========================================
   BANNER SUPERIOR AZUL INSTITUCIONAL (MODIFICADO)
   ========================================= */
.top-bar {
    background: var(--azul-id); /* MODIFICADO: Cambiado de verde a azul institucional */
    color: white;
    padding: 10px 0;
}
.top-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* MODIFICADO: Nuevo diseño circular para destacar el enlace de Facebook */
.top-bar a { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.2); /* Círculo sutil blanco */
    color: white !important; 
    text-decoration: none; 
    border-radius: 50%;
    transition: all 0.3s ease;
}

.top-bar a:hover {
    background-color: white; /* Fondo blanco completo al pasar el mouse */
    color: var(--azul-id) !important; /* Icono azul al pasar el mouse */
    transform: scale(1.1);
}

.top-bar i.fab.fa-facebook-f { 
    font-size: 1rem; /* Ajustado para que encaje estéticamente dentro del círculo */
}

/* =========================================
   NAVEGACIÓN
   ========================================= */
.navbar { 
    background: var(--blanco) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 10px 0;
    border-bottom: 3px solid var(--azul-id);
}

.navbar > .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

.navbar-brand {
    color: var(--azul-id) !important;
    font-size: 1.8rem; 
    font-weight: 900;
    display: flex;
    align-items: center;
    margin-right: 0 !important;
    flex: 0 0 auto;
}

.logo-colegio { 
    height: 90px; 
    width: auto;
    margin-right: 15px; 
}

.navbar-collapse {
    flex-grow: 1; 
    display: flex !important;
    justify-content: center; 
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly; 
    width: 80%; 
    align-items: center;
    margin: 0 auto;
}

.nav-link { 
    color: var(--texto) !important; 
    font-size: 0.95rem; 
    font-weight: 600;
    text-transform: none; 
    transition: 0.3s;
    white-space: nowrap;
    padding: 0 10px !important;
}

.nav-link:hover { color: var(--verde-id) !important; }

.btn-whatsapp-nav { 
    background: var(--whatsapp); 
    color: white !important; 
    border-radius: 8px; 
    padding: 12px 25px; 
    font-weight: 700; 
    box-shadow: 0 4px 12px rgba(44, 183, 66, 0.2);
    flex: 0 0 auto;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    background: linear-gradient(135deg, rgba(25, 62, 154, 0.85), rgba(49, 127, 119, 0.8)), 
                url('https://images.unsplash.com/photo-1523050853063-915894614232?w=1400') center/cover;
    height: 150px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    text-align: center; 
    border-radius: 0 0 30px 30px; 
}

.hero h1 {
    font-size: 2rem; 
    margin: 0;
    font-weight: 700;
}

section { padding: 80px 0; }

/* =========================================
   TARJETAS Y CORRECCIÓN DE IMÁGENES
   ========================================= */
.card-extra {
    border: none;
    border-radius: 25px !important;
    background: white;
    transition: 0.4s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 30px;
    height: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px !important;
}

.card-extra img {
    width: 100%;
    height: 200px;      
    object-fit: contain;  
    object-position: center;
    border-radius: 15px;
    margin-bottom: 15px;
}

.card-extra i {
    font-size: 3rem;
    color: var(--verde-id);
    margin-bottom: 15px;
}

.card-extra:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(25, 62, 154, 0.15);
}

.card-extra h6 {
    color: var(--azul-id);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    text-align: center;
}

/* =========================================
   FORMULARIOS Y OTROS
   ========================================= */
.form-container { 
    background: white; 
    padding: 50px; 
    border-radius: 35px; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.08); 
}

.form-control { 
    border-radius: 15px; 
    background: #f8fafc; 
    border: 2px solid #f1f5f9; 
    padding: 20px; 
    margin-bottom: 15px; 
}

.btn-institucional {
    background: var(--azul-id); 
    color: white; 
    border-radius: 15px;
    padding: 18px 30px; 
    font-weight: 800; 
    border: none; 
    transition: 0.3s;
    display: inline-block; 
    text-align: center; 
    width: 100%;
}

footer { 
    background: var(--azul-id); 
    color: white; 
    padding: 50px 0; 
    border-radius: 50px 50px 0 0; 
    margin-top: 60px; 
    text-align: center; 
}

@media (max-width: 1100px) {
    .navbar-brand { font-size: 1.4rem; }
    .logo-colegio { height: 60px; }
    .nav-link { font-size: 0.8rem; }
    .navbar-nav { width: 100%; }
}