:root {
    --azul-primario: #3498db;
    --azul-oscuro: #2c3e50;
    --lila-logo: #dcd0ff;
    --blanco: #ffffff;
    --gris-fondo: #f4f7f6;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--gris-fondo); color: var(--azul-oscuro); }

/* 1. Header con efecto Cristal */
.main-header {
    background-color: rgba(52, 152, 219, 0.9); /* Azul con transparencia */
    backdrop-filter: blur(10px); /* Efecto desenfoque */
    -webkit-backdrop-filter: blur(10px);
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 2. Sombras Modernas para las Tarjetas */
.news-card, .container-form {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.news-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.15);
}

/* 3. Botones con Gradiente y Pulso */
.btn-admisiones, .btn-submit {
    background: linear-gradient(135deg, var(--lila-logo) 0%, #b5a5e6 100%);
    border: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.btn-admisiones:hover {
    transform: scale(1.05);
}

.propuesta {
    padding: 80px 20px;
    background-color: var(--blanco);
    text-align: center;
}
.propuesta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.propuesta-item i {
    font-size: 3rem;
    color: var(--azul-primario);
    margin-bottom: 20px;
}
.propuesta-item h3 {
    margin-bottom: 15px;
    color: var(--azul-oscuro);
}
.propuesta-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* HEADER */
.main-header { background-color: var(--azul-primario); padding: 5px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.school-logo { height: 85px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.nav-menu ul { list-style: none; display: flex; gap: 20px; align-items: center; }
.nav-menu ul li a { text-decoration: none; color: white; font-weight: 600; font-size: 0.9rem; }
.btn-admisiones { background: var(--lila-logo); color: var(--azul-oscuro) !important; padding: 10px 20px; border-radius: 25px; font-weight: 700 !important; }

/* SLIDER */
.hero-slider { width: 100%; height: 500px; position: relative; overflow: hidden; background: #000; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: white; opacity: 0; transition: opacity 1s ease-in-out; }
.slide.active { opacity: 1; z-index: 1; }
.slide-text h1 { font-size: 3rem; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); text-align: center; }
.slider-nav { position: absolute; bottom: 20px; width: 100%; display: flex; justify-content: center; gap: 10px; z-index: 10; }
.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; }
.dot.active { background: var(--lila-logo); transform: scale(1.3); }

/* NOTICIAS */
.news-section { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.section-title { text-align: center; font-size: 2.2rem; color: var(--azul-primario); margin-bottom: 40px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.news-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.news-img { height: 200px; background-size: cover; background-position: center; }
.news-body { padding: 20px; }
.news-tag { background: var(--lila-logo); font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; }

/* ADMISIONES FORM */
.admission-section { padding: 80px 20px; background: linear-gradient(180deg, #fff, var(--lila-logo)); }
.container-form { max-width: 800px; margin: 0 auto; background: white; padding: 40px; border-radius: 30px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.form-header { text-align: center; margin-bottom: 30px; }
.form-header h2 { color: var(--azul-primario); font-size: 2rem; }
.modern-form h3 { margin: 25px 0 15px; font-size: 1.1rem; color: var(--azul-primario); border-bottom: 2px solid var(--lila-logo); display: inline-block; }

.form-group { display: flex; flex-direction: column; margin-bottom: 15px; }
.form-group.full { width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

label { font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: #555; }
input, select, textarea { padding: 12px; border-radius: 10px; border: 1px solid #ddd; outline: none; transition: 0.3s; }
input:focus { border-color: var(--azul-primario); box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1); }

.radio-group { display: flex; gap: 20px; padding: 10px 0; }
.radio-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; }

.btn-submit { background: var(--azul-primario); color: white; border: none; padding: 15px 30px; border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.3s; width: 100%; font-size: 1rem; }
.btn-submit:hover { background: var(--azul-oscuro); transform: translateY(-3px); }
.form-note { font-size: 0.75rem; color: #888; margin-top: 15px; text-align: center; }

/* STATUS BOX */
.status-box { display: none; padding: 15px; border-radius: 10px; margin-bottom: 20px; text-align: center; font-weight: 600; }
.status-box.success { display: block; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-box.error { display: block; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* FOOTER */
.main-footer { background: var(--azul-oscuro); color: white; padding: 60px 0 20px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; padding: 0 20px; }
.social-links a { color: white; font-size: 1.5rem; margin-right: 15px; }

/* WHATSAPP */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background: #25d366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); z-index: 1000; text-decoration: none; }

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .container-form { padding: 20px; }
    .header-container { flex-direction: column; gap: 10px; }
}

/* PIE DE PÁGINA - Créditos centrados */
.footer-copy {
    text-align: center;           /* <--- Esto es lo que centra el texto */
    width: 100%;                  /* Asegura que use todo el ancho disponible */
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Si el texto está dentro de un párrafo <p>, esto refuerza el centrado */
.footer-copy p {
    margin: 0;
    display: inline-block;        /* Permite que el centrado sea más preciso */
}

.footer-copy {
    color: #cbd5e0; /* Un gris azulado suave que combina con tu logo */
    letter-spacing: 0.5px; /* Un poco de espacio entre letras para mayor elegancia */
}

/* --- SECCIÓN CONTACTO --- */
.contacto-section {
    padding: 80px 20px;
    background-color: var(--blanco);
}
.container-contacto {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contacto-info p { margin-bottom: 25px; color: #666; line-height: 1.6; }
.detalle-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; color: var(--azul-oscuro); font-weight: 500; }
.detalle-item i { color: var(--azul-primario); font-size: 1.2rem; }

.btn-mapa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #4285F4; /* Azul Google */
    color: white;
    padding: 15px 30px;
    border-radius: 50px; /* Bordes redondeados */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    transition: all 0.3s ease;
}

.btn-mapa:hover {
    background-color: #3367D6;
    transform: translateY(-3px); /* Pequeño salto al pasar el mouse */
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.4);
}

.btn-mapa i {
    font-size: 1.2rem;
}

/* Caja del Formulario */
.contacto-form-box {
    background: var(--gris-fondo);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.contacto-form-box h3 { margin-bottom: 20px; color: var(--azul-primario); }

/* --- CORRECCIÓN FOOTER CENTRADO --- */
.footer-copy {
    text-align: center; /* CENTRADO TOTAL */
    width: 100%;
    margin-top: 40px;
    padding: 25px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--azul-oscuro); /* Asegura el fondo */
    color: #cbd5e0;
    font-size: 0.85rem;
}
.footer-copy p { margin: 0; }

/* Responsive para Contacto */
@media (max-width: 768px) {
    .container-contacto { grid-template-columns: 1fr; }
    .contacto-form-box { padding: 25px; }
}

/* --- ESTILOS DE LA SECCIÓN CONTACTO --- */
.contacto-section {
    padding: 80px 20px;
    background-color: #f4f7f6;
}
.contacto-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.contacto-info, .contacto-formulario {
    flex: 1;
    min-width: 320px;
}

/* BOTÓN GOOGLE MAPS AZUL */
.btn-google-maps {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #4285F4;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    transition: 0.3s ease;
    margin-top: 10px;
}
.btn-google-maps:hover {
    background-color: #3367D6;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

/* FOOTER CENTRADO */
.footer-principal {
    background-color: #2f76b6;
    color: white;
    padding: 25px 0;
}
.footer-copy {
    text-align: center; /* ESTO CENTRA EL TEXTO */
    width: 100%;
}
.footer-copy p { margin: 0; font-size: 0.9rem; }

/* --- ESTILOS DE CONTACTO --- */
.contacto-section {
    padding: 80px 20px;
    background-color: #f8f9fa; /* Gris muy clarito */
}

.contacto-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contacto-info, .contacto-formulario {
    flex: 1;
    min-width: 300px;
}

.titulo-contacto {
    color: #2f76b6; /* Tu azul institucional */
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.lista-detalles { margin: 30px 0; }

.item-detalle {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
    color: #333;
}

.item-detalle i {
    color: #2f76b6;
    font-size: 1.5rem;
    margin-top: 5px;
}

/* BOTÓN GOOGLE MAPS AZUL */
.btn-google-maps {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #4285F4; /* Azul Google Maps */
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    transition: 0.3s;
}

.btn-google-maps:hover {
    background-color: #3367D6;
    transform: translateY(-3px);
}

/* ESTILOS DEL FORMULARIO */
.contacto-formulario {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.campo { margin-bottom: 15px; display: flex; flex-direction: column; }
.campo label { font-size: 0.9rem; font-weight: 600; margin-bottom: 5px; color: #555; }
.campo input, .campo textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
}

.btn-enviar-contacto {
    background-color: #2f76b6;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-enviar-contacto:hover { background-color: #1f5a8f; }

/* CENTRADO DEL PIE DE PÁGINA */
.footer-principal {
    background-color: #2f76b6;
    color: white;
    padding: 30px 20px;
}

.footer-copy {
    text-align: center; /* ESTO CENTRA EL TEXTO */
    width: 100%;
    font-size: 0.9rem;
}

/* --- SECCIÓN NOSOTROS --- */
.section-nosotros {
    padding: 100px 0;
    background: linear-gradient(135deg, #fdfdfd 0%, #f4f7f6 100%);
}

.nosotros-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

.lema-box {
    margin-top: 30px;
    padding: 20px;
    border-left: 5px solid #3498db;
    background: rgba(52, 152, 219, 0.1);
    font-style: italic;
    font-weight: 600;
    color: #2c3e50;
    display: inline-block;
}

.mision-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.card-nosotros {
    background: white;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #eee;
}

.card-nosotros:hover {
    transform: translateY(-10px);
    border-color: #3498db;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.valor-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    font-size: 0.95rem;
    color: #555;
    text-align: left;
    transition: 0.3s;
}

.valor-card strong {
    color: #3498db;
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.valor-card:hover {
    background: #3498db;
    color: white;
}

.valor-card:hover strong {
    color: white;
}

/* --- SECCIÓN LOGROS --- */
.section-logros {
    padding: 80px 0;
    background: #fff;
    text-align: center;
}

.section-subtitle {
    color: #666;
    margin-bottom: 40px;
}

.logros-carousel {
    position: relative;
    max-width: 800px; /* Ajustado para que los estandartes se vean bien */
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    background: #000; /* Fondo negro para resaltar el estandarte */
}

.logro-slide {
    display: none;
    animation: fadeEffect 1s;
}

.logro-slide.active {
    display: block;
}

.logro-slide img {
    width: 100%;
    height: 550px;
    object-fit: contain; /* Importante para que no se corte el texto del estandarte */
    background-color: #f8f9fa;
}

.logro-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.85);
    color: white;
    padding: 15px;
    font-weight: 600;
}

/* Botones del Carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(52, 152, 219, 0.7);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
    transition: 0.3s;
    border-radius: 50%;
    margin: 0 10px;
}

.carousel-btn:hover { background: #3498db; }
.prev { left: 5px; }
.next { right: 5px; }

/* Puntos */
.logros-dots { margin-top: 20px; }
.logro-dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}
.logro-dot.active { background-color: #3498db; }

@keyframes fadeEffect {
    from {opacity: 0.4} to {opacity: 1}
}
