<style>
/* Reset and General Setup */
* { box-sizing: border-box; }
body { font-family: 'Lato', sans-serif; background: #fff; color: #434a4a; line-height: 1.6; }
a { color: #1173bc; transition: all 0.3s ease; }
a:hover { color: #0c568f; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: 'Capriola', sans-serif; font-weight: normal; }

/* Variables Based on Source & Ref */
:root {
  --primary-color: #1173bc; /* Colegio Blue */
  --secondary-color: #454545; /* Dark Gray */
  --light-gray: #f9f9f9;
  --white: #ffffff;
}

/* Header & Navbar Enhancement */
.main__header { background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 15px 0; position: sticky; top: 0; z-index: 1000; }
.navbar-default { background: transparent; border: none; margin: 0; }
.navbar-default .navbar-nav>li>a { color: var(--secondary-color); font-weight: 600; text-transform: uppercase; padding: 15px 20px; font-size: 14px; transition: color 0.3s ease; }
.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li.active>a { color: var(--primary-color); background: transparent; border-bottom: 3px solid var(--primary-color); }
ul.dropdown-menu { background: var(--white); border-top: 3px solid var(--primary-color); box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-radius: 0 0 5px 5px; }
ul.dropdown-menu>li>a { color: var(--secondary-color); padding: 10px 20px; }
ul.dropdown-menu>li>a:hover { background-color: var(--light-gray); color: var(--primary-color); }

/* Slider Enhancements */
.slider .carousel-caption { background: rgba(17, 115, 188, 0.7); padding: 30px; border-radius: 10px; bottom: 20%; top: auto; height: auto; text-shadow: none; max-width: 600px; margin: 0 auto; left: 0; right: 0; }
.slider .carousel-caption h1 { color: var(--white); font-weight: bold; margin-bottom: 20px; }
.slider .btn-default { background-color: var(--white); color: var(--primary-color); border: none; border-radius: 30px; font-size: 16px; font-weight: bold; padding: 12px 30px; width: auto; height: auto; line-height: normal; transition: background 0.3s ease, color 0.3s ease; }
.slider .btn-default:hover { background-color: var(--secondary-color); color: var(--white); }

/* Buttons General */
.btn-info { background-color: var(--primary-color); color: var(--white); border: none; border-radius: 25px; padding: 10px 25px; font-weight: bold; transition: background 0.3s ease, transform 0.2s ease; }
.btn-info:hover { background-color: #0c568f; color: var(--white); transform: translateY(-2px); }

/* Sections Styling */
.three-blocks { padding: 80px 0; background-color: var(--light-gray); }
.three-blocks h2, .about-us h2 { text-transform: uppercase; font-weight: bold; color: var(--primary-color); margin-bottom: 40px; position: relative; display: inline-block; }
.three-blocks h2::after, .about-us h2::after { content: ''; position: absolute; width: 50px; height: 3px; background-color: var(--primary-color); bottom: -10px; left: 50%; transform: translateX(-50%); }

.three-blocks .col-md-4 { padding: 20px; text-align: center; transition: transform 0.3s ease; }
.three-blocks .col-md-4:hover { transform: translateY(-10px); }
.three-blocks h3 { font-size: 20px; color: var(--secondary-color); margin-bottom: 20px; padding: 0; background: none !important; }
.three-blocks img { border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-bottom: 20px; transition: opacity 0.3s ease; }
.three-blocks img:hover { opacity: 0.9; }

/* Levels (Niveles) Section */
.about-us { padding: 80px 0; background-color: var(--white); }
.about-us .col-md-6 { margin-bottom: 40px; }
.about-us h3 { color: var(--primary-color); font-size: 24px; margin-bottom: 15px; border-bottom: 2px solid var(--light-gray); padding-bottom: 10px; display: inline-block; }
.about-us img { border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
.about-us img:hover { transform: scale(1.02); }
.niveles { font-size: 16px; color: #666; margin-top: 15px; margin-bottom: 25px; line-height: 1.8; }

/* Testimonials / Values */
.testimonials { background: var(--primary-color) url('../images/pattern.png') repeat; padding: 80px 0; color: var(--white); text-align: center; }
.testimonials h2 { color: var(--white); font-weight: bold; margin-bottom: 30px; }
.testimonials h1 { font-size: 32px; font-weight: bold; margin-bottom: 20px; }
.testimonials .small-paragraph { font-size: 20px; font-style: italic; opacity: 0.9; }
.testimonials small { font-size: 16px; font-weight: bold; opacity: 1; }

/* App & Store Links */
.app-links { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }
.app-links img { width: 150px; border-radius: 8px; transition: transform 0.3s ease; }
.app-links img:hover { transform: scale(1.05); }

/* Footer Enhancement */
footer { background-color: #222; padding: 60px 0 20px; color: #ccc; }
footer h3 { color: var(--white); font-size: 18px; margin-bottom: 20px; text-transform: uppercase; border-bottom: 1px solid #444; padding-bottom: 10px; }
footer p { font-size: 14px; line-height: 1.8; }
footer a { color: #aaa; transition: color 0.3s ease; }
footer a:hover { color: var(--primary-color); }
footer .social__icons a { font-size: 24px; color: #fff; background-color: #444; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; margin-right: 10px; transition: background 0.3s ease; }
footer .social__icons a:hover { background-color: var(--primary-color); }
footer .copy { padding: 20px 0; margin-top: 40px; border-top: 1px solid #333; font-size: 13px; text-align: center; }
</style>

/* === MEJORA DE MENÚ Y ALINEACIÓN (UX/UI) === */

/* Fijar el logo y el menú al mismo nivel en pantallas grandes */
@media (min-width: 992px) {
    .main__header .container nav.navbar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .navbar-header {
        float: none !important;
        flex: 0 0 auto;
    }
    .navbar-collapse {
        float: none !important;
        flex: 1 1 auto;
        padding-top: 0 !important;
    }
    nav .collapse { display: block !important; }
    .navbar-nav {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: flex-end; /* Alinear a la derecha */
        width: 100%;
        margin: 0 !important;
    }
    /* Controlar ancho en pantallas grandes para que el logo no empuje el menu */
    .navbar-nav > li {
        float: none !important;
    }
}

/* Rediseño visual del Header y Fondo Agradable */
.main__header {
    background: rgba(255, 255, 255, 0.95) !important; /* Blanco translúcido tipo cristal */
    backdrop-filter: blur(10px); /* Efecto Glassmorphism */
    box-shadow: 0 4px 20px rgba(17, 115, 188, 0.08) !important; /* Sombra sutil colorizada */
    border-bottom: 1px solid rgba(17, 115, 188, 0.1);
    padding: 10px 0 !important; /* Más elegante */
    transition: all 0.3s ease;
}

/* Imagen del logo */
.navbar-header img {
    height: 60px; /* Tamaño consistente con el menú en la misma fila */
    width: auto;
    transition: transform 0.3s ease;
    object-fit: contain;
}
.navbar-header img:hover {
    transform: scale(1.02);
}

/* Botones del menú con diseño Pill (Píldora) y espaciado corregido */
.navbar-default .navbar-nav>li>a {
    font-size: 13px !important; 
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    padding: 10px 14px !important; /* Espaciado compacto pero cómodo */
    margin: 0 3px !important;
    color: #454545 !important;
    border-radius: 20px !important; /* Bordes suaves */
    border-bottom: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Hover interactivo y estado activo */
.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li.active>a {
    background: #1173bc !important; /* Azul grenewic */
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(17, 115, 188, 0.3) !important; /* Sombra en el boton activo */
    transform: translateY(-2px); /* Efecto de elevación */
}

/* Menú Desplegable (Dropdown) */
ul.dropdown-menu {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
    border: 1px solid rgba(17, 115, 188, 0.1) !important;
    padding: 10px !important;
    margin-top: 10px !important;
    background: #ffffff !important;
}
ul.dropdown-menu>li>a {
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 14px;
    color: #555;
    padding: 8px 16px;
    transition: background 0.2s ease, padding-left 0.2s ease;
}
ul.dropdown-menu>li>a:hover {
    background: #f0f7fc !important;
    color: #1173bc !important;
    padding-left: 20px; /* Animación de desplazamiento suave a la derecha al hacer hover */
}
