/*
Theme Name: CEEES Rediseño
Theme URI: https://www.ceees.mx
Author: CEEES
Description: Tema personalizado para el Centro de Estudios Especializados en Educación Superior, Cuauhtémoc.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: ceees-redisenio
*/

:root {
  --ink: #15265f;
  --muted: #5f6876;
  --paper: #f6f8f0;
  --surface: #ffffff;
  --line: #dfe6d6;
  --navy: #1f367d;
  --navy-deep: #13245a;
  --green: #7f9b3a;
  --green-dark: #5f7928;
  --green-soft: #edf4df;
  --sky: #e9eefb;
  --shadow: 0 16px 42px rgba(31, 54, 125, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--paper);
  overflow-wrap: break-word;
  overflow-x: hidden;
}

body,
button,
input,
select {
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(21, 38, 95, 0.08);
}

.admin-bar .site-header {
  top: 32px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
}

.brand-logo {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1;
}

.brand small {
  color: var(--green-dark);
  font-size: 0.82rem;
}

.menu-toggle,
.button,
.header-cta {
  border-radius: 8px;
  font-weight: 800;
}

.menu-toggle {
  min-height: 42px;
  padding: 9px 12px;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
}

.site-nav {
  grid-column: 1 / -1;
  display: none;
  gap: 2px;
  padding: 8px 0 2px;
}

.site-nav.open {
  display: grid;
}

.site-nav a {
  padding: 12px 0;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.header-cta {
  display: none;
  color: #fff;
  text-decoration: none;
  background: var(--green-dark);
}

.hero {
  display: grid;
  gap: 20px;
  padding: 18px 18px 42px;
  color: #fff;
  background: var(--navy-deep);
  overflow: hidden;
}

.hero-media {
  min-height: 230px;
  background:
    linear-gradient(180deg, rgba(19, 36, 90, 0.1), rgba(19, 36, 90, 0.28)),
    url("assets/ceees/graduacion-fila.jpeg") center/cover;
  border-radius: 8px;
}

.hero-content,
.hero-panel {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.feature-band .eyebrow,
.contact-section .eyebrow {
  color: #c7df83;
}

.hero h1,
.section-heading h2,
.feature-copy h2,
.identity-copy h2,
.campus-copy h2,
.life-copy h2,
.contact-section h2,
.detail-copy h1,
.detail-section h2,
.curriculum-section h2,
.faq-section h2 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  max-width: 12ch;
  font-size: 2.55rem;
}

.hero p {
  max-width: 640px;
  margin: 16px 0 0;
  color: #eef4ff;
}

.hero-content p,
.feature-copy p,
.identity-copy p,
.life-copy p,
.campus-copy p,
.contact-section p,
.detail-copy > p,
.detail-section p,
.curriculum-section p,
.faq-section p,
.whatsapp-card p {
  max-width: 100%;
  word-break: normal;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
}

.button.primary {
  color: #fff;
  background: var(--green-dark);
}

.button.secondary {
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
}

.hero-panel {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
}

.hero-panel span,
.program-card span,
.news-grid span {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1.12;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
}

.strip,
.detail-highlights {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.strip div,
.detail-highlights div {
  min-height: 0;
  padding: 18px;
  background: var(--surface);
  border-top: 5px solid var(--green);
}

.strip strong,
.strip span,
.detail-highlights strong,
.detail-highlights span {
  display: block;
}

.strip strong,
.detail-highlights strong {
  color: var(--navy);
  font-size: 1.25rem;
}

.strip span,
.detail-highlights span {
  margin-top: 6px;
  color: var(--muted);
}

.section,
.feature-band,
.identity-section,
.campus-section,
.life-section,
.contact-section,
.detail-hero,
.detail-section,
.curriculum-section,
.faq-section {
  padding: 46px 18px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2,
.feature-copy h2,
.identity-copy h2,
.campus-copy h2,
.life-copy h2,
.contact-section h2,
.detail-copy h1,
.detail-section h2,
.curriculum-section h2,
.faq-section h2 {
  font-size: 2rem;
}

.heading-logo,
.section-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 8px;
}

.program-grid,
.feature-list,
.testimonial-grid,
.news-grid,
.detail-list,
.career-list,
.curriculum-grid,
.faq-list {
  display: grid;
  gap: 14px;
}

.program-card,
.detail-list div,
.career-list div,
.curriculum-grid article,
.faq-list details,
.news-grid a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.program-card {
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(31, 54, 125, 0.08);
}

.program-card > img {
  height: 190px;
  object-fit: cover;
}

.program-card div,
.detail-list div,
.career-list div,
.curriculum-grid article,
.faq-list details,
.news-grid a {
  padding: 18px;
}

.card-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 8px;
}

.program-card h3 {
  margin: 8px 0 12px;
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.12;
}

.program-card p,
.feature-copy p,
.identity-copy p,
.life-copy p,
.campus-copy p,
.contact-section p,
.detail-copy > p,
.detail-section p,
.curriculum-section p,
.faq-section p {
  color: var(--muted);
}

.program-toggle {
  min-height: 40px;
  margin-top: 8px;
  padding: 9px 12px;
  color: var(--green-dark);
  font-weight: 800;
  background: var(--sky);
  border: 0;
  border-radius: 8px;
}

.program-details {
  display: none;
  margin: 16px 0 0;
  padding-left: 18px;
  color: #415260;
}

.program-card.active .program-details {
  display: block;
}

.program-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--green);
  border-radius: 0;
  cursor: pointer;
}

.feature-band {
  display: grid;
  gap: 24px;
  color: #fff;
  background: var(--navy);
}

.program-full-section {
  margin-top: 24px;
}

.program-full-panel {
  display: grid;
  gap: 20px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.program-full-panel[hidden] {
  display: none;
}

.program-panel-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.8rem;
  line-height: 1.08;
}

.program-panel-head p {
  color: var(--muted);
}

.program-facts,
.program-panel-grid {
  display: grid;
  gap: 12px;
}

.program-facts div,
.program-panel-grid > div {
  padding: 16px;
  background: var(--green-soft);
  border-radius: 8px;
}

.program-facts strong,
.program-facts span {
  display: block;
}

.program-facts strong,
.program-panel-grid h4,
.program-curriculum h4 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.08rem;
}

.program-facts span,
.program-panel-grid li,
.program-curriculum li {
  color: var(--muted);
}

.program-panel-grid ul {
  margin: 0;
  padding-left: 18px;
}

.program-curriculum {
  display: grid;
  gap: 14px;
}

.feature-copy p,
.feature-list span {
  color: #e7edff;
}

.feature-list div {
  min-height: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list strong {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.identity-section,
.life-section {
  display: grid;
  gap: 24px;
  background: var(--surface);
}

.identity-mark {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 22px;
  background: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.identity-mark img {
  max-width: 240px;
  object-fit: contain;
  border-radius: 8px;
}

.life-gallery,
.program-gallery {
  display: grid;
  gap: 10px;
}

.life-gallery img,
.program-gallery img {
  height: 210px;
  object-fit: cover;
  border-radius: 8px;
}

.campus-section {
  display: grid;
  gap: 24px;
  background: var(--green-soft);
}

.campus-image img {
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

.testimonial-grid article {
  min-height: 0;
  display: grid;
  gap: 18px;
  padding: 18px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
}

.testimonial-grid p {
  margin: 0;
}

.testimonial-grid strong {
  color: #dfe9c8;
}

.news-grid a {
  min-height: 0;
  display: grid;
  align-content: end;
  color: var(--navy);
  text-decoration: none;
}

.news-grid strong {
  margin-top: 8px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.contact-section {
  display: grid;
  gap: 24px;
  color: #fff;
  background: var(--navy-deep);
}

.contact-section p,
.contact-section a {
  color: #dbe8e6;
}

.whatsapp-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 20px;
  color: var(--ink);
  background: var(--surface);
  border-radius: 8px;
}

.whatsapp-card img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 8px;
}

.whatsapp-card strong {
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.12;
}

.whatsapp-card p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 24px 18px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
}

.site-footer span {
  color: var(--muted);
}

.detail-hero {
  display: grid;
  gap: 24px;
  background: var(--surface);
}

.back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.detail-visual {
  position: relative;
  min-height: 260px;
}

.detail-visual > img:first-child {
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

.detail-logo {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 88px;
  height: 88px;
  object-fit: contain;
  padding: 8px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-section.split {
  display: grid;
  gap: 24px;
}

.detail-list strong,
.career-list strong,
.curriculum-grid h3,
.faq-list summary {
  color: var(--navy);
  font-weight: 800;
}

.detail-list p,
.career-list p,
.faq-list p {
  margin-bottom: 0;
}

.curriculum-section {
  background: var(--green-soft);
}

.curriculum-grid {
  margin-top: 24px;
}

.curriculum-grid article {
  background: #fff;
}

.curriculum-grid ul {
  margin-bottom: 0;
  padding-left: 18px;
  color: #415260;
}

.faq-list {
  margin-top: 24px;
}

.faq-list summary {
  cursor: pointer;
}

.program-contact {
  display: grid;
  margin-top: 24px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (min-width: 700px) {
  .hero-actions,
  .program-contact {
    display: flex;
    flex-wrap: wrap;
  }

  .button {
    width: auto;
  }

  .strip,
  .detail-highlights,
  .program-facts,
  .program-grid,
  .feature-list,
  .testimonial-grid,
  .news-grid,
  .detail-list,
  .career-list,
  .program-panel-grid,
  .curriculum-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .life-gallery,
  .program-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .life-gallery img:first-child,
  .program-gallery img:first-child {
    grid-row: span 2;
    height: 430px;
  }

  .life-gallery img,
  .program-gallery img {
    height: 210px;
  }

  .site-footer {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    padding: 14px 48px;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .brand strong {
    font-size: 1.1rem;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.open {
    grid-column: auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
  }

  .site-nav a {
    padding: 0;
    border-top: 0;
    font-size: 0.95rem;
  }

  .header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 16px;
  }

  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    align-items: center;
    gap: 32px;
    padding: 72px 56px;
  }

  .hero-content {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-media {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 560px;
  }

  .hero-panel {
    grid-column: 1;
    grid-row: 2;
    max-width: 420px;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: 4.25rem;
  }

  .section,
  .feature-band,
  .identity-section,
  .campus-section,
  .life-section,
  .contact-section,
  .detail-hero,
  .detail-section,
  .curriculum-section,
  .faq-section {
    padding: 76px 56px;
  }

  .section-heading h2,
  .feature-copy h2,
  .identity-copy h2,
  .campus-copy h2,
  .life-copy h2,
  .contact-section h2,
  .detail-copy h1,
  .detail-section h2,
  .curriculum-section h2,
  .faq-section h2 {
    font-size: 3rem;
  }

  .feature-band,
  .identity-section,
  .campus-section,
  .life-section,
  .contact-section,
  .detail-hero,
  .detail-section.split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 42px;
  }

  .program-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .program-card > img {
    height: 230px;
  }

  .program-full-section {
    margin-top: 32px;
  }

  .program-full-panel {
    padding: 30px;
  }

  .program-panel-head h3 {
    font-size: 2.5rem;
  }

  .detail-highlights {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .curriculum-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-visual,
  .detail-visual > img:first-child {
    min-height: 520px;
    height: 520px;
  }

  .detail-logo {
    right: 18px;
    bottom: 18px;
    width: 140px;
    height: 140px;
    padding: 12px;
  }
}

@media (min-width: 1180px) {
  .site-header {
    padding-left: 72px;
    padding-right: 72px;
  }

  .hero,
  .section,
  .feature-band,
  .identity-section,
  .campus-section,
  .life-section,
  .contact-section,
  .detail-hero,
  .detail-section,
  .curriculum-section,
  .faq-section {
    padding-left: 84px;
    padding-right: 84px;
  }

  .hero h1 {
    font-size: 5rem;
  }

  .section-heading h2,
  .feature-copy h2,
  .identity-copy h2,
  .campus-copy h2,
  .life-copy h2,
  .contact-section h2,
  .detail-copy h1,
  .detail-section h2,
  .curriculum-section h2,
  .faq-section h2 {
    font-size: 3.55rem;
  }

  .curriculum-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .brand small {
    display: none;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .section-heading h2,
  .feature-copy h2,
  .identity-copy h2,
  .campus-copy h2,
  .life-copy h2,
  .contact-section h2,
  .detail-copy h1,
  .detail-section h2,
  .curriculum-section h2,
  .faq-section h2 {
    font-size: 1.78rem;
  }
}
