/*
Theme Name: EST 40 Vanguardia Institucional
Theme URI: https://secundariatecnica40.edu.mx
Author: EST 40
Description: Propuesta moderna, fotográfica e institucional para la Escuela Secundaria Técnica N° 40 «Virgilio Camacho Paniagua».
Version: 4.1.0
Text Domain: est-40
*/

:root {
  --primary: #851421;           /* Rojo Reglamentario DGEST */
  --primary-dark: #580c15;      /* Guinda sobrio */
  --primary-light: #ab1f30;     /* Acento dinámico */
  --accent-gold: #c2881e;       /* Tono institucional oro viejo */
  --slate-dark: #0f172a;       /* Gris carbón formal */
  --slate-muted: #64748b;
  --bg-page: #f8fafc;
  --surface: #ffffff;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 50px;
  --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 12px 28px rgba(133, 20, 33, 0.12);
  --transition: all 0.25s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: #1e293b;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .heading-font {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--slate-dark);
  letter-spacing: -0.02em;
}

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

.top-header-bar {
  background: var(--slate-dark);
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 8px 1.5rem;
  border-bottom: 2px solid var(--primary);
}

.top-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-header-inner a {
  color: #f1f5f9;
}

.top-header-inner a:hover {
  color: #fef08a;
}

.top-sep {
  opacity: 0.3;
  margin: 0 6px;
}

.navbar-main {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.navbar-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logos-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-dgest {
  height: 48px;
  width: auto;
  max-width: 50px;
  object-fit: contain;
  display: block;
}

.logos-divider {
  width: 1px;
  height: 38px;
  background-color: #cbd5e1;
}

.logo-plantel {
  height: 48px;
  width: auto;
  max-width: 52px;
  object-fit: contain;
  display: block;
}

.school-ident {
  display: flex;
  flex-direction: column;
}

.school-ident h1 {
  font-size: 1.22rem;
  color: var(--primary);
  line-height: 1.1;
  font-weight: 800;
}

.school-ident span {
  font-size: 0.74rem;
  color: var(--slate-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.nav-pills-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  background: #f1f5f9;
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid #e2e8f0;
}

.nav-pills-menu li a {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.nav-pills-menu li a:hover {
  color: var(--primary);
  background: rgba(133, 20, 33, 0.08);
}

.nav-btn-action {
  background: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(133, 20, 33, 0.25);
}

.nav-btn-action:hover {
  background: var(--primary-light) !important;
}

.hero-showcase {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-image: url('images/foto-hero.jpg');
  background-size: cover;
  background-position: center 30%;
  color: #ffffff;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.94) 0%,
    rgba(88, 12, 21, 0.88) 55%,
    rgba(133, 20, 33, 0.82) 100%
  );
}

.hero-inner-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  width: 100%;
}

.hero-tagline {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fef08a;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1.2rem;
}

.hero-inner-content h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.hero-inner-content .hero-subtitle {
  font-size: 1.3rem;
  color: #fca5a5;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #e2e8f0;
  max-width: 680px;
  margin-bottom: 2.2rem;
}

.hero-buttons-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-solid-white {
  display: inline-block;
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-solid-white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

.btn-outline-white {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-pill);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

.section-block {
  max-width: 1240px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.section-header-clean {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: rgba(133, 20, 33, 0.08);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
}

.section-header-clean h2 {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
}

.section-header-clean p {
  color: var(--slate-muted);
  font-size: 1.02rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.gallery-card-img {
  height: 220px;
  width: 100%;
  overflow: hidden;
  background: #e2e8f0;
}

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

.gallery-card:hover .gallery-card-img img {
  transform: scale(1.05);
}

.gallery-card-body {
  padding: 1.2rem 1.4rem;
}

.gallery-card-body h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--slate-dark);
}

.gallery-card-body p {
  font-size: 0.85rem;
  color: var(--slate-muted);
  line-height: 1.5;
}

.split-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 850px) {
  .split-content-grid { grid-template-columns: 1fr; }
}

.content-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--primary);
}

.content-panel h3 {
  font-size: 1.45rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.content-panel p {
  color: #334155;
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.panel-callout {
  background: #f8fafc;
  border-left: 3px solid var(--accent-gold);
  padding: 1rem 1.25rem;
  border-radius: 0 10px 10px 0;
  font-size: 0.92rem;
  color: #475569;
  font-style: italic;
  margin-top: 1.2rem;
}

.himno-wrapper {
  background: var(--slate-dark);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  box-shadow: var(--shadow-card);
}

.himno-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.himno-header h3 {
  color: #ffffff;
  font-size: 2.1rem;
  margin-bottom: 0.4rem;
}

.himno-header span.author {
  color: #94a3b8;
  font-size: 0.9rem;
}

.himno-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .himno-grid-layout { grid-template-columns: 1fr; }
}

.himno-stanza {
  text-align: center;
}

.himno-stanza h4 {
  color: #fca5a5;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.himno-stanza p {
  font-size: 0.98rem;
  line-height: 1.9;
  color: #f1f5f9;
}

.himno-banner-footer {
  text-align: center;
  margin-top: 2rem;
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fef08a;
  letter-spacing: 0.04em;
}

.talleres-clean-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.taller-clean-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.taller-clean-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(133, 20, 33, 0.25);
}

.taller-category {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.taller-clean-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.taller-clean-card p {
  color: var(--slate-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.biblioteca-section-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

@media (max-width: 850px) {
  .biblioteca-section-grid { grid-template-columns: 1fr; }
}

.biblioteca-text h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.biblioteca-text p {
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.7;
}

.services-list-clean {
  list-style: none;
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.services-list-clean li {
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 500;
  padding-left: 1.4rem;
  position: relative;
}

.services-list-clean li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1;
}

.biblioteca-schedule-box {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 2rem;
  border-left: 4px solid var(--primary);
}

.biblioteca-schedule-box h4 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: var(--slate-dark);
}

.biblioteca-schedule-box p {
  font-size: 0.92rem;
  color: var(--slate-muted);
  line-height: 1.65;
}

.notices-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.notice-item-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.notice-item-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.notice-card-img {
  height: 200px;
  background: #e2e8f0;
  overflow: hidden;
}

.notice-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notice-card-content {
  padding: 1.6rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.notice-meta-date {
  font-size: 0.78rem;
  color: var(--slate-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.notice-card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.notice-card-content h3 a:hover {
  color: var(--primary);
}

.notice-card-content p {
  color: var(--slate-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.notice-read-more {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.legal-card-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.legal-card-box h3 {
  font-size: 1.55rem;
  margin-bottom: 1.2rem;
  color: var(--slate-dark);
}

.legal-card-box p {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-card-box ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
  color: #334155;
  font-size: 0.92rem;
}

.legal-card-box li {
  margin-bottom: 0.6rem;
}

.footer-formal {
  background: var(--slate-dark);
  color: #94a3b8;
  padding: 4.5rem 1.5rem 2rem;
  margin-top: 6rem;
  border-top: 3px solid var(--primary);
}

.footer-columns-row {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #1e293b;
}

@media (max-width: 900px) {
  .footer-columns-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-columns-row { grid-template-columns: 1fr; }
}

.footer-brand-side h4 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.footer-brand-side p.subname {
  color: #fca5a5;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col-block h5 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col-block ul {
  list-style: none;
}

.footer-col-block li {
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
}

.footer-col-block a:hover {
  color: #ffffff;
}

.footer-bottom-strip {
  max-width: 1240px;
  margin: 1.8rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}
