@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Open+Sans&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  color: #2c2c2c;
  background: #f4f7fb;
}

h1, h2, h3, h4 {
  letter-spacing: 0.5px;
}

p {
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ================= NAVBAR ================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0D47A1;
  padding: 15px 40px;
}

.logo {
  display: flex;
  align-items: center;
  color: white;
  font-family: 'Montserrat';
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
  position: relative;
}

.nav-links a {
  color: white;
  text-decoration: none;
}

.nav-links a.active {
  border-bottom: 2px solid #fff;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  background: #0D47A1;
  top: 35px;
  left: 0;
  min-width: 180px;
}

.dropdown-menu a {
  display: block;
  padding: 10px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ================= PAGE HEADER ================= */
.page-header {
  padding: 120px 8% 40px;
  background: #ffffff;
  text-align: center;
}

.page-header h1 {
  color: #0D47A1;
  font-size: 2.8rem;
}

/* ================= FOOTER ================= */
footer {
  background: #0D47A1;
  color: white;
  text-align: center;
  padding: 20px;
}

/* ========================================================= */
/* ===================== NOTICIAS ========================== */
/* ========================================================= */

.news-list {
  padding: 0 8% 80px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.news-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.2);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-info {
  padding: 20px;
}

.news-date {
  font-size: 0.85rem;
  color: #777;
}

.news-info h3 {
  color: #0D47A1;
  margin: 10px 0;
}

.news-info p {
  color: #555;
}

/* Leer más */
.read-more {
  display: inline-block;
  margin-top: 10px;
  color: #0D47A1;
  font-weight: 600;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* ================= MODAL NOTICIAS ================= */
.news-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.news-modal-content {
  background: #fff;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 18px;
  position: relative;
  animation: modalFade 0.3s ease;
}

.news-modal-content img {
  width: 100%;
  border-radius: 12px;
  margin: 20px 0;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .news-card img {
    height: 180px;
  }
}
/* ================= ALIADOS ================= */

.allies-section {
  padding: 90px 8%;
  background: #f8fafc;
  text-align: center;
}

.allies-title {
  font-size: 2.4rem;
  color: #0D47A1;
  margin-bottom: 10px;
}

.allies-subtitle {
  max-width: 700px;
  margin: 0 auto 60px;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* CONTENEDOR GENERAL */
.container {
  max-width: 1300px;
  margin: 0 auto;
}

/* ================= CARRUSEL ================= */

.allies-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.allies-track {
  display: flex;
  align-items: center;
  gap: 70px;
  width: max-content;
  animation: scrollAllies 30s linear infinite;
}

.ally-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ally-logo img {
  max-height: 90px;
  max-width: 180px;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: all 0.4s ease;
}

.ally-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* ================= ANIMACIÓN ================= */

@keyframes scrollAllies {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .allies-title {
    font-size: 2rem;
  }

  .allies-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .allies-track {
    gap: 40px;
  }

  .ally-logo img {
    max-height: 65px;
    max-width: 140px;
  }
}

/* ================= CAROUSEL ================= */

.carousel {
  margin-top: 90px;
  height: 90vh;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  background: rgba(13,71,161,0.65);
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
}

.slide-content h1 {
  font-size: 3.2rem;
  margin-bottom: 10px;
}

.slide-content p {
  font-size: 1.4rem;
}

/* ================= QUIÉNES SOMOS ================= */

.qs-section {
  padding: 90px 8%;
  background: #ffffff;
}

.qs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: center;
}

.qs-text h2 {
  color: #0D47A1;
  margin-bottom: 20px;
  font-size: 2.4rem;
}

.qs-text p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 15px;
}

.qs-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* ================= VALORES ================= */

.valores-section {
  padding: 90px 8%;
  background: #f4f7fb;
  text-align: center;
}

.valores-section h2 {
  color: #0D47A1;
  margin-bottom: 50px;
  font-size: 2.4rem;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.valor-card {
  background: #ffffff;
  padding: 35px 25px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.valor-card:hover {
  transform: translateY(-10px);
}

.valor-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.valor-card h5 {
  color: #0D47A1;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.valor-card p {
  color: #555;
}

/* ================= LOGROS ================= */

.logros-section {
  padding: 90px 8%;
  background: linear-gradient(135deg, #0D47A1, #1976D2);
  color: #ffffff;
  text-align: center;
}

.logros-section h2 {
  font-size: 2.4rem;
  margin-bottom: 50px;
}

.logros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.logro {
  background: rgba(255,255,255,0.15);
  padding: 30px 20px;
  border-radius: 18px;
  backdrop-filter: blur(6px);
}

.stats {
  font-size: 3rem;
  font-weight: 700;
  color: #FFEB3B;
  margin-bottom: 10px;
}

.logro p {
  font-size: 1.05rem;
}

/* ================= FAQ ================= */

.faq-section {
  padding: 90px 8%;
  background: #f4f7fb;
}

.faq-section h2 {
  text-align: center;
  font-size: 2.4rem;
  color: #0D47A1;
  margin-bottom: 50px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.faq-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 25px;
  display: flex;
  gap: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.faq-icon {
  font-size: 2.8rem;
}

.faq-content h5 {
  margin-bottom: 10px;
  color: #0D47A1;
}

.faq-content p {
  display: none;
  color: #444;
  line-height: 1.6;
  margin-bottom: 10px;
}

.faq-content.active p {
  display: block;
}

.faq-btn {
  background: none;
  border: none;
  color: #1976D2;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.faq-btn:hover {
  text-decoration: underline;
}

/* ================= DIVIDER ================= */

.section-divider {
  margin: 60px auto;
  border: none;
  height: 2px;
  background: rgba(0,0,0,0.1);
  width: 80%;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .slide-content {
    padding: 40px;
  }

  .slide-content h1 {
    font-size: 2.4rem;
  }

  .cards {
    flex-direction: column;
  }
}

/* ================= HISTORIA ================= */

.historia-section {
  padding: 80px 8%;
  background: #fff;
}

.historia-header {
  text-align: center;
  margin-bottom: 50px;
}

.historia-header h2 {
  color: #0d47a1;
  font-size: 2.2rem;
}

.historia-header p {
  color: #555;
  font-size: 1.1rem;
}

.historia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  align-items: center;
}

.historia-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.historia-text h3 {
  color: #0d47a1;
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.historia-text p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* ================= MISIÓN & VISIÓN ================= */

.mv-section {
  background: #f4f7fb;
  padding: 80px 8%;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.mv-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.mv-card:hover {
  transform: translateY(-8px);
}

.mv-tag {
  display: inline-block;
  background: #0d47a1;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 15px;
}

.mv-card h4 {
  color: #0d47a1;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.mv-card p {
  color: #555;
  line-height: 1.6;
}

/* ================= VALORES ================= */

.valores-section {
  padding: 80px 8%;
  background: #fff;
  text-align: center;
}

.valores-section h3 {
  color: #0d47a1;
  font-size: 2rem;
  margin-bottom: 10px;
}

.valores-subtitle {
  color: #666;
  margin-bottom: 40px;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.valores-grid .valor-card {
  background: #f4f7fb;
  padding: 20px;
  border-radius: 14px;
  font-weight: 600;
  color: #0d47a1;
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
  transition: background 0.3s ease, transform 0.3s ease;
}

.valores-grid .valor-card:hover {
  background: #0d47a1;
  color: #fff;
  transform: translateY(-5px);
}

/* ================= FOOTER ================= */

footer {
  background: #0d47a1;
  color: #fff;
  text-align: center;
  padding: 20px;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2.2rem;
  }

  .historia-section,
  .mv-section,
  .valores-section {
    padding: 60px 6%;
  }
}

/* ================= PREESCOLAR ================= */

.preescolar-section {
  padding: 80px 8%;
  background: linear-gradient(180deg, #fff5f8, #ffffff);
}

.preescolar-subtitle {
  text-align: center;
  font-size: 1.15rem;
  color: #6d3a4b;
  margin-bottom: 50px;
}

/* Grid */
.preescolar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Cards */
.preescolar-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(214, 77, 125, 0.12);
  border-top: 6px solid #e91e63;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preescolar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(214, 77, 125, 0.2);
}

/* Títulos */
.preescolar-card h3 {
  color: #c2185b;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

/* Listas */
.preescolar-card ul {
  padding-left: 18px;
}

.preescolar-card ul li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #444;
}

/* Párrafos */
.preescolar-card p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .preescolar-section {
    padding: 60px 6%;
  }

  .preescolar-card {
    padding: 25px;
  }
}

.primaria-section {
  padding: 80px 8%;
  background: #f4f7fb;
}

.primaria-section .container {
  max-width: 1200px;
  margin: auto;
}

.primaria-subtitle {
  text-align: center;
  color: #555;
  font-size: 1.2rem;
  margin-bottom: 50px;
}

/* ================= GRID ================= */

.primaria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

/* ================= CARDS ================= */

.primaria-card {
  background: #fff;
  padding: 40px 35px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primaria-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.primaria-card h3 {
  color: #0d47a1;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* ================= LISTA DOCUMENTOS ================= */

.primaria-card ul {
  list-style: none;
  padding: 0;
}

.primaria-card ul li {
  padding-left: 28px;
  margin-bottom: 12px;
  position: relative;
  color: #444;
  line-height: 1.6;
}

.primaria-card ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #0d47a1;
  font-weight: bold;
}

/* ================= TEXTO HORARIOS ================= */

.primaria-card p {
  color: #444;
  line-height: 1.7;
  font-size: 1.05rem;
}

.primaria-card strong {
  color: #0d47a1;
}

/* ================= FOOTER ================= */

footer {
  background: #0d47a1;
  color: #fff;
  text-align: center;
  padding: 20px;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2.2rem;
  }

  .primaria-section {
    padding: 60px 6%;
  }
}

/* ================= GALERÍA ================= */

.gallery {
  padding: 60px 8%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* ================= MODAL GALERÍA (AISLADO) ================= */

.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 3000;
}

.gallery-modal.active {
  opacity: 1;
  visibility: visible;
}

.gallery-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 220px;
  }
}

/* ================= CALENDARIO ================= */

.calendar-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}

/* Header mes */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: #1e3a8a;
  text-transform: capitalize;
}

.calendar-header button {
  background: #2563eb;
  color: #fff;
  border: none;
  font-size: 22px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.calendar-header button:hover {
  background: #1e40af;
}

/* Grid calendario */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

/* Día */
.calendar-day {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  min-height: 100px;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.calendar-day:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

/* Número del día */
.calendar-day strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

/* Evento */
.calendar-day.event {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  cursor: pointer;
  border: none;
}

.calendar-day.event strong {
  color: #fff;
}

.calendar-day.event p {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.95;
}

/* ================= MODAL ================= */

.calendar-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.calendar-modal .modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  max-width: 520px;
  width: 92%;
  animation: modalFade 0.3s ease;
  position: relative;
}

@keyframes modalFade {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.calendar-modal h3 {
  margin-top: 0;
  color: #1e3a8a;
  font-size: 20px;
}

.calendar-modal img {
  width: 100%;
  border-radius: 8px;
  margin: 12px 0;
}

.calendar-modal p {
  font-size: 15px;
  color: #334155;
  line-height: 1.5;
}

/* Botón cerrar */
#closeEvent {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s;
}

#closeEvent:hover {
  color: #1e293b;
}

/* Responsive */
@media (max-width: 768px) {
  .calendar-grid {
    gap: 8px;
  }

  .calendar-day {
    min-height: 80px;
    font-size: 13px;
  }
}

/* ================= CONTACTO ================= */

.contact-form {
  max-width: 600px;
  margin: 40px auto 60px;
  padding: 30px 25px;
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Inter', sans-serif;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  transition: border 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 8px rgba(37,99,235,0.3);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  background: #2563eb;
  color: #fff;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
  background: #1e40af;
  transform: translateY(-2px);
}

/* INFO DE CONTACTO Y MAPA */
.contact-info {
  max-width: 900px;
  margin: 50px auto 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
}

.contact-info div {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-info div h4 {
  margin: 0;
  color: #1e3a8a;
  font-size: 18px;
}

.contact-info div p {
  margin: 0;
  color: #334155;
  font-size: 15px;
}

.contact-map {
  max-width: 900px;
  margin: auto 0 60px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* HEADER DE PÁGINA */
.page-header h1 {
  text-align: center;
  font-size: 28px;
  margin-top: 40px;
  color: #1e3a8a;
  font-weight: 600;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 18px 0;
  background: #1e3a8a;
  color: #fff;
  font-size: 14px;
  margin-top: 60px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact-info {
    flex-direction: column;
    gap: 25px;
  }

  .contact-form {
    padding: 25px 20px;
  }
}