/* ============================================================
   COLEGIO HERBART — Global Styles
   Stack: HTML + CSS + PHP + JS
   ============================================================ */

/* Fuentes cargadas via <link> en header.php */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Marca */
  --color-primary:        #1B3A6B;
  --color-primary-dark:   #132D52;
  --color-primary-light:  #2355A0;
  --color-accent:         #F7C948;
  --color-accent-dark:    #E0AF20;
  --color-cta:            #E84B1A;
  --color-cta-dark:       #C73D12;

  /* Campus */
  --color-valle:          #1B3A6B;
  --color-verde:          #1B6B3A;

  /* Niveles */
  --color-nido:           #9C27B0;
  --color-preescolar:     #FF9800;
  --color-primaria:       #4CAF50;
  --color-secundaria:     #2196F3;
  --color-preparatoria:   #E91E63;

  /* Neutros */
  --color-white:          #FFFFFF;
  --color-bg:             #F8F9FF;
  --color-text:           #1A1A2E;
  --color-text-muted:     #5A6070;
  --color-border:         rgba(0, 0, 0, 0.08);

  /* Tipografía */
  --font-body:    'Montserrat', sans-serif;
  --font-display: 'Montserrat', sans-serif;

  /* Espaciado */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;

  /* Radios */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.14);

  /* Transiciones */
  --transition: 0.25s ease;

  /* Contenedor */
  --container:  1200px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

/* ── Contenedor ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── Tipografía ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.display-italic {
  font-style: italic;
  color: var(--color-cta);
}

.text-accent { color: var(--color-accent); }
.text-muted  { color: var(--color-text-muted); }

p { line-height: 1.75; }

/* ── Botones ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-cta {
  background: var(--color-cta);
  color: var(--color-white);
}
.btn-cta:hover {
  background: var(--color-cta-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Badges / Tags ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.badge-section {
  background: #EEF4FF;
  color: var(--color-primary);
  margin-bottom: 10px;
}

/* ── Section header ────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.section-header p {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-top: 8px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Animaciones de entrada ────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease both;
}
.animate-fade-in {
  animation: fadeIn 0.5s ease both;
}

/* Delays escalonados */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── Colores de nivel ──────────────────────────────────────── */
.nivel-nido        { --nivel-color: var(--color-nido);        --nivel-bg: #F3E5F5; --nivel-text: #6A1B9A; }
.nivel-preescolar  { --nivel-color: var(--color-preescolar);  --nivel-bg: #FFF3E0; --nivel-text: #E65100; }
.nivel-primaria    { --nivel-color: var(--color-primaria);    --nivel-bg: #E8F5E9; --nivel-text: #1B5E20; }
.nivel-secundaria  { --nivel-color: var(--color-secundaria);  --nivel-bg: #E3F2FD; --nivel-text: #0D47A1; }
.nivel-preparatoria{ --nivel-color: var(--color-preparatoria);--nivel-bg: #FCE4EC; --nivel-text: #880E4F; }

.nivel-tag {
  display: inline-block;
  background: var(--nivel-bg);
  color: var(--nivel-text);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

/* ── Utilidades ────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }

/* ── Responsive helpers ────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 var(--space-sm); }
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
