/*
Theme Name: Los Pioneritos
Author: Los Pioneritos
Description: Tema moderno y responsivo para una escuela cristiana. Incluye portada, cursos, materias, vida estudiantil, noticias, llamados a inscripción y tipos de contenido personalizados.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: los-pioneritos
Tags: education, school, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --navy: #102a43;
  --navy-2: #173f5f;
  --blue: #2d6a93;
  --gold: #d8a637;
  --gold-soft: #f6e7bc;
  --cream: #fbf8f1;
  --paper: #ffffff;
  --ink: #183044;
  --muted: #647484;
  --line: #e6ebef;
  --green: #3e7a62;
  --shadow: 0 20px 55px rgba(16, 42, 67, .12);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--gold); }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  width: auto; height: auto; clip: auto; margin: 10px; padding: 12px 16px;
  background: #fff; color: var(--navy); z-index: 9999;
}

.topbar { background: var(--navy); color: #dfeaf2; font-size: .87rem; }
.topbar-inner {
  min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.topbar-items { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; }
.topbar-motto { color: var(--gold-soft); font-family: Georgia, serif; font-style: italic; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(16,42,67,.07);
}
.header-inner {
  min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.site-branding { display: flex; align-items: center; min-width: 210px; }
.custom-logo { max-height: 60px; width: auto; }
.brand-link { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand-mark {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: var(--navy);
  background: var(--gold-soft); border: 1px solid #ecd38c;
}
.brand-mark svg { width: 27px; height: 27px; }
.brand-name { display: block; font-family: Georgia, serif; font-weight: 700; font-size: 1.45rem; line-height: 1; }
.brand-tagline { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.main-navigation { margin-left: auto; }
.main-navigation ul { list-style: none; display: flex; align-items: center; gap: 28px; padding: 0; margin: 0; }
.main-navigation a { color: var(--ink); font-weight: 700; font-size: .94rem; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--gold); }
.header-cta { white-space: nowrap; }
.menu-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: var(--cream); color: var(--navy); cursor: pointer;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: ""; display: block; width: 22px; height: 2px; margin: 5px auto;
  background: currentColor; transition: .25s;
}
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 13px 22px; border: 2px solid transparent; border-radius: 999px;
  font-weight: 800; line-height: 1.1; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--gold); box-shadow: 0 12px 30px rgba(216,166,55,.25); }
.btn-primary:hover { color: #fff; background: #c99527; }
.btn-outline { color: var(--navy); border-color: rgba(16,42,67,.22); background: #fff; }
.btn-outline:hover { color: var(--navy); border-color: var(--gold); }
.btn-light { color: var(--navy); background: #fff; }
.btn-light:hover { color: var(--navy); background: var(--gold-soft); }
.text-link { font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }

.hero {
  position: relative; min-height: 690px; display: grid; align-items: center; overflow: hidden;
  background: var(--cream);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(251,248,241,.99) 0%, rgba(251,248,241,.95) 34%, rgba(251,248,241,.38) 62%, rgba(16,42,67,.08) 100%);
}
.hero-content { position: relative; z-index: 2; width: min(610px, 53%); padding-block: 90px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; color: var(--green);
  font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .16em;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--gold); }
.hero h1 {
  max-width: 600px; margin: 18px 0 22px; color: var(--navy);
  font-family: Georgia, serif; font-size: clamp(3rem, 5.2vw, 5rem); line-height: .99; letter-spacing: -.045em;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-description { max-width: 555px; margin: 0; color: #425a6c; font-size: 1.16rem; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 34px; color: var(--navy); font-size: .9rem; font-weight: 700; }
.hero-note-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--gold); box-shadow: 0 8px 24px rgba(16,42,67,.1); }

.trust-strip { position: relative; z-index: 5; margin-top: -42px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.trust-item { display: flex; align-items: center; gap: 15px; min-height: 100px; padding: 20px 24px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--gold-soft); color: var(--navy); }
.trust-icon svg { width: 22px; }
.trust-item strong { display: block; color: var(--navy); font-size: 1rem; }
.trust-item span { display: block; color: var(--muted); font-size: .8rem; }

.section { padding: 100px 0; }
.section-soft { background: var(--cream); }
.section-navy { background: var(--navy); color: #fff; }
.section-head { max-width: 670px; margin: 0 auto 48px; text-align: center; }
.section-head.align-left { margin-left: 0; text-align: left; }
.section-head h2, .split-copy h2, .cta-copy h2 {
  margin: 14px 0 15px; color: var(--navy); font-family: Georgia, serif;
  font-size: clamp(2.25rem, 4vw, 3.45rem); line-height: 1.08; letter-spacing: -.035em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.04rem; }
.section-navy .section-head h2, .section-navy .section-head p { color: #fff; }
.section-navy .eyebrow { color: var(--gold-soft); }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card, .subject-card, .post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.course-card:hover, .subject-card:hover, .post-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.card-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eaf0f3; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.course-card:hover .card-image img, .post-card:hover .card-image img { transform: scale(1.04); }
.card-badge {
  position: absolute; left: 18px; bottom: 16px; padding: 7px 12px;
  color: #fff; background: rgba(16,42,67,.9); border-radius: 999px;
  font-size: .73rem; font-weight: 800; backdrop-filter: blur(8px);
}
.card-body { padding: 25px; }
.card-body h3 { margin: 0 0 10px; color: var(--navy); font-family: Georgia, serif; font-size: 1.42rem; line-height: 1.2; }
.card-body p { margin: 0 0 18px; color: var(--muted); }
.card-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; color: var(--muted); font-size: .82rem; }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }

.subjects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.subject-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; }
.subject-icon {
  flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 16px; color: var(--navy); background: var(--gold-soft);
}
.subject-icon svg { width: 26px; height: 26px; }
.subject-card h3 { margin: 1px 0 6px; color: var(--navy); font-size: 1.03rem; }
.subject-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 75px; align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; min-height: 500px; object-fit: cover; border-radius: 30px; box-shadow: var(--shadow); }
.verse-card {
  position: absolute; left: -35px; bottom: -32px; width: min(330px, 80%);
  padding: 24px; border-radius: 18px; background: var(--navy); color: #fff; box-shadow: var(--shadow);
}
.verse-card p { margin: 0 0 8px; font-family: Georgia, serif; font-style: italic; font-size: 1.1rem; line-height: 1.45; }
.verse-card span { color: var(--gold-soft); font-size: .79rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.split-copy > p { color: var(--muted); font-size: 1.06rem; }
.value-list { list-style: none; padding: 0; margin: 28px 0 32px; }
.value-list li { position: relative; margin: 14px 0; padding-left: 31px; color: var(--ink); font-weight: 700; }
.value-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px;
  display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: .73rem;
}

.student-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 25px; }
.student-main, .student-quote { border-radius: 26px; overflow: hidden; }
.student-main { min-height: 480px; }
.student-main img { width: 100%; height: 100%; object-fit: cover; }
.student-quote {
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px; background: var(--gold); color: var(--navy);
}
.quote-mark { font-family: Georgia, serif; font-size: 5rem; line-height: .65; color: rgba(16,42,67,.27); }
.student-quote blockquote { margin: 20px 0 28px; font-family: Georgia, serif; font-size: 1.55rem; line-height: 1.45; }
.student-name { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.student-name span { display: block; font-size: .78rem; font-weight: 600; opacity: .75; }

.stats { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(255,255,255,.14); margin-top: 54px; padding-top: 45px; }
.stat { text-align: center; }
.stat strong { display: block; color: var(--gold); font-family: Georgia, serif; font-size: 2.65rem; line-height: 1; }
.stat span { display: block; margin-top: 10px; color: #dce8f0; font-size: .85rem; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card .card-image { aspect-ratio: 16/9; }
.post-card .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,var(--navy),var(--blue)); }
.post-date { color: var(--green); font-size: .77rem; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }

.cta-band { padding: 0 0 100px; }
.cta-inner {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 58px 64px; border-radius: 30px; color: #fff; background: var(--navy);
}
.cta-inner::after { content: ""; position: absolute; right: -80px; top: -120px; width: 340px; height: 340px; border: 55px solid rgba(216,166,55,.11); border-radius: 50%; }
.cta-copy { position: relative; z-index: 1; max-width: 720px; }
.cta-copy h2 { margin-top: 0; color: #fff; }
.cta-copy p { margin-bottom: 0; color: #dce8f0; }
.cta-actions { position: relative; z-index: 1; flex: 0 0 auto; }

.site-footer { color: #cbd8e1; background: #091c2d; }
.footer-main { padding: 72px 0 55px; }
.footer-grid { display: grid; grid-template-columns: 1.45fr .8fr .8fr 1.1fr; gap: 50px; }
.footer-brand .brand-link { color: #fff; }
.footer-brand p { max-width: 340px; margin: 22px 0; color: #aebeca; }
.footer-title { margin: 8px 0 20px; color: #fff; font-size: .94rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-menu, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-menu li, .footer-contact li { margin: 10px 0; }
.footer-menu a, .footer-contact a { color: #cbd8e1; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact svg { flex: 0 0 18px; width: 18px; margin-top: 5px; color: var(--gold); }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; }
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 20px; }

.page-hero { padding: 95px 0 80px; color: #fff; background: linear-gradient(135deg,var(--navy),var(--navy-2)); }
.page-hero h1 { margin: 8px 0 0; font-family: Georgia, serif; font-size: clamp(2.7rem,5vw,4.5rem); line-height: 1.04; }
.content-area { padding: 80px 0; }
.content-narrow { width: min(100%, 830px); margin: 0 auto; }
.entry-content { font-size: 1.04rem; }
.entry-content h2, .entry-content h3 { color: var(--navy); font-family: Georgia, serif; }
.entry-content img { border-radius: 18px; }
.entry-content blockquote { margin: 30px 0; padding: 22px 28px; border-left: 4px solid var(--gold); background: var(--cream); font-family: Georgia, serif; font-size: 1.25rem; }
.archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.pagination { margin-top: 45px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { padding: 9px 14px; border: 1px solid var(--line); border-radius: 9px; }
.page-numbers.current { color: #fff; background: var(--navy); }
.not-found { text-align: center; padding: 120px 20px; }
.not-found .code { color: var(--gold); font-family: Georgia, serif; font-size: 7rem; line-height: 1; }

@media (max-width: 1020px) {
  .topbar-motto, .header-cta { display: none; }
  .menu-toggle { display: block; position: relative; z-index: 103; }
  .main-navigation {
    display: none; position: fixed; inset: 84px 0 auto; height: calc(100vh - 84px);
    padding: 38px 24px; background: #fff;
  }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .main-navigation li { width: 100%; border-bottom: 1px solid var(--line); }
  .main-navigation a { display: block; padding: 16px 0; font-size: 1.1rem; }
  .hero { min-height: 650px; }
  .hero-content { width: min(620px, 70%); }
  .hero-overlay { background: linear-gradient(90deg, rgba(251,248,241,.98), rgba(251,248,241,.86) 50%, rgba(251,248,241,.18)); }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards-grid, .posts-grid, .archive-grid { grid-template-columns: repeat(2,1fr); }
  .subjects-grid { grid-template-columns: repeat(2,1fr); }
  .split { gap: 48px; }
  .student-grid { grid-template-columns: 1fr; }
  .student-main { min-height: 400px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1/-1; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .topbar-inner { min-height: 38px; }
  .topbar-items span:first-child { display: none; }
  .header-inner { min-height: 74px; }
  .main-navigation { top: 74px; height: calc(100vh - 74px); }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 1.25rem; }
  .brand-tagline { font-size: .62rem; }
  .hero { min-height: auto; padding-top: 380px; background: var(--cream); }
  .hero-bg { height: 390px; }
  .hero-bg img { object-position: 66% center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(251,248,241,0) 45%, var(--cream) 100%); }
  .hero-content { width: 100%; padding: 34px 0 75px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-description { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .trust-strip { margin-top: -30px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { min-height: 84px; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .section { padding: 75px 0; }
  .section-head { margin-bottom: 34px; }
  .cards-grid, .subjects-grid, .posts-grid, .archive-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 65px; }
  .split-media img { min-height: 390px; }
  .verse-card { left: 18px; bottom: -35px; }
  .student-main { min-height: 320px; }
  .student-quote { padding: 36px 26px; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 35px 10px; }
  .cta-band { padding-bottom: 75px; }
  .cta-inner { display: block; padding: 42px 28px; }
  .cta-actions { margin-top: 25px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom-inner { display: block; text-align: center; }
}
