/* Estilo del sitio público. Colores y tipografía de marca (Fase 9): mismos tokens que usaba el sitio en
   Next.js (ver src/app/globals.css) — colores tomados del logo, Roboto para texto y Roboto Slab para
   títulos — para que el sitio en PHP se vea igual de terminado que el original. */

:root {
  color-scheme: light;
  --ink: #3b2523;
  --muted: #5d4542;
  --clay: #c9857a;
  --clay-dark: #7a4a45;
  --clay-soft: #f1ddd8;
  --sand: #fbf6f3;
  --border: #e3d6d0;
  --white: #fff;
  --font-sans: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Roboto Slab", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 112.5%; }
@media (min-width: 1024px) { html { font-size: 125%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.7;
}
h1, h2, h3 { font-family: var(--font-serif); color: var(--clay-dark); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 2.3rem; font-weight: 800; }
h2 { font-size: 1.8rem; font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--clay-dark); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--clay-dark); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.muted { color: var(--muted); }
.muted-dark { color: rgba(255,255,255,.8); font-size: .9rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.center-text { text-align: center; }

/* botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 1.05rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color 160ms cubic-bezier(.23,1,.32,1), color 160ms cubic-bezier(.23,1,.32,1), transform 120ms cubic-bezier(.23,1,.32,1);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--clay-dark); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-secondary { background: transparent; color: var(--clay-dark); border-color: var(--clay-dark); }
.btn-secondary:hover { background: var(--clay-soft); }
.btn-light { background: #fff; color: var(--clay-dark); }
.btn-light:hover { background: var(--clay-soft); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn-lg { min-height: 64px; padding: 0 40px; font-size: 1.2rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:disabled:active { transform: none; }

/* banner de inicio: foto horizontal de fondo + tarjeta blanca con el texto a la izquierda */
.hero-photo-banner {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: url("/images/2026_04_IMG_9119.jpg") center 60% / cover no-repeat;
}
.hero-card {
  background: #fff;
  max-width: 30rem;
  padding: 2.5rem 2.75rem;
  border-radius: 1.75rem;
  box-shadow: 0 35px 60px -30px rgba(43,35,32,.45);
}
.hero-kicker-light { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .8rem; color: var(--clay-dark); margin-bottom: .5rem; }
.hero-display { font-size: 2.6rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: .3rem; }
.hero-lead-light { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 900px) {
  .hero-photo-banner { min-height: 0; padding: 32px 0; align-items: flex-start; }
  .hero-card { max-width: 100%; padding: 1.75rem; }
  .hero-display { font-size: 2rem; }
}

/* cabecera */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251,246,243,.9); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.site-header .wrap { padding: 14px 20px; }
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--clay-dark); }
.brand-text { font-family: var(--font-serif); font-weight: 800; font-size: 1.2rem; line-height: 1.15; display: flex; flex-direction: column; }
.brand-text small { font-family: var(--font-sans); font-weight: 500; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-nav a:not(.btn) {
  padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600;
  font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; transition: background-color 160ms cubic-bezier(.23,1,.32,1);
}
.site-nav a:not(.btn):hover { background: var(--clay-soft); }

/* secciones genéricas */
.section { padding: 56px 0; }
.section-sand { background: var(--sand); }
.section-soft { background: var(--clay-soft); }
.section-white { background: #fff; }
.section-dark { background: var(--clay-dark); color: #fff; }
.section-dark h2, .section-dark h1 { color: #fff; }
.section-title { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--clay-dark); margin-bottom: .5rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 1.75rem; }
.card-soft { background: var(--sand); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .6rem; align-items: start; }
.check-list li::before { content: "✓"; flex-shrink: 0; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: var(--clay-soft); color: var(--clay-dark); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

.stat { text-align: center; }
.stat b { display: block; font-size: 2rem; font-weight: 800; color: var(--clay-dark); }

.program-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: var(--sand); }
.program-card img { aspect-ratio: 4/3; object-fit: cover; }
.program-card .body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.program-card .price { margin: 1rem 0; }
.program-card .price b { display: block; font-size: 1.5rem; color: var(--clay-dark); }
.tag { display: inline-block; background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 14px; font-size: .85rem; font-weight: 600; }

details.faq { border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.3rem; background: #fff; margin-bottom: .7rem; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--clay-dark); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] summary { margin-bottom: .6rem; }

.hero-prog { background: var(--sand); padding: 40px 0; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; padding: 1.75rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.fact { display: flex; gap: 1rem; align-items: flex-start; background: var(--sand); border-radius: 16px; padding: 1.1rem; }
.fact b { display: block; font-size: 1.1rem; color: var(--clay-dark); }

.teacher-card { border: 1px solid var(--border); border-radius: 24px; padding: 1.5rem; background: var(--sand); }
.teacher-card .head { display: flex; gap: 1rem; align-items: center; margin-bottom: .75rem; }
.teacher-card img, .teacher-card .avatar { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.teacher-card .avatar { background: var(--clay-soft); color: var(--clay-dark); display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; }

/* formularios */
form.site-form { display: grid; gap: 1rem; }
form.site-form label { font-weight: 600; margin-bottom: .3rem; display: block; }
form.site-form input, form.site-form textarea, form.site-form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; font: inherit;
}
form.site-form textarea { min-height: 110px; resize: vertical; }
.consent-row { display: flex; gap: .6rem; align-items: start; font-size: .95rem; }
.consent-row input { width: auto; margin-top: .25rem; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.notice { padding: 12px 16px; border-radius: 12px; background: var(--clay-soft); color: var(--clay-dark); font-weight: 500; }
.notice-error { background: #fbe4e1; color: #9c2f2f; }

/* pie de página */
.site-footer { background: var(--clay-dark); color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; padding: 3.5rem 20px; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); }
.footer-grid h2, .footer-grid h3 { color: #fff; }
.footer-grid a { color: #fff; }
.plain-list { list-style: none; margin: .5rem 0; padding: 0; display: grid; gap: .3rem; }
.footer-bottom { text-align: center; font-size: .9rem; padding: 1.2rem 20px; border-top: 1px solid rgba(255,255,255,.2); margin: 0; }

.maintenance {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 1.3rem; padding: 40px 20px; color: #fff;
  background:
    linear-gradient(180deg, rgba(43,35,32,.55), rgba(43,35,32,.75)),
    url("/images/2026_03_IMG_7580-scaled.jpg") center 30% / cover no-repeat;
}
.maintenance > div { max-width: 36rem; }
.maintenance h1 { color: #fff; }
.maintenance p { color: rgba(255,255,255,.92); }
.maintenance .muted { color: rgba(255,255,255,.75); }
.maintenance img.logo { background: #fff; border-radius: 999px; padding: .6rem; }

/* campus: estados de avance */
.pill { display: inline-block; border-radius: 999px; padding: 4px 14px; font-weight: 600; font-size: .95rem; }
.tone-pendiente { border: 1px solid var(--clay-dark); color: var(--clay-dark); background: #fff; }
.tone-en-curso { background: var(--clay-soft); color: var(--clay-dark); }
.tone-aprobado { background: #d1fae5; color: #065f46; }
.tone-no-aprobado { background: #fee2e2; color: #991b1b; }

/* campus: barra de progreso */
.progress-bar { height: 1rem; border-radius: 999px; background: var(--clay-soft); overflow: hidden; margin: 1rem 0; }
.progress-bar > div { height: 100%; background: #059669; border-radius: 999px; }

/* campus: layout con cabecera propia */
.campus-header { background: var(--sand); border-bottom: 1px solid var(--border); }
.campus-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.campus-nav a { display: inline-flex; min-height: 44px; align-items: center; border-radius: 999px; padding: 0 16px; font-weight: 500; color: var(--ink); text-decoration: none; }
.campus-nav a:hover { background: var(--clay-soft); }
.view-switch { background: rgba(255,255,255,.6); border-top: 1px solid var(--border); }
.view-switch .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 20px; }
.view-btn { display: inline-flex; min-height: 40px; align-items: center; border-radius: 999px; border: 2px solid var(--clay-dark); padding: 0 16px; font-weight: 500; color: var(--clay-dark); text-decoration: none; background: transparent; }
.view-btn.current { background: var(--clay-dark); color: #fff; }
.badge-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 999px; background: var(--clay-dark); color: #fff; font-size: .85rem; padding: 0 6px; margin-left: 6px; }

/* campus: calendario mensual */
.month-cal-grid { display: none; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: #fff; }
.month-cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--border); background: var(--sand); text-align: center; font-weight: 600; }
.month-cal-weekdays > div { padding: 8px 0; }
.month-cal-week { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--border); }
.month-cal-week:last-child { border-bottom: none; }
.month-cal-day { min-height: 7rem; border-right: 1px solid var(--border); padding: 6px; }
.month-cal-day:last-child { border-right: none; }
.month-cal-day.out { background: rgba(250,246,243,.6); color: var(--muted); }
.month-cal-daynum { font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.month-cal-daynum.today { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 999px; background: var(--clay-dark); color: #fff; }
.session-chip { display: block; border-radius: 8px; padding: 3px 7px; font-size: .85rem; margin-bottom: 3px; background: var(--clay-soft); color: var(--clay-dark); text-decoration: none; }
.session-chip.cancelled { background: #fee2e2; color: #991b1b; text-decoration: line-through; }
.month-cal-list { display: block; }
@media (min-width: 640px) {
  .month-cal-grid { display: block; }
  .month-cal-list { display: none; }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  h1 { font-size: 1.9rem; }
}
