/* ===================================================
   COLEGIO TONATIUH — HOME / LANDING STYLES v2
   =================================================== */

/* ── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  max-height: 820px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 8, 138, 0.82) 0%,
    rgba(0, 11, 174, 0.6) 50%,
    rgba(0, 8, 80, 0.3) 100%
  );
}

/* blue stripe at bottom of hero */
.hero-stripe {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light) 50%, var(--gold));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 clamp(18px, 5vw, 80px) 80px;
  max-width: 800px;
}

/* Two-column hero layout */
.hero-content-split {
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.hero-text-col {
  max-width: 640px;
}

.hero-logo-col {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-right: clamp(10px, 4vw, 60px);
}

.hero-shield-card {
  position: relative;
  width: clamp(240px, 25vw, 340px);
  height: clamp(240px, 25vw, 340px);
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 40px 80px rgba(0,0,0,0.5),
    inset 0 0 40px rgba(0,0,0,0.03);
  animation: shieldFloat 6s ease-in-out infinite;
}

.hero-shield-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 2px solid var(--gold-light);
  border-radius: 50%;
  opacity: 0.6;
}

.hero-shield-card::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
}

.hero-shield {
  width: 65%;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

@keyframes shieldFloat {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50%       { transform: translateY(-15px) rotate(2deg) scale(1.02); }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}

.hero-kicker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  animation: blink 2s infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  right: clamp(18px, 5vw, 80px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  gap: 10px;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 1.6s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Stat Strip ──────────────────────────────────── */
/* Already defined in global, but here are home overrides */

/* ── Quick-nav cards ──────────────────────────────── */
.quicknav-section {
  padding: 48px 0;
  background: var(--white);
  border-bottom: var(--border);
}

.quicknav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-100);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.quicknav-item {
  background: var(--white);
  padding: 26px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text-body);
  transition: var(--transition);
  position: relative;
}

.quicknav-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transition: var(--transition);
}

.quicknav-item:hover {
  background: var(--blue-xlight);
}

.quicknav-item:hover::after { transform: scaleX(1); }

.quicknav-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}

.quicknav-item:hover .quicknav-icon {
  background: var(--blue);
}

.quicknav-icon svg {
  width: 22px; height: 22px;
  color: var(--blue);
  transition: var(--transition);
}

.quicknav-item:hover .quicknav-icon svg { color: white; }

.quicknav-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--black);
}

.quicknav-text span {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.quicknav-arrow {
  margin-left: auto;
  color: var(--gray-200);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.quicknav-item:hover .quicknav-arrow {
  color: var(--blue);
  transform: translateX(3px);
}

/* ── About section ───────────────────────────────── */
.about-img-wrap {
  position: relative;
}

.about-img-main {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.about-img-accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 48%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 4px solid white;
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  top: 24px;
  left: -16px;
  background: var(--blue);
  color: white;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-blue);
}

.about-badge-num {
  font-family: 'Merriweather', serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.about-badge-text {
  font-size: 0.72rem;
  opacity: 0.8;
  margin-top: 2px;
}

.about-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature-check {
  width: 22px; height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

.about-feature-check svg {
  width: 11px; height: 11px;
  color: var(--blue);
  stroke-width: 3;
}

.about-feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-feature strong {
  color: var(--text-body);
  font-weight: 700;
}

/* ── Levels cards ─────────────────────────────────── */
.level-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: block;
  text-decoration: none;
  color: inherit;
}

.level-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.level-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.level-card:hover .level-card-img { transform: scale(1.03); }

.level-card-body {
  padding: 26px 24px;
  border-top: 3px solid var(--blue);
}

.level-card-body.gold-accent { border-top-color: var(--gold); }

.level-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.level-kicker.gold { color: var(--gold); }

.level-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.level-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.level-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--off-white);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.level-card-link {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.level-card:hover .level-card-link { gap: 8px; }

/* ── Gallery mosaic ──────────────────────────────── */
.gallery-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mosaic-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.mosaic-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mosaic-item:hover img { transform: scale(1.05); }

.mosaic-item:first-child { grid-row: span 2; }

.mosaic-overlay {
  position: absolute; inset: 0;
  background: rgba(0,11,174,0.65);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transition: var(--transition);
}

.mosaic-item:hover .mosaic-overlay { opacity: 1; }

.mosaic-overlay span {
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.04em;
}

.mosaic-more .mosaic-overlay { opacity: 1; background: rgba(0,11,174,0.75); }

.mosaic-more-text {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

/* ── Events list ──────────────────────────────────── */
.event-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: var(--border);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.event-row:first-child { padding-top: 0; }
.event-row:last-child { border-bottom: none; padding-bottom: 0; }

.event-row:hover { transform: translateX(4px); }

.event-date-box {
  min-width: 58px;
  text-align: center;
  padding: 10px 8px;
  background: var(--blue-light);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.event-date-day {
  font-family: 'Merriweather', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.event-date-month {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 3px;
}

.event-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--black);
}

.event-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.event-chip {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  margin-top: 6px;
}

.chip-gold    { background: #fef3c7; color: #92400e; }
.chip-blue    { background: var(--blue-light); color: var(--blue); }
.chip-green   { background: #dcfce7; color: #166534; }
.chip-purple  { background: #f3e8ff; color: #6b21a8; }

/* ── CTA Banner ──────────────────────────────────── */
.cta-block {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 60px) clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 100%;
  background: rgba(255,255,255,0.04);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

.cta-block::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.cta-block h2 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: white;
  margin-bottom: 8px;
}

.cta-block p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
}

.cta-block-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ── Responsive Home ─────────────────────────────── */
@media (max-width: 1024px) {
  .quicknav-grid { grid-template-columns: 1fr 1fr; }
  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px 180px;
  }
  .mosaic-item:first-child { grid-row: span 1; }
  .cta-block { grid-template-columns: 1fr; }
  .hero-shield { width: clamp(140px, 14vw, 220px); }
}

@media (max-width: 768px) {
  .hero { max-height: 680px; }
  .hero-content { padding-bottom: 60px; }
  .hero-content-split { grid-template-columns: 1fr; }
  .hero-logo-col { display: none; }
  .hero-scroll { display: none; }
  .quicknav-grid { grid-template-columns: 1fr 1fr; }
  .about-img-accent { display: none; }
  .about-badge { left: 0; top: 16px; }
  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 140px 140px;
  }
  .mosaic-item:nth-child(n+5) { display: none; }
  .cta-block-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .quicknav-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
