:root{
    --primary: #0d6efd;     /* azul institucional */
    --secondary: #6c757d;   /* gris */
    --accent: #0b5ed7;      /* azul más fuerte para hover */
    --light: #f8f9fa;
}

/* utilidades */
.bg-primary-soft{ background: var(--primary); }
.text-primary-soft{ color: var(--primary); }
.btn-brand{
    background: var(--primary);
    color:#fff;
    border:none;
}
.btn-brand:hover{
    background: var(--accent);
}

.ck-content img {
    max-width: 100%;
    height: auto;
}
.ck-content img,
.footer-brand {
    background: #ff8c00;
    color: white;
}

.footer-brand {
    /* Un degradado sutil que va de un naranja vibrante a uno más serio */
    background: linear-gradient(135deg, #ff8c00 0%, #e67e00 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.footer-brand::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/cubes.png");
    opacity: 0.05; /* Casi invisible, pero da elegancia */
    pointer-events: none;
}
.footer-brand h5 {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
}

/* Una rayita decorativa debajo de cada título */
.footer-brand h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: yellow; /* O blanco */
    border-radius: 2px;
}

/* Quitamos el fondo azul de los iconos de la lista */
.footer-links li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    color: #ffe600; /* Amarillo institucional */
    border-bottom: 1px solid #ffe600;
    padding-left: 5px;
}

/* Redes sociales más elegantes */
/* Iconos Sociales circulares */
.social-btn {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: #ff8c00; /* Texto naranja inicial */
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.social-btn:hover {
    color: white; /* Texto blanco en hover */
    transform: scale(1.15) rotate(10deg);
}

.social-btn.facebook:hover { background-color: #1877F2; }
.social-btn.instagram:hover { background-color: #E4405F; }


.bi-geo:hover {
    color: rgb(246, 6, 6); /* Texto blanco en hover */
    transform: scale(1.15) rotate(10deg);
    font-size: 10px;
}

.bi-telephone:hover {
    color: rgb(246, 6, 6); /* Texto blanco en hover */
    transform: scale(1.15) rotate(10deg);
    font-size: 10px;
}
.bi-envelope-at:hover {
    color: rgb(246, 6, 6); /* Texto blanco en hover */
    transform: scale(1.15) rotate(10deg);
    font-size: 10px;
}

/* Botón WhatsApp Armónico */
.btn-wa {
    background: #ffffff;
    color: #ff8c00 !important; /* Texto naranja para contraste */
    font-weight: 700;
    border-radius: 4px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-wa:hover {
    background: #00ff15;
    color: #000 !important;
}
/* base */
.navbar-nav .nav-link {
    color: white !important;
    padding: 10px 18px;
    border-radius: 6px;
    margin-left: 5px;
    font-weight: 500;
}

/* colores individuales */
.nav-inicio { background: #1E03FF !important; }
.nav-nosotros { background: #00c853 !important; }
.nav-galeria { background: #ff9800 !important; }
.nav-servicios { background: #9c27b0 !important; }
.nav-contacto { background: #e91e63 !important; }
.nav-pagos { background: #1E03FF !important; }

/* hover */
/* Usamos el ancestro para darle más fuerza al selector */
.navbar-nav .nav-link.active-link {
    /*background: rgb(167, 244, 241) !important;*/
    /*color: rgb(8, 0, 255) !important;*/
    border: 2px solid rgb(248, 248, 250); /* Opcional: un borde para que resalte más */
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
}
.carousel-item {
    transition: transform 0.8s ease-in-out;
}

h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

/* tarjeta */
.form-card {
    border-radius: 12px;
}

/* inputs */
.form-control {
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

/* focus elegante */
.form-control:focus {
    border-color: #ff8c00;
    box-shadow: 0 0 0 2px rgba(255,140,0,0.2);
}

/* botón */
.btn-primary {
    background: #4513e6;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-weight: 500;
}

/* hover botón */
.btn-primary:hover {
    background: #e67600;
}
select.form-control {
    border-radius: 8px;
}
.dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dropdown-item:hover {
    background: #ff8c00;
    color: white;
}

/* HERO */
.nosotros-hero {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('/public/images/slider/slider1.png') center/cover no-repeat;
}

.valor-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.valor-box:hover {
    transform: translateY(-5px);
}

/* CARD */
.pago-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    height: 100%;
    border: 1px solid #2c3e50;
}

.pago-card:hover {
    transform: translateY(-4px);
}

.pago-header {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pago-body {
    padding: 20px;
    color: #666;
    font-size: 0.95rem;
}

.pago-footer {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
}

.btn-main {
    flex: 1;
    background: #2c3e50;
    color: white;
    border-radius: 8px;
    border: none;
}

.btn-main:hover {
    background: #738ea7;
}

.estado {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.estado.vencido {
    background: #ffe5e5;
    color: #d32f2f;
}

.estado.disponible {
    background: #e6f4ea;
    color: #2e7d32;
}

.pago-card.activo {
    border: 3px solid #2c09ed;
}



.btn-qr {
    flex: 0.3;
    background: #e4e7ea;
    color: rgb(4, 43, 242);
    border-radius: 8px;
    border: 0.4;
}
.btn-qr:hover {
    background: #738ea7;
}
/* BOTÓN PLATAFORMA (NAVBAR) */
/* Usamos el ID del nav o la clase nav-link para ganar prioridad */
.navbar-nav .nav-item .btn-plataforma,
a.btn-plataforma {
    background-color: white !important;
    color: #279CF5 !important; /* El azul de tu navbar */
    border-radius: 8px !important;
    padding: 8px 20px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.navbar-nav .nav-item .btn-plataforma:hover {
    background-color: #ffe600 !important; /* Amarillo para que combine con tus líneas */
    color: black !important;
    transform: translateY(-2px);
}

/* FORZAR ESTILOS NIVELES */
.nivel-card{
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    border-radius: 20px !important;
    padding: 35px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
    transition: all 0.25s ease !important;
    border-top: 5px solid #0d6efd !important;
    height: 100%;
}

.nivel-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
}

.nivel-icon{
    font-size: 3rem;
    color: #0d6efd;
    margin-bottom: 20px;
}

.nivel-card h3{
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}

.nivel-card p{
    color: #64748b !important;
    line-height: 1.8;
}
.nivel-icon svg{
    width: 70px !important;
    height: 70px !important;
    stroke-width: 1.5;
}
.nivel-icon{
    width: 110px;
    height: 110px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: rgba(13,110,253,0.08);

    display:flex;
    align-items:center;
    justify-content:center;
}
/*.nosotros-hero{
    min-height: 70vh;
    background:
        linear-gradient(rgba(0,0,0,0.55),
        rgba(0,0,0,0.55)),
        url('/images/colegio-banner.jpg');

    background-size: cover;
    background-position: center;
}*/
/* ICONOS Y TEXTO VALORES */
.valor-box svg{
    width: 55px !important;
    height: 55px !important;
    color: #0d6efd !important;
    margin-bottom: 20px;
}

.valor-box p{
    color: #64748b !important;
    line-height: 1.7;
    margin-top: 10px;
}
/* MODAL PREMIUM */
.modal-content{
    border: none !important;
    border-radius: 28px !important;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

/* HEADER */
.modal-header{
    background: linear-gradient(135deg, #0d6efd, #4da3ff);
    color: white;
    padding: 25px 30px;
    border-bottom: none !important;
}

.modal-header h4{
    margin: 0;
    font-weight: 700;
}

/* BOTON CERRAR */
.modal-header .btn-close{
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* BODY */
.modal-body{
    padding: 35px;
    background: #ffffff;
}

.modal-body p{
    color: #64748b;
    line-height: 1.8;
    font-size: 1rem;
}

/* ANIMACION */
.modal.fade .modal-dialog{
    transform: scale(0.92);
    transition: all 0.25s ease;
}

.modal.show .modal-dialog{
    transform: scale(1);
}
/* FOOTER DECORATIVO MODAL */
.modal-footer-custom{
    height: 10px;
    background: linear-gradient(90deg, #ff9800, #ffb74d);
}
/* IMAGENES COMUNIDAD */
.comunidad-img{
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: all 0.25s ease;
}

.comunidad-img:hover{
    transform: scale(1.03);
}



/* BOTONES REDES COMUNIDAD */
.comunidad-social .social-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 14px 28px;
    border-radius: 14px;

    color: white;
    text-decoration: none;

    font-weight: 600;

    transition: all 0.25s ease;

    min-width: 180px;
}

.comunidad-social .social-btn:hover{
    transform: translateY(-3px);
    color: white;
}

/* INSTAGRAM */
.comunidad-social .instagram-btn{
    background: linear-gradient(135deg, #e1306c, #fd7e14);
}

/* FACEBOOK */
.comunidad-social .facebook-btn{
    background: linear-gradient(135deg, #1877f2, #4da3ff);
}

/* ICONOS */
.comunidad-social .social-btn i{
    font-size: 1.1rem;
}
.historia-img{
    width: 100%;
    height: 420px;
    object-fit: cover;
}
/* CONTENEDOR PRINCIPAL DEL VALOR */
.valor-box {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Sombra muy sutil */
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%; /* Para que todas midan igual si se usa d-flex en la fila */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* EFECTO AL PASAR EL MOUSE */
.valor-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(39, 156, 245, 0.12); /* Sombra con el azul de tu navbar */
    border-color: rgba(39, 156, 245, 0.8);
}

/* ÁREA DEL ICONO (LUCIDE) */
.valor-box [data-lucide] {
    color: #279CF5; /* El azul de tu navbar */
    background-color: rgba(39, 156, 245, 0.08); /* Fondo circular azul translúcido */
    padding: 14px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* Cambio de color del icono en hover (opcional a naranja institucional) */
.valor-box:hover [data-lucide] {
    color: #ffffff;
    background-color: #ff8c00; /* Tu naranja de la institución */
    transform: scale(1.1);
}

/* TÍTULO DEL VALOR */
.valor-box h5 {
    color: #1e293b; /* Gris oscuro elegante */
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* TEXTO DESCRIPTIVO */
.valor-box p {
    color: #64748b; /* Gris texto suave */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* FAQ */
.accordion-item{
    border: none !important;
    border-radius: 18px !important;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.accordion-button{
    background: #f8fbff;
    color: #1e293b;
    font-weight: 600;
    padding: 20px;
    border: none;
}

.accordion-button:not(.collapsed){
    background: linear-gradient(135deg, #0d6efd, #4da3ff);
    color: white;
    box-shadow: none;
}

.accordion-button:focus{
    box-shadow: none;
    border: none;
}

.accordion-body{
    background: white;
    color: #64748b;
    line-height: 1.8;
    padding: 25px;
}

.accordion-button::after{
    filter: brightness(0.5);
}

.accordion-button:not(.collapsed)::after{
    filter: brightness(0) invert(1);
}