/* style.css */
:root {
  --primary: #1e3c72;
  --primary-dark: #0d264d;
  --accent: #ff6b35;
  --light: #f9f9f9;
  --text: #333;
  --border: #d0e7ff;
  --bg-card: #f0f7ff;
  --success: #4caf50;
  --warning: #c62828;
  --gray: #888;
}

[data-theme="dark"] {
  --primary: #3a5bc7;
  --primary-dark: #2a46a0;
  --light: #121212;
  --text: #e0e0e0;
  --border: #444;
  --bg-card: #1e1e2e;
  --warning: #d32f2f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--light);
  transition: background-color 0.3s, color 0.3s;
}

/* Navbar */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.nav-logo {
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: bold;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #ffd54f;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
  padding: 4rem 1rem;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.hero-cta {
  background: var(--accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.hero-cta:hover {
  transform: scale(1.05);
}

/* Main */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

section {
  margin-bottom: 3rem;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

section.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

[data-theme="dark"] section {
  background: #1e1e2e;
  color: #e0e0e0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.5rem;
  display: inline-block;
}

/* Essentials */
.essentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.essentials-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  border: 2px solid var(--border);
  transition: transform 0.2s;
}

.essentials-card:hover {
  transform: translateY(-5px);
}

.essentials-card i {
  color: var(--primary);
  margin-bottom: 1rem;
}

.essentials-card a {
  display: inline-block;
  margin-top: 0.8rem;
  background: var(--primary);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
}

/* Vacaciones */
.vacations-list {
  background: #e8f5e9;
  padding: 1.2rem;
  border-radius: 10px;
  border-left: 5px solid #4caf50;
  margin-top: 1.5rem;
}

[data-theme="dark"] .vacations-list {
  background: #0a3d0a;
  border-left-color: #66bb6a;
}

.vacations-list ul {
  list-style: none;
}

.vacations-list li {
  margin: 0.7rem 0;
  font-weight: 500;
  color: #2e7d32;
}

/* Misión */
.mission-vision {
  font-style: italic;
  color: #555;
  line-height: 1.8;
  background: #fff8e1;
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 5px solid #ffb300;
}

[data-theme="dark"] .mission-vision {
  background: #2b1e00;
  color: #ffe082;
  border-left-color: #ffa000;
}

.coupon {
  display: inline-block;
  margin-top: 1rem;
  background: #ffeb3b;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
}

/* Información */
.info-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.info-links a {
  background: #e3f2fd;
  color: var(--primary);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.info-links a:hover {
  background: #bbdefb;
}

.forgot-link {
  color: #1e88e5;
  text-decoration: underline;
  font-size: 0.9rem;
}

/* Portal */
.portal-btn {
  display: inline-block;
  background: var(--success);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-right: 1rem;
}

.portal-btn:hover {
  background: #2e7d32;
}

/* Urgent Banner */
.urgent-banner {
  background: var(--warning);
  color: white;
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  font-weight: bold;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(198, 40, 40, 0.3);
}

/* Contacto */
.contact-info {
  line-height: 2;
  color: var(--text);
}

.contact-info strong {
  color: var(--primary);
}

.map-link {
  color: #1e88e5;
  text-decoration: underline;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

#contactForm input, #contactForm textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

#contactForm button {
  background: var(--primary);
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

#contactForm button:hover {
  background: var(--primary-dark);
}

/* Botón café */
.coffee-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #5d4037;
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 100;
  transition: transform 0.2s;
  border: none;
}

.coffee-button:hover {
  transform: scale(1.1);
}

/* Notificación */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #388e3c;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  display: none;
  max-width: 300px;
}

.notification button {
  background: white;
  color: #388e3c;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  float: right;
  margin-left: 1rem;
}

/* Modo oscuro */
#darkModeToggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#darkModeToggle i {
  font-size: 1.3rem;
}

footer {
  text-align: center;
  padding: 2rem;
  background: var(--primary);
  color: white;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .nav-menu {
    gap: 1rem;
    font-size: 0.9rem;
  }
  header h1 {
    font-size: 2rem;
  }
}

/* === NIVELES EDUCATIVOS === */

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 1.5rem;
}

.level-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.level-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.level-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  display: inline-block;
  padding: 0.5rem;
  border-radius: 50%;
  background: #e3f2fd;
  color: var(--primary);
}

.level-icon.preschool { background: #ffebee; color: #c62828; }
.level-icon.primary  { background: #e8f5e8; color: #2e7d32; }
.level-icon.secondary { background: #fff8e1; color: #ff8f00; }
.level-icon.prep     { background: #e3f2fd; color: #1565c0; }

.level-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.level-card .age {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.level-card ul {
  list-style: none;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.level-card ul li {
  margin: 0.4rem 0;
  position: relative;
  padding-left: 1.2rem;
}

.level-card ul li::before {
  content: "✓";
  color: #4caf50;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.level-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  transition: background 0.3s;
}

.level-btn:hover {
  background: var(--primary-dark);
}

/* Modo oscuro */
[data-theme="dark"] .level-card {
  background: #2a2a3a;
  border-color: #444;
  color: #e0e0e0;
}

[data-theme="dark"] .level-card ul li {
  color: #cccccc;
}