:root {
  --theme-ink: #1d2f55;
  --theme-text: #334155;
  --theme-muted: #64748b;
  --theme-primary: #2f4f92;
  --theme-secondary: #c9922d;
  --theme-soft: #f7f5ef;
  --theme-white: #ffffff;
  --theme-border: #d9e3ef;
  --theme-glass: rgba(11, 27, 48, 0.72);
  --theme-shadow: 0 20px 45px rgba(8, 22, 43, 0.14);
  --theme-shadow-soft: 0 12px 26px rgba(13, 28, 46, 0.1);
  --theme-radius: 18px;
}

html,
body {
  scroll-behavior: smooth;
}

body,
input,
select,
textarea {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--theme-text);
}

body {
  background:
    radial-gradient(circle at 8% 18%, rgba(201, 146, 45, 0.18), transparent 42%),
    radial-gradient(circle at 87% -10%, rgba(28, 79, 143, 0.3), transparent 48%),
    #0f1a2d;
}

/* Page transition (between HTML pages) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 20% 14%, rgba(201, 146, 45, 0.16), transparent 44%),
    radial-gradient(circle at 80% 90%, rgba(47, 79, 146, 0.2), transparent 46%),
    rgba(7, 18, 34, 0.46);
  transition: opacity 0.34s ease;
}

#wrapper {
  will-change: opacity, transform;
  transition:
    opacity 0.34s ease,
    transform 0.34s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.page-transitioning #wrapper {
  pointer-events: none;
}

body.page-transitioning-next #wrapper {
  opacity: 0;
  transform: translateX(-56px) scale(0.996);
}

body.page-transitioning-prev #wrapper {
  opacity: 0;
  transform: translateX(56px) scale(0.996);
}

body.page-transitioning:not(.page-transitioning-next):not(.page-transitioning-prev) #wrapper {
  opacity: 0;
  transform: translateY(8px) scale(0.996);
  pointer-events: none;
}

body.page-transitioning::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  #wrapper {
    transition: none !important;
  }

  body.page-transitioning #wrapper {
    opacity: 1;
    transform: none;
  }

  body.page-transitioning::after {
    opacity: 0;
  }
}

p {
  text-align: left;
  line-height: 1.75;
  color: var(--theme-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Libre Baskerville", Georgia, serif;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--theme-ink);
}

a {
  border-bottom-color: rgba(22, 34, 53, 0.35);
}

a:hover {
  color: var(--theme-primary) !important;
}

/* Background layer */
#wrapper > .bg {
  filter: brightness(0.65) saturate(1.05) contrast(1.03);
}

#wrapper.fade-in:before {
  background: linear-gradient(180deg, rgba(8, 17, 31, 0.38), rgba(8, 17, 31, 0.68));
}

/* Hero */
#intro {
  position: relative;
  justify-content: center;
  gap: 1.25rem;
  padding: 7rem 2.75rem 5rem;
  text-align: center;
}

#intro::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 11%;
  transform: translateX(-50%);
  width: min(940px, 93%);
  height: clamp(210px, 35vw, 330px);
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 16%, rgba(201, 146, 45, 0.26), transparent 44%),
    radial-gradient(circle at 50% 88%, rgba(43, 92, 166, 0.3), transparent 50%);
  filter: blur(20px);
  opacity: 0.86;
  pointer-events: none;
}

#intro .intro-title-box {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 2.15rem 2.2rem 2rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(7, 25, 48, 0.72), rgba(10, 36, 69, 0.62) 54%, rgba(18, 57, 102, 0.5));
  box-shadow: 0 22px 50px rgba(3, 10, 24, 0.42);
  backdrop-filter: blur(7px);
  overflow: hidden;
  text-align: center;
}

#intro .intro-title-box::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 1rem;
  width: min(210px, calc(100% - 3rem));
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(201, 146, 45, 0.2), #c9922d, rgba(201, 146, 45, 0.2));
  opacity: 0.94;
}

#intro h1 {
  margin-bottom: 0.9rem;
  font-size: clamp(2.9rem, 7vw, 5rem);
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #ffffff;
  text-wrap: balance;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

#intro h1 span {
  display: inline;
}

#intro h1 span:last-child {
  color: #f1f6ff;
}

#intro p {
  margin: 0;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-style: normal;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #dbe8ff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.24);
  text-align: center;
}

#intro .corner-top-left-logo {
  top: 1.5rem;
  left: 1.5rem;
  width: 104px;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.75);
  filter: drop-shadow(0 10px 20px rgba(6, 18, 34, 0.48));
}

#intro .button.icon.solo {
  background: linear-gradient(145deg, rgba(8, 28, 52, 0.4), rgba(8, 22, 42, 0.68));
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.82),
    0 10px 20px rgba(4, 12, 28, 0.38);
  transform: translateY(0);
}

#intro .button.icon.solo:hover {
  background: linear-gradient(145deg, #ffffff, #f6f9ff);
  box-shadow:
    inset 0 0 0 2px #ffffff,
    0 14px 24px rgba(4, 12, 28, 0.42);
  color: #1b3151 !important;
  transform: translateY(-2px);
}

/* Header and nav */
#header {
  height: 16rem;
  padding-bottom: 5rem;
}

#header h1#logo {
  top: 1.2rem;
  left: 1.2rem;
  pointer-events: auto;
  z-index: 6;
}

#header h1#logo a {
  display: inline-block;
  pointer-events: auto;
}

#header h1#logo a img {
  width: 98px;
}

#header .logo {
  border-width: 2px !important;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(6px);
}

#header .logo:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #ffffff !important;
  color: var(--theme-ink) !important;
}

#nav,
#main,
#footer,
#copyright {
  width: min(94%, 78rem);
  max-width: 78rem;
}

#nav {
  position: sticky;
  top: 0.9rem;
  margin-top: -2.4rem;
  height: auto;
  min-height: 4rem;
  line-height: normal;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--theme-glass);
  box-shadow: 0 16px 34px rgba(5, 16, 32, 0.38);
  backdrop-filter: blur(12px);
}

#nav ul.links {
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

#nav ul.links li {
  border-radius: 999px;
}

#nav ul.links li a {
  border-bottom: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

#nav ul.links li a:hover {
  background: rgba(255, 255, 255, 0.15);
}

#nav ul.links li.active {
  background: linear-gradient(130deg, #2f4f92, #c9922d);
}

#nav ul.links li.active a,
#nav ul.links li.active a:hover {
  color: #ffffff !important;
}

#nav ul.icons li a.icon:before {
  transition: transform 0.22s ease, color 0.22s ease;
}

#nav ul.icons li a.icon:hover:before {
  transform: translateY(-2px);
}

/* Main shells */
#main {
  margin-top: 1rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--theme-shadow);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), #ffffff);
}

#main > * {
  padding-top: 4.25rem;
  border-top: 1px solid var(--theme-border);
}

#main > *:first-child {
  border-top: 0;
}

#main > section:not(.infraestructura-video):not(.instagram-modern),
#main > article.post,
#main > .posts > article,
.section-docs,
.contact-card,
.noticia-detalle,
#posts-list article.post,
#diario-mural #news-list li,
.team-member,
.docs-list li a,
details.box,
.video-container {
  border-radius: var(--theme-radius);
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow-soft);
}

#main > section:not(.infraestructura-video):not(.instagram-modern) {
  background: linear-gradient(180deg, #ffffff, #f9fbff);
}

/* Typography rhythm */
header.major h1,
header.major h2,
#main > .post header.major > h1,
#main > .post header.major h2 {
  letter-spacing: 0.01em;
  line-height: 1.18;
}

header.major > p {
  color: var(--theme-muted);
  font-style: normal;
}

/* Generic cards and boxes */
.box,
details.box {
  border-color: var(--theme-border);
  background: #ffffff;
}

details.box summary {
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-weight: 700;
  color: var(--theme-ink);
}

details.box .detail-content {
  color: var(--theme-text);
}

/* Nosotros page */
.page-nosotros #main > .post {
  padding: clamp(3rem, 5vw, 5rem) clamp(2rem, 4vw, 4.5rem) clamp(2.6rem, 4vw, 3.5rem);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 12%, rgba(45, 120, 196, 0.11), transparent 42%),
    radial-gradient(circle at 90% 88%, rgba(201, 146, 45, 0.1), transparent 44%),
    linear-gradient(150deg, #ffffff, #f7fbff);
}

.page-nosotros #main > .post > header.major {
  position: relative;
  margin-bottom: 2.2rem;
  padding-bottom: 1.1rem;
}

.page-nosotros #main > .post > header.major::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 88px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f4f92, #c9922d);
}

.page-nosotros #main > .post > header.major h1 {
  margin-bottom: 0.75rem;
}

.page-nosotros .subtitle {
  margin: 0 auto;
  max-width: 62ch;
  font-style: normal;
  line-height: 1.75;
  color: #4a5f78;
}

.page-nosotros #main > .post > .box:first-of-type {
  margin-bottom: 1.5rem;
  border-radius: 18px;
  border: 1px solid #d5e2ef;
  background: linear-gradient(140deg, #ffffff, #f7fbff);
  box-shadow: 0 16px 30px rgba(10, 33, 58, 0.1);
}

.page-nosotros #main > .post > .box:first-of-type h2 {
  margin-bottom: 0.75rem;
}

.page-nosotros #main > .post > .box:first-of-type p {
  margin-bottom: 0;
  color: #2f455f;
  text-align: left;
}

.page-nosotros .identidad-section {
  margin: 1.7rem 0 0.5rem;
  padding: clamp(1rem, 2.2vw, 1.45rem);
  border-radius: 22px;
  border: 1px solid #d2deeb;
  background:
    radial-gradient(circle at 8% 12%, rgba(45, 120, 196, 0.12), transparent 36%),
    radial-gradient(circle at 90% 88%, rgba(201, 146, 45, 0.11), transparent 42%),
    linear-gradient(150deg, #ffffff, #f7fbff);
  box-shadow: 0 16px 32px rgba(10, 33, 58, 0.1);
}

.page-nosotros .identidad-header {
  margin-bottom: 1rem;
  text-align: left;
}

.page-nosotros .identidad-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #cad9e9;
  background: #ffffff;
  color: #36577d;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.page-nosotros .identidad-header h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
}

.page-nosotros .identidad-header > p {
  margin: 0;
  max-width: 62ch;
  color: #4a6079;
  line-height: 1.72;
  text-align: left;
}

.page-nosotros .identidad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.95rem;
}

.page-nosotros .identidad-card {
  display: flex;
  flex-direction: column;
  border-radius: 17px;
  border: 1px solid #d4e0ed;
  background: linear-gradient(160deg, #ffffff, #f7fbff);
  box-shadow: 0 12px 24px rgba(11, 35, 60, 0.11);
  overflow: hidden;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.page-nosotros .identidad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(11, 35, 60, 0.16);
}

.page-nosotros .identidad-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid #d9e5f1;
}

.page-nosotros .identidad-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.34s ease;
}

.page-nosotros .identidad-img--mision {
  object-position: 50% 8%;
}

.page-nosotros .identidad-img--vision {
  object-position: center center;
}

.page-nosotros .identidad-card:hover .identidad-img {
  transform: scale(1.04);
}

.page-nosotros .identidad-copy {
  padding: 1rem 0.95rem 0.95rem;
}

.page-nosotros .identidad-copy h3 {
  margin: 0 0 0.58rem;
  font-size: 1.22rem;
  color: #1a2f4a;
  text-transform: none;
}

.page-nosotros .identidad-copy p {
  margin: 0;
  color: #314961;
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: left;
}

.page-nosotros .identidad-values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.52rem;
}

.page-nosotros .identidad-values li {
  margin: 0;
  padding: 0.55rem 0.62rem;
  border-radius: 10px;
  border: 1px solid #d7e3ef;
  background: #ffffff;
  color: #304962;
  font-size: 0.9rem;
  line-height: 1.52;
}

.page-nosotros .identidad-values strong {
  color: #1f3d62;
}

.page-nosotros .video-container {
  position: relative;
  min-height: 420px;
  margin-top: 2rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #d6e2ef;
  box-shadow: 0 20px 36px rgba(11, 35, 61, 0.15);
}

.page-nosotros .video-fit {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.48) saturate(1.06);
}

.page-nosotros .video-overlay-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  background: linear-gradient(180deg, rgba(5, 17, 32, 0.08), rgba(5, 17, 32, 0.86));
}

.page-nosotros .video-overlay-text p {
  margin: 0;
  max-width: 82ch;
  color: #eef4ff;
  font-size: 0.98rem;
  line-height: 1.72;
  text-align: left;
}

.page-nosotros #equipo {
  margin-top: 2.3rem;
  padding: clamp(1.2rem, 2.2vw, 2rem);
  border-radius: 22px;
  border: 1px solid #d3e0ed;
  background: linear-gradient(145deg, #ffffff, #f6fbff);
  box-shadow: 0 16px 30px rgba(12, 37, 64, 0.1);
}

.page-nosotros #equipo > header.major {
  margin-bottom: 1.8rem;
}

.page-nosotros #equipo > header.major h2 {
  margin-bottom: 0.35rem;
}

.page-nosotros #equipo .tabs {
  border: 1px solid #d6e2ef;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 24px rgba(12, 37, 64, 0.09);
}

.page-nosotros #equipo .tab-content.active {
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
}

.page-nosotros #equipo .team-member {
  border: 1px solid #d9e5f1;
  text-align: center;
}

.page-nosotros #equipo .team-member p {
  min-height: 2.8em;
}

/* Buttons */
input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
  border-radius: 999px;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-weight: 700;
  letter-spacing: 0.11em;
  box-shadow: inset 0 0 0 2px var(--theme-ink);
  transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, background-color 0.22s ease;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 2px var(--theme-primary);
  color: var(--theme-primary) !important;
}

input[type="submit"].primary,
input[type="reset"].primary,
input[type="button"].primary,
button.primary,
.button.primary,
#featured-button {
  background: linear-gradient(135deg, #2f4f92, #c9922d);
  box-shadow: 0 12px 24px rgba(16, 72, 130, 0.28);
  color: #ffffff !important;
  border: 0;
}

input[type="submit"].primary:hover,
input[type="reset"].primary:hover,
input[type="button"].primary:hover,
button.primary:hover,
.button.primary:hover,
#featured-button:hover {
  color: #ffffff !important;
  box-shadow: 0 16px 30px rgba(14, 67, 122, 0.35);
}

/* Forms */
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  border-radius: 12px;
  border: 1px solid var(--theme-border);
  background-color: #f9fbff;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: #68a0dd;
  box-shadow: 0 0 0 3px rgba(36, 94, 165, 0.12);
}

/* Welcome */
#welcome .container,
#inicio-escolar-2026 .container,
#events .container,
#gallery .container,
#tour-virtual .container,
#diario-mural .container,
#mission-vision-values .container,
#instagram-feed .inner {
  width: min(100%, 1100px);
  margin-left: auto;
  margin-right: auto;
}

#welcome .container {
  position: relative;
  padding: clamp(1.6rem, 2.4vw, 2.4rem);
  border-radius: 22px;
  border: 1px solid #d6e2ef;
  background:
    radial-gradient(circle at 10% 12%, rgba(45, 120, 196, 0.14), transparent 40%),
    radial-gradient(circle at 92% 84%, rgba(201, 146, 45, 0.14), transparent 48%),
    linear-gradient(145deg, #ffffff, #f7fbff);
  box-shadow: 0 18px 36px rgba(12, 35, 61, 0.12);
}

#welcome .row.gtr-200 {
  margin-left: 0;
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.2rem, 2vw, 2.4rem);
}

#welcome .row.gtr-200 > * {
  width: auto;
  padding-left: 0;
}

#welcome .col-4 {
  min-height: auto;
}

#welcome .col-8 {
  max-width: none;
}

#welcome .image.fit {
  max-width: none;
  margin: 0;
}

#welcome .image.fit img {
  display: block;
  width: min(210px, 100%);
  margin-inline: auto;
  padding: 0.9rem;
  border-radius: 24px;
  border: 1px solid #d8e4f0;
  background: linear-gradient(160deg, #ffffff, #f4f9ff);
  box-shadow:
    0 16px 30px rgba(12, 37, 67, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

#welcome h2,
#events h2,
#diario-mural h2,
#gallery h2,
.section-docs header.major h2,
#equipo h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.45rem);
}

#welcome h2 {
  display: inline-block;
  position: relative;
  margin-bottom: 1.15rem;
  padding-bottom: 0.4rem;
}

#welcome h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f4f92, #c9922d);
}

#welcome .col-8 p {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(1.06rem, 1.25vw, 1.28rem);
  line-height: 1.72;
  color: #2b3f58;
  text-wrap: pretty;
}

/* Mission / values cards */
#mission-vision-values .box.feature {
  height: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 18px;
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow-soft);
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
}

#mission-vision-values .box.feature .icon.major {
  background: linear-gradient(140deg, #2f4f92, #c9922d);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(16, 79, 145, 0.28);
}

/* Events lists */
.events li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--theme-border);
  background: #f8fbff;
}

.events li .date {
  min-width: 7.4rem;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--theme-primary);
  text-transform: uppercase;
}

.events li h3 {
  margin: 0;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

/* Proximos eventos */
#events .events-shell {
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  border-radius: 22px;
  border: 1px solid #d5e1ee;
  background:
    radial-gradient(circle at 8% 10%, rgba(201, 146, 45, 0.14), transparent 35%),
    radial-gradient(circle at 92% 88%, rgba(47, 79, 146, 0.14), transparent 42%),
    linear-gradient(150deg, #ffffff, #f7fbff);
  box-shadow: 0 18px 34px rgba(10, 33, 58, 0.11);
}

#events .events-head {
  margin-bottom: 1rem;
  text-align: left;
}

#events .events-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.5rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  border: 1px solid #cedded;
  background: #ffffff;
  color: #3b5b81;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

#events .events-head h2 {
  margin-bottom: 0.45rem;
}

#events .events-head > p {
  margin: 0;
  max-width: 62ch;
  color: #4a617d;
  line-height: 1.72;
  text-align: left;
}

#events .events-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

#events .events-grid li {
  margin: 0;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid #d5e2ef;
  background: linear-gradient(160deg, #ffffff, #f7fbff);
  box-shadow: 0 10px 22px rgba(10, 33, 58, 0.1);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.78rem;
  align-items: start;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

#events .events-grid li:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(10, 33, 58, 0.16);
}

#events .event-date {
  width: 4.3rem;
  min-height: 4.3rem;
  border-radius: 12px;
  border: 1px solid #d2dfec;
  background: linear-gradient(155deg, #fefefe, #f2f7ff);
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
  align-content: center;
  gap: 0.08rem;
  padding: 0.4rem 0.25rem;
}

#events .event-day {
  color: #1f3d66;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1;
}

#events .event-month,
#events .event-year {
  color: #4f6c8f;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

#events .event-copy h3 {
  margin: 0 0 0.34rem;
  font-size: 1.02rem;
  line-height: 1.3;
  color: #1a3150;
  text-transform: none;
}

#events .event-copy p {
  margin: 0;
  color: #3e5672;
  font-size: 0.92rem;
  line-height: 1.62;
  text-align: left;
}

/* Inicio año escolar */
#main.home-main > #inicio-escolar-2026 {
  border-top: 0;
}

#inicio-escolar-2026 .inicio-2026-shell {
  position: relative;
  isolation: isolate;
  padding: clamp(1.5rem, 2.6vw, 2.6rem);
  border-radius: 22px;
  border: 1px solid #d5e1ee;
  background:
    radial-gradient(circle at 12% 6%, rgba(201, 146, 45, 0.2), transparent 36%),
    radial-gradient(circle at 94% 88%, rgba(47, 79, 146, 0.2), transparent 42%),
    linear-gradient(150deg, #ffffff 0%, #f7fbff 54%, #f2f8ff 100%);
  box-shadow: 0 22px 42px rgba(10, 33, 58, 0.14);
}

#inicio-escolar-2026 .inicio-2026-shell::before {
  display: none;
}

#inicio-escolar-2026 .inicio-2026-head {
  margin-bottom: 1.25rem;
  text-align: left;
}

#inicio-escolar-2026 .inicio-2026-head-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

#inicio-escolar-2026 .inicio-2026-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin: 0;
  padding: 0.44rem 0.88rem;
  border-radius: 999px;
  background: linear-gradient(136deg, #ff3d6e, #d81d56);
  color: #ffffff;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(217, 31, 87, 0.34);
  animation: inicioPulseTag 1.6s infinite;
}

#inicio-escolar-2026 .inicio-2026-badge::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #ffffff;
}

#inicio-escolar-2026 .inicio-2026-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  border: 1px solid #d6e2ef;
  background: #ffffff;
  color: #355780;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

#inicio-escolar-2026 .inicio-2026-head h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.95rem, 2.5vw, 2.52rem);
  line-height: 1.14;
  text-wrap: balance;
}

#inicio-escolar-2026 .inicio-2026-head > p:last-child {
  margin: 0;
  max-width: 64ch;
  color: #425c79;
  font-size: 0.98rem;
  line-height: 1.72;
  text-align: left;
}

#inicio-escolar-2026 .inicio-2026-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

#inicio-escolar-2026 .inicio-2026-card {
  margin: 0;
  padding: 1.05rem;
  border-radius: 18px;
  border: 1px solid #d4e0ed;
  background: linear-gradient(160deg, #ffffff, #f6faff);
  box-shadow:
    0 14px 28px rgba(10, 33, 58, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

#inicio-escolar-2026 .inicio-2026-card--dia1 {
  border-top: 5px solid #2f4f92;
}

#inicio-escolar-2026 .inicio-2026-card--dia2 {
  border-top: 5px solid #c9922d;
}

#inicio-escolar-2026 .inicio-2026-card-head {
  margin-bottom: 0.72rem;
}

#inicio-escolar-2026 .inicio-2026-card-date {
  margin: 0 0 0.3rem;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #547196;
}

#inicio-escolar-2026 .inicio-2026-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.32;
  color: #1a3354;
  text-transform: none;
}

#inicio-escolar-2026 .inicio-2026-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.48rem;
}

#inicio-escolar-2026 .inicio-2026-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 0;
  padding: 0.62rem 0.68rem;
  border-radius: 12px;
  border: 1px solid #dbe6f2;
  background: linear-gradient(155deg, #ffffff, #f5f9ff);
}

#inicio-escolar-2026 .inicio-2026-curso {
  color: #1f3d66;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  text-wrap: balance;
}

#inicio-escolar-2026 .inicio-2026-hora {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.26rem 0.56rem;
  border-radius: 999px;
  border: 1px solid #d4e1ef;
  background: #ffffff;
  color: #3a5878;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

#inicio-escolar-2026 .inicio-2026-hora strong {
  color: #1f3e67;
  font-weight: 800;
}

#inicio-escolar-2026 .inicio-2026-hitos {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

#inicio-escolar-2026 .inicio-2026-hito {
  margin: 0;
  padding: 0.94rem;
  border-radius: 15px;
  border: 1px solid #d5e2ef;
  background: linear-gradient(160deg, #ffffff, #f4f9ff);
  box-shadow: 0 10px 20px rgba(10, 33, 58, 0.08);
}

#inicio-escolar-2026 .inicio-2026-hito h4 {
  margin: 0 0 0.3rem;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #1f3d66;
  text-transform: uppercase;
}

#inicio-escolar-2026 .inicio-2026-hito p {
  margin: 0;
  color: #415b78;
  font-size: 0.88rem;
  line-height: 1.62;
  text-align: left;
}

#inicio-escolar-2026 .inicio-2026-footer {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.95rem;
  padding: 0.88rem 1rem;
  border-radius: 14px;
  border: 1px solid #d8e3ef;
  background: linear-gradient(160deg, #ffffff, #f3f8ff);
}

#inicio-escolar-2026 .inicio-2026-footer p {
  margin: 0;
  color: #435c79;
  font-size: 0.87rem;
  line-height: 1.6;
  text-align: left;
}

#inicio-escolar-2026 .inicio-2026-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.72rem;
}

#inicio-escolar-2026 .inicio-2026-actions .button {
  margin: 0;
}

#inicio-escolar-2026 .inicio-2026-actions span {
  color: #4d6582;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

#inicio-escolar-2026 .inicio-2026-view-btn {
  min-width: 10.8rem;
  text-align: center;
}

@keyframes inicioPulseTag {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.84;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Diario mural */
#diario-mural .container {
  padding: clamp(1.6rem, 2.6vw, 2.6rem);
  border-radius: 22px;
  border: 1px solid #d6e2ef;
  background:
    radial-gradient(circle at 92% 12%, rgba(45, 120, 196, 0.12), transparent 38%),
    linear-gradient(150deg, #ffffff, #f7fbff 58%, #f2faf9);
  box-shadow: 0 18px 36px rgba(12, 35, 61, 0.11);
}

#diario-mural h2 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

#diario-mural h2::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f4f92, #c9922d);
  box-shadow: 0 0 0 6px rgba(45, 120, 196, 0.12);
}

#diario-mural .slider-wrapper {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem;
  align-items: center;
  gap: 1.25rem;
}

#diario-mural #news-list {
  margin: 0;
  padding: 0;
}

#diario-mural .nav-arrow {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  border: 2px solid #2d6daf;
  background: #ffffff;
  color: #1f4f86;
  box-shadow: 0 8px 18px rgba(16, 50, 88, 0.15);
}

#diario-mural .nav-arrow:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #2f4f92, #c9922d);
  color: #ffffff;
}

#diario-mural #news-list li {
  padding: 1.35rem 1.35rem 1.2rem;
  border-radius: 16px;
  border: 1px solid #d3e0ef;
  background: #ffffff;
  box-shadow: 0 16px 28px rgba(10, 35, 62, 0.1);
}

#diario-mural #news-list li .date {
  margin-bottom: 0.85rem;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #456992;
}

#diario-mural #news-list li img {
  max-height: 300px;
  border-radius: 12px;
  border: 1px solid #dbe7f3;
  margin-bottom: 1rem;
}

#diario-mural #news-list li h3 {
  margin-bottom: 0.75rem;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #18263c;
}

#diario-mural #news-list li .summary {
  color: #2e445f;
  font-size: 1.03rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

#diario-mural #news-list li .read-more {
  align-self: flex-start;
  border-radius: 999px;
  border: 1px solid #2d6daf;
  background: #f6faff;
  color: #2d6daf !important;
  padding: 0.62rem 1.1rem;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

#diario-mural #news-list li .read-more:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #2f4f92, #c9922d);
  color: #ffffff !important;
}

/* Infra section */
.wrapper.infraestructura-video {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--theme-shadow);
}

.infraestructura-video .infra-overlay {
  background: linear-gradient(180deg, rgba(3, 11, 23, 0.2), rgba(3, 11, 23, 0.65));
}

.infraestructura-video .infra-content h2 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  letter-spacing: 0.02em;
}

.infraestructura-video .infra-content p {
  max-width: 700px;
}

/* Tour virtual */
.tour-virtual-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.82fr);
  gap: 1rem;
  align-items: center;
  padding: clamp(1rem, 2vw, 1.45rem);
  border-radius: 24px;
  border: 1px solid rgba(201, 221, 243, 0.52);
  background:
    radial-gradient(circle at 4% 6%, rgba(201, 146, 45, 0.2), transparent 34%),
    radial-gradient(circle at 96% 92%, rgba(45, 120, 196, 0.26), transparent 42%),
    linear-gradient(145deg, #0f2642, #123b62 46%, #102c49);
  box-shadow: 0 22px 40px rgba(7, 20, 37, 0.34);
  overflow: hidden;
}

.tour-copy {
  order: 2;
  padding: 0.2rem 0.25rem 0.2rem 0.4rem;
  max-width: 42ch;
  text-align: left;
}

.tour-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.55rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(208, 227, 248, 0.46);
  background: rgba(255, 255, 255, 0.12);
  color: #e4efff;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tour-copy h2 {
  margin-bottom: 0.55rem;
  color: #ffffff;
  font-size: clamp(1.95rem, 3.3vw, 2.7rem);
  line-height: 1.15;
}

.tour-copy > p {
  margin: 0;
  color: #d9e7f9;
  line-height: 1.75;
  text-align: left;
}

.tour-copy .actions {
  margin: 1rem 0 0;
}

.tour-copy .button.primary {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  box-shadow: 0 14px 28px rgba(8, 34, 62, 0.34);
}

.tour-video-wrap {
  order: 1;
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(218, 232, 248, 0.42);
  background: #07192d;
  box-shadow: 0 20px 34px rgba(5, 15, 28, 0.44);
  overflow: hidden;
  align-self: center;
}

.tour-video-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -18px 38px rgba(2, 11, 21, 0.18);
}

.tour-video-wrap iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Gallery and instagram */
#gallery .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

#gallery .grid > div {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--theme-shadow-soft);
}

#gallery .grid img {
  transition: transform 0.35s ease;
}

#gallery .grid > div:hover img {
  transform: scale(1.04);
}

.instagram-modern {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(205, 223, 244, 0.38);
  box-shadow: 0 22px 42px rgba(8, 22, 41, 0.26);
  background:
    radial-gradient(circle at 6% 8%, rgba(201, 146, 45, 0.22), transparent 34%),
    radial-gradient(circle at 94% 92%, rgba(47, 79, 146, 0.34), transparent 42%),
    linear-gradient(148deg, #102946, #12395f 52%, #0e2743);
  overflow: hidden;
}

.instagram-shell {
  display: grid;
  grid-template-columns: minmax(250px, 0.95fr) minmax(0, 1.45fr);
  align-items: start;
  gap: 1rem;
}

.instagram-header {
  padding: clamp(1rem, 2vw, 1.35rem) 0.2rem;
  text-align: left;
}

.instagram-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.6rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(223, 232, 246, 0.46);
  background: rgba(255, 255, 255, 0.12);
  color: #e8f0fd;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.instagram-header h2 {
  margin-bottom: 0.55rem;
  color: #ffffff;
  font-size: clamp(1.85rem, 3.1vw, 2.5rem);
  line-height: 1.16;
}

.instagram-header p {
  margin: 0;
  max-width: 42ch;
  color: #d8e6f9;
  line-height: 1.74;
  text-align: left;
}

.instagram-header a {
  color: #ffe4a3;
  border-bottom-color: rgba(255, 228, 163, 0.45);
}

.instagram-header .actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-start;
  padding-left: 0;
}

.instagram-header .actions li {
  padding-left: 0;
}

.instagram-header .actions .button {
  border-radius: 999px;
  border: 1px solid #f1d08a;
  background: linear-gradient(135deg, #2f4f92, #c9922d);
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(8, 31, 58, 0.32);
}

.instagram-header .actions .button:hover {
  border-color: #ffe5ac;
  transform: translateY(-2px);
}

.instagram-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.instagram-feed-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(213, 226, 242, 0.44);
  background: linear-gradient(165deg, #fefefe, #f5f9ff);
  box-shadow: 0 18px 34px rgba(7, 20, 36, 0.3);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.instagram-feed-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.instagram-feed-card:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 208, 138, 0.82);
  box-shadow: 0 24px 40px rgba(7, 20, 36, 0.34);
}

.instagram-feed-card--accent {
  background:
    radial-gradient(circle at 16% 14%, rgba(47, 79, 146, 0.18), transparent 36%),
    radial-gradient(circle at 82% 86%, rgba(201, 146, 45, 0.24), transparent 40%),
    linear-gradient(165deg, #fefefe, #eef6ff);
}

.instagram-feed-media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(16, 41, 70, 0.08);
}

.instagram-feed-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.34s ease;
}

.instagram-feed-card:hover .instagram-feed-media img {
  transform: scale(1.04);
}

.instagram-feed-copy {
  display: grid;
  gap: 0.28rem;
  padding: 1rem;
}

.instagram-feed-copy strong {
  color: #102946;
  font-family: "Libre Baskerville", "Georgia", serif;
  font-size: 1rem;
  line-height: 1.3;
}

.instagram-feed-copy small {
  color: #4f6785;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Team */
.tabs {
  border-radius: 20px;
  border: 1px solid var(--theme-border);
  background: #ffffff;
  box-shadow: var(--theme-shadow-soft);
  padding: 1.5rem;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.tab-buttons li {
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: #f5f8fc;
  color: var(--theme-ink);
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 0.95rem;
  cursor: pointer;
  transition: all 0.22s ease;
}

.tab-buttons li:hover,
.tab-buttons li.active {
  background: linear-gradient(135deg, #2f4f92, #c9922d);
  border-color: transparent;
  color: #ffffff;
}

.tab-content.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.team-member {
  padding: 1.2rem 1rem;
  background: linear-gradient(180deg, #ffffff, #f6faff);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(12, 39, 70, 0.15);
}

.team-member img {
  width: 134px !important;
  height: 134px !important;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 20px rgba(12, 39, 70, 0.18);
}

.team-member h3 {
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.team-member p {
  margin-bottom: 0;
  font-size: 0.88rem;
  color: var(--theme-muted);
}

/* News list + detail */
#featured-title,
#posts-list article.post header.major h2 a,
#contenido-noticia h2 {
  font-family: "Libre Baskerville", Georgia, serif;
}

/* Noticias page */
.page-noticias .news-hero {
  margin-bottom: 1.25rem;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border-radius: 22px;
  border: 1px solid #d6e2ef;
  background:
    radial-gradient(circle at 10% 14%, rgba(45, 120, 196, 0.13), transparent 36%),
    radial-gradient(circle at 88% 84%, rgba(201, 146, 45, 0.12), transparent 42%),
    linear-gradient(150deg, #ffffff, #f7fbff);
  box-shadow: 0 16px 34px rgba(11, 35, 61, 0.11);
}

.page-noticias .news-kicker {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.32rem 0.74rem;
  border-radius: 999px;
  border: 1px solid #c8d9eb;
  background: #ffffff;
  color: #35577f;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.page-noticias .news-hero h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.9rem, 3.7vw, 3rem);
  line-height: 1.16;
}

.page-noticias .news-hero > p {
  margin: 0;
  max-width: 64ch;
  color: #48607c;
  line-height: 1.72;
}

.page-noticias #main > .post.featured {
  margin-bottom: 1.4rem;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  border-radius: 20px;
  border: 1px solid #d4e1ee;
  background: linear-gradient(155deg, #ffffff, #f7fbff);
  box-shadow: 0 16px 30px rgba(10, 33, 58, 0.1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 38%);
  grid-template-areas:
    "header image"
    "actions image";
  gap: 1rem 1.2rem;
  align-items: start;
  text-align: left;
}

.page-noticias #main > .post.featured header.major {
  grid-area: header;
  margin: 0;
  text-align: left;
}

.page-noticias #featured-date {
  margin-bottom: 0.7rem;
  color: #4d6f95;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.page-noticias #featured-title {
  display: inline;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.2;
  color: #15263f !important;
}

.page-noticias #featured-content {
  margin-top: 0.9rem;
  margin-bottom: 0;
  max-width: 58ch;
  color: #314a67;
  font-size: 1.02rem;
  line-height: 1.72;
}

.page-noticias #featured-link {
  grid-area: image;
  margin-bottom: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d7e3ef;
  box-shadow: 0 12px 24px rgba(11, 35, 60, 0.14);
}

.page-noticias #featured-image {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.page-noticias #featured-link:hover #featured-image {
  transform: scale(1.03);
}

.page-noticias #main > .post.featured ul.actions.special {
  grid-area: actions;
  margin: 0;
  text-align: left;
}

.page-noticias #featured-button {
  border-radius: 999px;
  padding-inline: 1.5rem;
}

.page-noticias #posts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 0;
}

.page-noticias #posts-list article.post {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.9rem;
  padding: 1.05rem;
  border: 1px solid #d4e1ee;
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff, #f7fbff);
  box-shadow: 0 10px 20px rgba(10, 33, 58, 0.09);
}

.page-noticias #posts-list article.post header.major {
  margin-bottom: 0;
  text-align: left;
}

.page-noticias #posts-list article.post header.major .date {
  margin-bottom: 0.45rem;
  color: #4f7096;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.page-noticias #posts-list article.post header.major h2 {
  margin-bottom: 0.45rem;
  font-size: 1.22rem;
  line-height: 1.28;
  text-transform: none;
}

.page-noticias #posts-list article.post header.major p {
  margin-bottom: 0;
  color: #3c526d;
  font-size: 0.95rem;
  line-height: 1.62;
}

.page-noticias #posts-list article.post a.image.fit {
  margin-bottom: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d8e4f0;
}

.page-noticias #posts-list article.post a.image.fit img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.page-noticias #posts-list article.post:hover a.image.fit img {
  transform: scale(1.04);
}

.page-noticias #posts-list article.post ul.actions.special {
  margin: 0;
  text-align: left;
}

.page-noticias #posts-list article.post ul.actions.special li a.button {
  border: 1px solid #2d6daf;
  border-radius: 999px;
  padding-inline: 1.25rem;
  color: #2d6daf !important;
  background: #f6faff;
}

.page-noticias #posts-list article.post ul.actions.special li a.button:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #2f4f92, #c9922d);
  color: #ffffff !important;
}

.page-noticias .news-pagination-wrap {
  width: min(94%, 78rem);
  margin: 1rem auto 0;
  border-radius: 16px;
  border: 1px solid #d7e3ef;
  background: linear-gradient(150deg, #ffffff, #f7fbff);
  box-shadow: 0 10px 20px rgba(10, 33, 58, 0.08);
}

.page-noticias .news-pagination-wrap .pagination {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0.65rem;
}

.page-noticias #pagination:empty {
  display: none;
}

#posts-list article.post {
  border-radius: 16px;
  border: 1px solid var(--theme-border);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

#posts-list article.post:hover {
  box-shadow: 0 16px 30px rgba(11, 34, 60, 0.14);
}

#posts-list article.post ul.actions.special li a.button {
  border-radius: 999px;
  border-color: #2d6daf;
  color: #2d6daf !important;
}

#posts-list article.post ul.actions.special li a.button:hover {
  background: #2d6daf;
  color: #ffffff !important;
}

.noticia-detalle {
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow-soft);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
}

#galeria {
  gap: 1.1rem;
}

.galeria-img {
  border-radius: 12px;
  box-shadow: var(--theme-shadow-soft);
}

/* Documents and contact */
.section-docs {
  border: 1px solid var(--theme-border);
  border-radius: 20px;
  box-shadow: var(--theme-shadow-soft);
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.docs-list li a {
  border: 1px solid var(--theme-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(11, 33, 58, 0.08);
}

.docs-list li a .icon {
  color: #2d6daf;
}

.docs-list li a:hover {
  background: linear-gradient(135deg, #2f4f92, #c9922d);
  color: #ffffff !important;
  border-color: transparent;
}

/* Documentos page */
.page-documentos #documentos.section-docs {
  padding: clamp(1.4rem, 2.6vw, 2.5rem);
  border-radius: 24px;
  border: 1px solid #d5e1ee;
  background:
    radial-gradient(circle at 12% 14%, rgba(45, 120, 196, 0.14), transparent 40%),
    radial-gradient(circle at 92% 88%, rgba(201, 146, 45, 0.12), transparent 44%),
    linear-gradient(150deg, #ffffff, #f7fbff);
  box-shadow: 0 20px 42px rgba(11, 34, 60, 0.13);
  opacity: 1;
  transform: none;
}

.page-documentos .docs-hero {
  margin-bottom: 1.6rem;
}

.page-documentos .docs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.9fr);
  gap: 1.1rem;
  align-items: stretch;
}

.page-documentos .docs-hero-copy {
  text-align: left;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid #d7e3ef;
  background: linear-gradient(150deg, #ffffff, #f8fbff);
  box-shadow: 0 12px 24px rgba(10, 33, 58, 0.08);
}

.page-documentos .docs-kicker {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #c8d9eb;
  background: #ffffff;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #35577f;
}

.page-documentos .docs-hero h2 {
  margin-bottom: 0.7rem;
}

.page-documentos .docs-hero-copy > p {
  margin: 0 0 0.4rem;
  max-width: 64ch;
  color: #48607c;
  line-height: 1.72;
}

.page-documentos .docs-highlights {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.page-documentos .docs-highlights li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #d3e1ef;
  background: #ffffff;
  color: #304b69;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.page-documentos .docs-highlights .icon {
  color: #2d6daf;
}

.page-documentos .docs-visual {
  border-radius: 18px;
  border: 1px solid #d7e3ef;
  overflow: hidden;
  background: linear-gradient(165deg, #ffffff, #f5faff);
  box-shadow: 0 14px 26px rgba(10, 33, 58, 0.11);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.page-documentos .docs-visual img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}

.page-documentos .docs-visual-meta {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem 0.9rem;
  border-top: 1px solid #d7e3ef;
  background: rgba(255, 255, 255, 0.95);
}

.page-documentos .docs-visual-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #385778;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.page-documentos .docs-visual-meta .icon {
  color: #2d6daf;
}

.page-documentos .docs-toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.page-documentos .pdf-selector-container {
  margin: 0;
  max-width: 540px;
  width: 100%;
  align-items: stretch;
  gap: 0.55rem;
}

.page-documentos .pdf-selector-label {
  text-align: left;
  margin: 0;
  color: #1f3653;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-documentos .pdf-selector-select {
  width: 100%;
  max-width: none;
  border: 1px solid #c7d8ea;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #f5faff);
  color: #21456e;
  box-shadow: 0 8px 18px rgba(10, 33, 58, 0.08);
}

.page-documentos .pdf-selector-select:hover,
.page-documentos .pdf-selector-select:focus {
  border-color: #4d86c0;
  box-shadow: 0 10px 22px rgba(16, 65, 115, 0.18);
}

.page-documentos #docs-list.docs-list {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.95rem;
}

.page-documentos #docs-list li {
  padding-left: 0;
}

.page-documentos #docs-list li a {
  position: relative;
  min-height: 118px;
  padding: 1.15rem 1rem 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  border: 1px solid #d2e0ee;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(10, 33, 58, 0.08);
  opacity: 1;
  transform: none;
}

.page-documentos #docs-list li a::after {
  content: attr(data-tag);
  position: absolute;
  top: 0.7rem;
  right: 0.72rem;
  padding: 0.2rem 0.52rem;
  border-radius: 999px;
  background: #eef4fc;
  border: 1px solid #d6e3f0;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #48698f;
}

.page-documentos #docs-list li a .icon {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7e4f0;
  background: #f3f8ff;
  color: #2d6daf;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.page-documentos #docs-list li a span:last-child {
  margin-right: 4.9rem;
  color: #1f334e;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.44;
  text-align: left;
}

.page-documentos #docs-list li a:hover {
  transform: translateY(-4px);
  border-color: #8fb2d8;
  background: linear-gradient(145deg, #ffffff, #f4f9ff);
  color: inherit !important;
  box-shadow: 0 16px 30px rgba(11, 36, 61, 0.16);
}

.page-documentos #docs-list li a:hover .icon {
  border-color: transparent;
  background: linear-gradient(135deg, #2f4f92, #c9922d);
  color: #ffffff;
}

.page-documentos .docs-note {
  margin: 1.25rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  border: 1px dashed #c6d8ea;
  background: #f8fbff;
  color: #45607c;
  font-size: 0.88rem;
}

.page-documentos .docs-note .icon {
  color: #2d6daf;
}

.page-documentos #pdfContainer {
  margin-top: 1.45rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid #cfdeec;
  background: linear-gradient(160deg, #ffffff, #f7fbff);
  box-shadow: 0 14px 28px rgba(10, 33, 58, 0.1);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.page-documentos #pdfContainer.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-documentos #pdfContainer h3 {
  margin: 0 0 0.8rem;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #1f3653;
}

.page-documentos #pdfViewer {
  display: block;
  width: 100%;
  min-height: 640px;
  border-radius: 12px;
  border: 1px solid #d4e1ee;
  background: #ffffff;
}

.contact-card {
  border: 1px solid var(--theme-border);
  border-radius: 20px;
  box-shadow: var(--theme-shadow-soft);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.section-contact {
  background: transparent;
}

.info-item i,
.info-item h3,
.contact-form h3 {
  color: #2d6daf;
}

.contact-map iframe {
  border-radius: 14px;
  box-shadow: var(--theme-shadow-soft);
}

/* Gracias page */
.page-gracias #gracias-confirmacion {
  background: transparent;
}

.page-gracias .thanks-shell {
  width: min(100%, 980px);
  margin: 0 auto;
}

.page-gracias .thanks-card {
  margin: 0 auto;
  max-width: 760px;
  padding: clamp(1.6rem, 2.8vw, 2.5rem);
  border-radius: 22px;
  border: 1px solid #d6e2ef;
  background:
    radial-gradient(circle at 18% 8%, rgba(201, 146, 45, 0.16), transparent 36%),
    radial-gradient(circle at 84% 86%, rgba(47, 79, 146, 0.14), transparent 44%),
    linear-gradient(152deg, #ffffff, #f7fbff);
  box-shadow: 0 20px 36px rgba(10, 33, 58, 0.12);
  text-align: center;
}

.page-gracias .thanks-check {
  width: 74px;
  height: 74px;
  margin: 0 auto 0.9rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #2f4f92, #53a1b8);
  box-shadow: 0 14px 26px rgba(15, 58, 105, 0.28);
}

.page-gracias .thanks-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.55rem;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  border: 1px solid #ccdaea;
  background: #ffffff;
  color: #385a80;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.page-gracias .thanks-card h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.2;
  text-transform: none;
  color: #193454;
}

.page-gracias .thanks-copy {
  margin: 0 auto;
  max-width: 56ch;
  color: #3f5c7b;
  line-height: 1.74;
  text-align: center;
}

.page-gracias .thanks-note {
  margin: 1rem auto 0;
  max-width: 56ch;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid #d7e4f2;
  background: linear-gradient(152deg, #ffffff, #f2f8ff);
}

.page-gracias .thanks-note p {
  margin: 0;
  color: #385676;
  font-size: 0.9rem;
  text-align: center;
}

.page-gracias .thanks-note strong {
  color: #1e3f66;
}

.page-gracias .thanks-actions {
  margin-top: 1.15rem;
  justify-content: center;
}

.page-gracias .thanks-actions li {
  margin: 0 0.45rem 0.55rem;
}

/* Footer */
#footer {
  margin-top: 1.1rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--theme-shadow);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, #101f33, #163453);
  color: #ced8e5;
}

#footer h1,
#footer h2,
#footer h3,
#footer h4,
#footer h5,
#footer h6,
#footer strong,
#footer b,
#footer p,
#footer label,
#footer a {
  color: #d6e1ef;
}

#footer a {
  border-bottom-color: rgba(214, 225, 239, 0.45);
}

#footer a:hover {
  color: #ffffff !important;
}

#footer input[type="text"],
#footer input[type="password"],
#footer input[type="email"],
#footer textarea,
#footer select {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.25);
  color: #f4f8ff;
}

#footer input[type="submit"],
#footer input[type="reset"],
#footer input[type="button"],
#footer button,
#footer .button {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
  color: #ffffff !important;
}

#footer input[type="submit"]:hover,
#footer input[type="reset"]:hover,
#footer input[type="button"]:hover,
#footer button:hover,
#footer .button:hover {
  box-shadow: inset 0 0 0 2px #ffffff;
  color: #ffffff !important;
}

#footer > section,
#footer > section.split > section {
  border-color: rgba(255, 255, 255, 0.15);
}

#copyright {
  margin: 1.1rem auto 2.2rem;
  color: #d5e0ef;
}

#copyright a {
  color: #d5e0ef;
}

/* Mobile nav panel */
#navPanel {
  background: linear-gradient(180deg, #10243d, #0d1a2d);
}

#navPanel .links li {
  border-top-color: rgba(255, 255, 255, 0.16);
}

#navPanel .links li a {
  color: #e8f1ff;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}

#navPanel ul.icons {
  margin-top: 1.15rem;
}

#navPanel ul.icons li a.icon {
  border-bottom: 0;
}

#navPanel ul.icons li a.icon:before {
  color: #f4f8ff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 2px rgba(232, 241, 255, 0.6);
}

#navPanel ul.icons.alt li .icon:before {
  box-shadow: inset 0 0 0 2px rgba(232, 241, 255, 0.6);
}

#navPanel ul.icons li a.icon:hover:before {
  color: #c9922d;
  background: rgba(201, 146, 45, 0.1);
  box-shadow: inset 0 0 0 2px #c9922d;
}

#navPanel .close:before,
#navPanelToggle:before {
  color: #ffffff;
}

#navPanelToggle:before {
  background: rgba(12, 31, 54, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media screen and (max-width: 980px) {
  #main,
  #footer,
  #copyright {
    width: calc(100% - 2.4rem);
  }

  #header {
    height: 13rem;
    padding-bottom: 3.5rem;
  }

  #header .logo {
    padding: 0.72rem 1.3rem;
    font-size: 0.85rem;
  }

  #intro {
    padding: 5.6rem 1.95rem 3.3rem;
  }

  #intro .intro-title-box {
    width: min(92%, 680px);
    padding: 1.85rem 1.6rem 1.68rem;
  }

  #intro .intro-title-box::before {
    width: min(180px, calc(100% - 2.5rem));
    top: 0.82rem;
  }

  #intro h1 {
    font-size: clamp(2.5rem, 9.4vw, 3.9rem);
    line-height: 0.95;
  }

  #intro p {
    font-size: 0.9rem;
    letter-spacing: 0.13em;
  }

  #main > .post {
    padding: 5rem 3rem 3.4rem;
  }

  .page-nosotros #main > .post {
    padding: 4rem 2.2rem 2.6rem;
  }

  .page-nosotros .identidad-section {
    padding: 1rem;
  }

  .page-nosotros .identidad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-nosotros .video-container {
    min-height: 380px;
  }

  .page-nosotros .video-overlay-text p {
    font-size: 0.94rem;
  }

  .page-nosotros #equipo {
    padding: 1.1rem;
  }

  .page-nosotros #equipo .tab-content.active {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .page-documentos #documentos.section-docs {
    padding: 1.6rem 1.25rem;
  }

  .page-documentos .docs-hero-grid {
    grid-template-columns: 1fr;
  }

  .page-documentos .docs-hero-copy {
    text-align: center;
  }

  .page-documentos .docs-hero-copy > p {
    margin-inline: auto;
    text-align: center;
  }

  .page-documentos .docs-visual {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  .page-documentos .docs-highlights {
    grid-template-columns: 1fr;
  }

  .page-documentos #docs-list.docs-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-noticias .news-hero {
    padding: 1.3rem 1.1rem;
  }

  .page-noticias .news-hero h1 {
    font-size: clamp(1.7rem, 4.8vw, 2.3rem);
  }

  .page-noticias #main > .post.featured {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "image"
      "actions";
  }

  .page-noticias #featured-link {
    max-width: 640px;
    width: 100%;
  }

  .page-noticias #posts-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-gracias .thanks-card {
    padding: 1.45rem 1.2rem;
  }

  .page-gracias .thanks-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .page-gracias .thanks-actions li {
    margin: 0 0.35rem 0.45rem;
  }

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

  #events .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #inicio-escolar-2026 .inicio-2026-grid,
  #inicio-escolar-2026 .inicio-2026-hitos {
    grid-template-columns: 1fr;
  }

  #inicio-escolar-2026 .inicio-2026-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  #inicio-escolar-2026 .inicio-2026-hora {
    font-size: 0.76rem;
  }

  #inicio-escolar-2026 .inicio-2026-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  #inicio-escolar-2026 .inicio-2026-actions {
    width: 100%;
  }

  .instagram-shell {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .instagram-header {
    padding: 0.35rem 0.2rem 0.15rem;
    text-align: center;
  }

  .instagram-header p {
    margin-inline: auto;
    text-align: center;
  }

  .instagram-header .actions {
    justify-content: center;
  }

  .instagram-feed-grid {
    max-width: 900px;
    width: 100%;
    margin-inline: auto;
  }

  .instagram-feed-card {
    min-height: 100%;
  }

  .tour-virtual-shell {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .tour-video-wrap {
    max-width: 860px;
    width: 100%;
    margin-inline: auto;
  }

  .tour-copy {
    max-width: none;
    width: 100%;
    padding: 0.25rem 0.2rem 0.2rem;
  }

  #welcome .row.gtr-200 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #welcome h2 {
    display: block;
    text-align: center;
  }

  #welcome h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  #welcome .col-8 {
    align-items: center;
    text-align: center;
  }

  #welcome .col-8 p {
    margin-inline: auto;
    text-align: center;
  }

  #diario-mural .slider-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
  }

  #diario-mural #news-list {
    grid-column: 1 / -1;
  }

  #diario-mural #prev {
    justify-self: end;
  }

  #diario-mural #next {
    justify-self: start;
  }
}

@media screen and (max-width: 736px) {
  #main > * {
    padding: 2.3rem 1.5rem 0.2rem;
  }

  #main > .post {
    padding: 3rem 1.5rem 1.8rem;
  }

  .page-nosotros #main > .post {
    padding: 2.6rem 1.15rem 1.6rem;
  }

  .page-nosotros #main > .post > header.major {
    margin-bottom: 1.6rem;
    padding-bottom: 0.8rem;
  }

  .page-nosotros #main > .post > header.major h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .page-nosotros .subtitle {
    font-size: 0.98rem;
  }

  .tour-copy {
    padding: 0.95rem 0.82rem;
  }

  .tour-copy h2 {
    font-size: clamp(1.55rem, 6.9vw, 2.05rem);
  }

  #events .events-shell {
    padding: 1.05rem 0.9rem;
  }

  #events .events-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  #events .events-grid li {
    padding: 0.9rem 0.82rem;
    gap: 0.68rem;
  }

  .instagram-header h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .instagram-feed-grid {
    gap: 0.85rem;
  }

  .page-nosotros .identidad-header h2 {
    font-size: clamp(1.35rem, 7vw, 1.7rem);
  }

  .page-nosotros .identidad-grid {
    grid-template-columns: 1fr;
  }

  .page-nosotros .identidad-copy {
    padding: 0.9rem 0.82rem 0.85rem;
  }

  .page-nosotros .video-container {
    min-height: 360px;
  }

  .page-nosotros .video-overlay-text {
    padding: 1rem;
  }

  .page-nosotros .video-overlay-text p {
    max-width: none;
    font-size: 0.9rem;
    line-height: 1.58;
  }

  .page-nosotros #equipo {
    margin-top: 1.6rem;
    padding: 1rem;
  }

  .page-documentos #documentos.section-docs {
    padding: 1.25rem 0.95rem;
  }

  .page-documentos .docs-hero {
    margin-bottom: 1.2rem;
  }

  .page-documentos .docs-hero-copy {
    padding: 0.9rem;
  }

  .page-documentos .docs-highlights li {
    justify-content: flex-start;
    text-align: left;
    border-radius: 12px;
  }

  .page-documentos .docs-visual img {
    min-height: 185px;
  }

  .page-documentos #docs-list.docs-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .page-documentos #docs-list li a {
    min-height: 0;
  }

  .page-documentos #docs-list li a span:last-child {
    margin-right: 4.1rem;
    font-size: 0.91rem;
  }

  .page-documentos #pdfContainer {
    padding: 0.75rem;
  }

  .page-documentos #pdfViewer {
    height: 480px;
  }

  .page-noticias .news-hero {
    text-align: center;
  }

  .page-noticias .news-hero > p {
    margin-inline: auto;
  }

  .page-noticias #main > .post.featured {
    padding: 1rem;
  }

  .page-noticias #main > .post.featured header.major,
  .page-noticias #main > .post.featured ul.actions.special {
    text-align: left;
  }

  .page-noticias #featured-title {
    font-size: clamp(1.5rem, 7vw, 1.95rem);
  }

  .page-noticias #posts-list {
    grid-template-columns: 1fr;
  }

  .page-noticias #posts-list article.post {
    padding: 0.9rem;
  }

  .page-gracias .thanks-check {
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
  }

  .page-gracias .thanks-card h1 {
    font-size: clamp(1.65rem, 7.4vw, 2.2rem);
  }

  .page-gracias .thanks-note p {
    font-size: 0.86rem;
  }

  .page-noticias .news-pagination-wrap {
    width: calc(100% - 2.4rem);
  }

  #header h1#logo a img {
    width: 80px;
  }

  #intro .corner-top-left-logo {
    width: 82px;
    top: 1rem;
    left: 1rem;
  }

  .events li {
    flex-direction: column;
    gap: 0.5rem;
  }

  .events li .date {
    min-width: 0;
  }

  #welcome .container,
  #inicio-escolar-2026 .inicio-2026-shell,
  #diario-mural .container {
    padding: 1.3rem;
  }

  #inicio-escolar-2026 .inicio-2026-kicker {
    font-size: 0.62rem;
  }

  #inicio-escolar-2026 .inicio-2026-head h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  #inicio-escolar-2026 .inicio-2026-card {
    padding: 0.92rem;
  }

  #inicio-escolar-2026 .inicio-2026-hora {
    font-size: 0.74rem;
  }

  #diario-mural .nav-arrow {
    width: 2.8rem;
    height: 2.8rem;
  }

  #diario-mural #news-list li {
    padding: 1rem;
  }

  #diario-mural #news-list li img {
    max-height: 220px;
  }

  .tabs {
    padding: 1rem;
  }

  .tab-content.active {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .team-member img {
    width: 118px !important;
    height: 118px !important;
  }

  #footer {
    width: 100%;
    border-radius: 0;
    margin-top: 0;
  }

  #copyright {
    width: calc(100% - 2rem);
    margin-bottom: 1.6rem;
  }
}

@media screen and (max-width: 480px) {
  #gallery .grid {
    grid-template-columns: 1fr;
  }

  #intro .intro-title-box {
    width: min(96%, 560px);
    padding: 1.3rem 1rem 1.12rem;
    border-radius: 18px;
  }

  #intro .intro-title-box::before {
    width: min(145px, calc(100% - 1.8rem));
    top: 0.7rem;
    height: 2px;
  }

  #intro h1 {
    font-size: clamp(2.25rem, 12vw, 3rem);
    line-height: 0.94;
  }

  #intro p {
    letter-spacing: 0.1em;
    font-size: 0.82rem;
  }

  #main,
  #copyright {
    width: calc(100% - 1.2rem);
  }

  .tour-kicker {
    font-size: 0.62rem;
  }

  .tour-copy > p {
    font-size: 0.88rem;
  }

  #events .events-kicker {
    font-size: 0.62rem;
  }

  #events .event-date {
    width: 3.9rem;
    min-height: 3.9rem;
  }

  #events .event-day {
    font-size: 1.08rem;
  }

  #events .event-copy p {
    font-size: 0.86rem;
  }

  .page-gracias .thanks-actions li {
    width: 100%;
    margin: 0 0 0.45rem;
  }

  .page-gracias .thanks-actions .button {
    width: 100%;
  }

  #inicio-escolar-2026 .inicio-2026-badge {
    font-size: 0.58rem;
    letter-spacing: 0.09em;
  }

  #inicio-escolar-2026 .inicio-2026-actions span {
    font-size: 0.71rem;
  }

  .instagram-kicker {
    font-size: 0.6rem;
  }

  .instagram-feed-copy {
    padding: 0.8rem 0.85rem 0.9rem;
  }

  .page-nosotros .identidad-kicker {
    font-size: 0.6rem;
  }

  .page-nosotros .identidad-copy h3 {
    font-size: 1.12rem;
  }

  .page-nosotros .identidad-copy p,
  .page-nosotros .identidad-values li {
    font-size: 0.86rem;
  }

  .page-nosotros .video-container {
    min-height: 340px;
  }

  .page-nosotros #equipo .tab-buttons li {
    width: 100%;
    text-align: center;
  }

  .page-documentos .pdf-selector-label {
    font-size: 0.79rem;
  }

  .page-documentos .docs-visual-meta span {
    font-size: 0.74rem;
  }

  .page-documentos #docs-list li a::after {
    top: 0.55rem;
    right: 0.56rem;
  }

  .page-documentos #pdfViewer {
    height: 400px;
  }

  .page-noticias .news-kicker {
    font-size: 0.64rem;
  }

  .page-noticias .news-hero h1 {
    font-size: clamp(1.45rem, 9vw, 1.85rem);
  }

  .page-noticias #featured-content,
  .page-noticias #posts-list article.post header.major p {
    font-size: 0.9rem;
  }

  .page-noticias .news-pagination-wrap {
    width: calc(100% - 1.2rem);
  }

}

/* ==================================================
   NOTICIAS V2 · Ordenado y escalable
   ================================================== */
.page-noticias .news-hero {
  margin-bottom: 1.1rem;
  padding: clamp(1.15rem, 2.2vw, 1.8rem);
  border-radius: 20px;
  border: 1px solid #d5e1ee;
  background:
    radial-gradient(circle at 8% 14%, rgba(45, 120, 196, 0.11), transparent 38%),
    linear-gradient(150deg, #ffffff, #f7fbff);
  box-shadow: 0 14px 28px rgba(11, 34, 60, 0.1);
}

.page-noticias .news-kicker {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  border: 1px solid #c8d9eb;
  background: #ffffff;
  color: #35577f;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-noticias .news-hero h1 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.9rem, 3.1vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.page-noticias .news-hero > p {
  margin: 0;
  max-width: 65ch;
  color: #48607c;
  line-height: 1.68;
}

.page-noticias #main > .post.featured {
  margin-bottom: 1.1rem;
  padding: clamp(1rem, 1.8vw, 1.5rem);
  border-radius: 18px;
  border: 1px solid #d6e2ef;
  background: linear-gradient(160deg, #ffffff, #f7fbff);
  box-shadow: 0 12px 24px rgba(10, 33, 58, 0.1);
  text-align: left;
}

.page-noticias #main > .post.featured header.major {
  margin: 0 0 0.8rem;
  text-align: left;
}

.page-noticias #featured-date {
  margin-bottom: 0.5rem;
  color: #4f7096;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  height: auto;
  line-height: 1.2;
}

.page-noticias #featured-date::before,
.page-noticias #featured-date::after {
  display: none !important;
}

.page-noticias #main > .post.featured header.major > .date {
  margin-top: 0 !important;
}

.page-noticias #featured-title {
  display: inline;
  font-size: clamp(1.52rem, 2.5vw, 2.1rem);
  line-height: 1.22;
  color: #172943 !important;
}

.page-noticias #featured-content {
  margin-top: 0.72rem;
  margin-bottom: 0;
  color: #324a66;
  font-size: 0.99rem;
  line-height: 1.68;
}

.page-noticias #featured-link {
  margin-bottom: 0.85rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d8e4f0;
  box-shadow: 0 10px 20px rgba(11, 35, 60, 0.12);
}

.page-noticias #featured-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.page-noticias #featured-link:hover #featured-image {
  transform: scale(1.02);
}

.page-noticias #main > .post.featured ul.actions.special {
  margin: 0;
  text-align: left;
}

.page-noticias #featured-button {
  border-radius: 999px;
  padding-inline: 1.35rem;
}

.page-noticias .news-list-shell {
  margin-top: 0.85rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid #d6e2ef;
  background: linear-gradient(150deg, #ffffff, #f9fcff);
  box-shadow: 0 10px 20px rgba(10, 33, 58, 0.07);
}

.page-noticias .news-list-header {
  margin: 0 0 0.9rem;
  text-align: left;
}

.page-noticias .news-list-header h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.2;
  text-transform: none;
}

.page-noticias .news-list-header p {
  margin: 0;
  color: #5b718a;
  font-size: 0.9rem;
  line-height: 1.5;
}

.page-noticias #posts-list {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.page-noticias #posts-list article.post {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.8rem;
  margin: 0;
  padding: 0.95rem;
  border-radius: 14px;
  border: 1px solid #d5e2ef;
  background: linear-gradient(160deg, #ffffff, #f8fbff);
  box-shadow: 0 9px 18px rgba(11, 35, 60, 0.09);
}

.page-noticias #posts-list article.post header.major {
  margin: 0;
  text-align: left;
}

.page-noticias #posts-list article.post header.major .date {
  margin-bottom: 0.38rem;
  color: #4f7096;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-noticias #posts-list article.post header.major h2 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  line-height: 1.3;
  text-transform: none;
}

.page-noticias #posts-list article.post header.major p {
  margin-bottom: 0;
  color: #3d536e;
  font-size: 0.9rem;
  line-height: 1.58;
}

.page-noticias #posts-list article.post a.image.fit {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d9e5f0;
}

.page-noticias #posts-list article.post a.image.fit img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-noticias #posts-list article.post:hover a.image.fit img {
  transform: scale(1.03);
}

.page-noticias #posts-list article.post ul.actions.special {
  margin: 0;
  text-align: left;
}

.page-noticias #posts-list article.post ul.actions.special li a.button {
  border: 1px solid #2d6daf;
  border-radius: 999px;
  padding-inline: 1.05rem;
  color: #2d6daf !important;
  background: #f6faff;
}

.page-noticias #posts-list article.post ul.actions.special li a.button:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #2f4f92, #c9922d);
  color: #ffffff !important;
}

.page-noticias .news-pagination-wrap {
  width: min(94%, 78rem);
  margin: 0.9rem auto 0;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid #d6e2ef;
  background: linear-gradient(150deg, #ffffff, #f7fbff);
  box-shadow: 0 10px 20px rgba(10, 33, 58, 0.08);
}

.page-noticias .news-pagination-wrap .pagination {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
}

.page-noticias #pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.page-noticias .page-btn {
  border: 1px solid #c9d9ea;
  border-radius: 10px;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.65rem;
  background: #ffffff;
  color: #264a74;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-noticias .page-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #7ea9d3;
  background: #f2f8ff;
}

.page-noticias .page-btn.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #2f4f92, #c9922d);
  color: #ffffff;
}

.page-noticias .page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-noticias .page-dots {
  color: #6a819b;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0 0.2rem;
}

.page-noticias #pagination:empty {
  display: none;
}

@media screen and (min-width: 1600px) {
  .page-noticias #posts-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 1280px) {
  .page-noticias #posts-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 736px) {
  .page-noticias .news-hero {
    text-align: center;
  }

  .page-noticias .news-hero > p {
    margin-inline: auto;
  }

  .page-noticias #featured-title {
    font-size: clamp(1.35rem, 6.7vw, 1.8rem);
  }

  .page-noticias #featured-image {
    aspect-ratio: 16 / 9;
  }

  .page-noticias #posts-list {
    grid-template-columns: 1fr;
  }

  .page-noticias #posts-list article.post {
    padding: 0.82rem;
  }

  .page-noticias .news-list-shell {
    padding: 0.85rem;
  }

  .page-noticias .news-list-header {
    text-align: center;
  }

  .page-noticias .news-list-header p {
    font-size: 0.86rem;
  }

  .page-noticias .news-pagination-wrap {
    width: calc(100% - 2.4rem);
  }
}

@media screen and (max-width: 480px) {
  .page-noticias .news-kicker {
    font-size: 0.62rem;
  }

  .page-noticias .news-hero h1 {
    font-size: clamp(1.3rem, 8.5vw, 1.7rem);
  }

  .page-noticias #featured-content,
  .page-noticias #posts-list article.post header.major p {
    font-size: 0.88rem;
  }

  .page-noticias .news-pagination-wrap {
    width: calc(100% - 1.2rem);
    padding: 0.55rem;
  }

  .page-noticias .page-btn {
    min-width: 2rem;
    height: 2rem;
    font-size: 0.78rem;
    padding: 0 0.55rem;
  }
}

/* ==================================================
   NOTICIA DETALLE V2 · Editorial + galería scrolleable
   ================================================== */
.page-noticia #main.wrapper.style2 .inner {
  width: min(100%, 64rem);
  margin: 0 auto;
}

.page-noticia .noticia-detalle {
  margin: 0;
  padding: clamp(1.15rem, 2.3vw, 1.9rem);
  border-radius: 20px;
  border: 1px solid #d6e2ef;
  background:
    radial-gradient(circle at 10% 14%, rgba(45, 120, 196, 0.11), transparent 36%),
    linear-gradient(155deg, #ffffff, #f8fbff);
  box-shadow: 0 16px 32px rgba(10, 33, 58, 0.11);
}

.page-noticia .noticia-detalle .volver-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.95rem;
  padding: 0.36rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #c8d9eb;
  background: #ffffff;
  color: #335a84;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-noticia .noticia-detalle .volver-btn:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #2f4f92, #c9922d);
  color: #ffffff !important;
}

.page-noticia #contenido-noticia {
  margin-bottom: 1.15rem;
}

.page-noticia #contenido-noticia .noticia-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.page-noticia #contenido-noticia .noticia-date {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  color: #4f7096;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-noticia #contenido-noticia .noticia-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.56rem;
  border-radius: 999px;
  border: 1px solid #c8d9eb;
  background: #f4f9ff;
  color: #3f6288;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.page-noticia #contenido-noticia h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: #172942;
}

.page-noticia #contenido-noticia .noticia-lead {
  margin: 0 0 1rem;
  padding-left: 0.9rem;
  border-left: 3px solid #6fa2d6;
  color: #2f4a67;
  font-size: 1.04rem;
  line-height: 1.65;
}

.page-noticia #contenido-noticia .noticia-hero {
  margin: 0 0 1rem;
}

.page-noticia #contenido-noticia .noticia-hero-img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #d6e2ef;
  box-shadow: 0 14px 30px rgba(10, 33, 58, 0.14);
}

.page-noticia #contenido-noticia .noticia-body {
  display: grid;
  gap: 0.15rem;
}

.page-noticia #contenido-noticia p {
  margin-bottom: 0.9rem;
  color: #344e6b;
  line-height: 1.72;
  text-align: left;
}

.page-noticia .galeria-bloque {
  margin-top: 1.1rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid #d6e2ef;
  background: linear-gradient(155deg, #ffffff, #f7fbff);
  box-shadow: 0 10px 22px rgba(10, 33, 58, 0.09);
}

.page-noticia .galeria-header {
  margin-bottom: 0.8rem;
}

.page-noticia .galeria-header h3 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  text-transform: none;
}

.page-noticia .galeria-header p {
  margin: 0;
  color: #5a718b;
  font-size: 0.88rem;
}

.page-noticia #galeria.galeria-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 36vw);
  gap: 0.85rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #2f4f92 #e9f1fa;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0.1rem;
  padding: 0.2rem 0.1rem 0.65rem;
  margin: 0;
}

.page-noticia #galeria.galeria-scroll.is-empty {
  display: block;
  overflow: visible;
  padding: 0;
}

.page-noticia #galeria.galeria-scroll::-webkit-scrollbar {
  height: 10px;
}

.page-noticia #galeria.galeria-scroll::-webkit-scrollbar-track {
  background: #e9f1fa;
  border-radius: 999px;
}

.page-noticia #galeria.galeria-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #2f4f92, #c9922d);
  border-radius: 999px;
}

.page-noticia .galeria-item {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.45rem;
  width: 100%;
  max-width: none;
  flex: none;
  scroll-snap-align: start;
}

.page-noticia .galeria-img {
  width: 100%;
  height: clamp(210px, 30vw, 280px);
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #d9e5f0;
  box-shadow: 0 10px 20px rgba(10, 33, 58, 0.12);
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-noticia .galeria-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(11, 35, 60, 0.18);
}

.page-noticia .noticia-gallery-empty {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px dashed #c8d9eb;
  border-radius: 12px;
  background: #f8fbff;
  color: #4b6685;
  font-size: 0.9rem;
}

.page-noticia #nav-noticias.noticia-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
}

.page-noticia #nav-noticias.noticia-nav button {
  flex: 1;
  max-width: 230px;
  border-radius: 999px;
  border: 1px solid #2d6daf;
  background: #f6faff;
  color: #2d6daf !important;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-noticia #nav-noticias.noticia-nav button:hover:not(:disabled) {
  border-color: transparent;
  background: linear-gradient(135deg, #2f4f92, #c9922d);
  color: #ffffff !important;
}

.page-noticia #nav-noticias.noticia-nav button:disabled {
  opacity: 0.45;
}

.page-noticia .modal-imagen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(6, 17, 31, 0.84);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
}

.page-noticia .modal-contenido {
  width: auto;
  max-width: min(1080px, 94vw);
  max-height: 86vh;
  border-radius: 14px;
  border: 1px solid #d6e2ef;
  box-shadow: 0 24px 44px rgba(6, 18, 35, 0.4);
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.page-noticia .modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(6, 21, 38, 0.58);
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  z-index: 4;
  cursor: pointer;
}

.page-noticia .modal-prev {
  left: clamp(0.55rem, 2vw, 1.1rem);
}

.page-noticia .modal-next {
  right: clamp(0.55rem, 2vw, 1.1rem);
}

.page-noticia .modal-nav:hover:not(:disabled) {
  transform: translateY(-50%);
  background: linear-gradient(135deg, #2f4f92, #c9922d);
  border-color: transparent;
  color: #ffffff !important;
  box-shadow: none;
}

.page-noticia .modal-nav:disabled {
  opacity: 0.34;
  cursor: default;
}

.page-noticia .modal-imagen:not(.has-multiple) .modal-nav {
  display: none;
}

.page-noticia .cerrar-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(5, 21, 39, 0.55);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 2.1rem;
  text-align: center;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  padding: 0;
  z-index: 5;
}

.page-noticia .cerrar-modal:hover {
  transform: none;
  background: linear-gradient(135deg, #2f4f92, #c9922d);
  border-color: transparent;
  color: #ffffff !important;
}

@media screen and (max-width: 980px) {
  .page-noticia #galeria.galeria-scroll {
    grid-auto-columns: minmax(280px, 56vw);
  }
}

@media screen and (max-width: 736px) {
  .page-noticia .noticia-detalle {
    padding: 1rem;
  }

  .page-noticia #contenido-noticia h2 {
    font-size: clamp(1.35rem, 7vw, 1.95rem);
  }

  .page-noticia .galeria-bloque {
    padding: 0.82rem;
  }

  .page-noticia #galeria.galeria-scroll {
    grid-auto-columns: 82vw;
  }

  .page-noticia #nav-noticias.noticia-nav {
    flex-direction: column;
  }

  .page-noticia #nav-noticias.noticia-nav button {
    max-width: none;
    width: 100%;
  }

  .page-noticia .modal-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 480px) {
  .page-noticia #galeria.galeria-scroll {
    grid-auto-columns: 85vw;
  }

  .page-noticia .galeria-header p {
    font-size: 0.82rem;
  }
}

/* ==================================================
   DIARIO MURAL V3 · Elegante + institucional
   ================================================== */
#diario-mural .mural-shell {
  padding: clamp(1.2rem, 2.2vw, 1.9rem);
  border-radius: 24px;
  border: 1px solid #d4e1ef;
  background:
    radial-gradient(circle at 9% 8%, rgba(201, 146, 45, 0.16), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(47, 79, 146, 0.18), transparent 40%),
    linear-gradient(150deg, #ffffff, #f6faff);
  box-shadow: 0 20px 36px rgba(10, 33, 58, 0.12);
}

#diario-mural .mural-head {
  margin-bottom: 1rem;
  text-align: left;
}

#diario-mural .mural-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.5rem;
  padding: 0.3rem 0.74rem;
  border-radius: 999px;
  border: 1px solid #cedded;
  background: #ffffff;
  color: #385a82;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

#diario-mural .mural-head h2 {
  margin-bottom: 0.4rem;
}

#diario-mural .mural-head > p:last-child {
  margin: 0;
  max-width: 62ch;
  color: #4b627e;
  line-height: 1.72;
  text-align: left;
}

#diario-mural .slider-wrapper {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr) 3.1rem;
  align-items: center;
  gap: 0.95rem;
}

#diario-mural .nav-arrow {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  border: 1px solid #c4d6ea;
  background: linear-gradient(155deg, #ffffff, #f4f8ff);
  color: #2f4f92;
  box-shadow: 0 10px 20px rgba(13, 40, 70, 0.13);
  font-size: 1.34rem;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

#diario-mural .nav-arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: transparent;
  background: linear-gradient(135deg, #2f4f92, #c9922d);
  color: #ffffff;
  box-shadow: 0 15px 28px rgba(10, 33, 58, 0.2);
}

#diario-mural .nav-arrow:disabled {
  opacity: 0.45;
  cursor: default;
}

#diario-mural #news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

#diario-mural #news-list li {
  display: none;
}

#diario-mural #news-list li.active {
  display: grid;
  grid-template-columns: minmax(210px, 44%) minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid #d3e0ee;
  background: linear-gradient(165deg, #ffffff, #f7fbff);
  box-shadow: 0 14px 28px rgba(10, 33, 58, 0.13);
  animation: muralFadeIn 0.38s ease both;
}

#diario-mural .mural-loading {
  display: block !important;
  padding: 1rem;
  text-align: center;
  color: #4b607c;
  border: 1px dashed #ccdaea;
  border-radius: 12px;
  background: #f8fbff;
}

#diario-mural .mural-media {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d6e3f0;
}

#diario-mural .mural-image {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.34s ease;
}

#diario-mural .mural-media:hover .mural-image {
  transform: scale(1.03);
}

#diario-mural .mural-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.48rem;
  align-content: start;
}

#diario-mural .mural-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

#diario-mural .mural-meta .date {
  margin: 0;
  color: #3f6088;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

#diario-mural .mural-category {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #d0deed;
  background: #f5f9ff;
  color: #4b6688;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#diario-mural #news-list li h3 {
  margin: 0;
  line-height: 1.26;
}

#diario-mural #news-list li h3 a {
  color: #1a3252;
  border-bottom: none;
  text-decoration: none;
}

#diario-mural #news-list li h3 a:hover {
  color: #2f4f92 !important;
}

#diario-mural #news-list li .summary {
  margin: 0;
  color: #3f5773;
  font-size: 0.95rem;
  line-height: 1.66;
  text-align: left;
}

#diario-mural .mural-actions {
  display: flex;
  justify-content: flex-start;
}

#diario-mural .mural-readmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.52rem 1rem;
  border-radius: 999px;
  border: 1px solid #2f4f92;
  background: #f6faff;
  color: #2f4f92 !important;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

#diario-mural .mural-readmore:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #2f4f92, #c9922d);
  color: #ffffff !important;
}

@keyframes muralFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 980px) {
  #diario-mural .slider-wrapper {
    grid-template-columns: 2.8rem minmax(0, 1fr) 2.8rem;
    gap: 0.72rem;
  }

  #diario-mural #news-list li.active {
    grid-template-columns: 1fr;
  }

  #diario-mural .mural-image {
    min-height: 220px;
  }
}

@media screen and (max-width: 736px) {
  #diario-mural .mural-shell {
    padding: 1rem 0.85rem;
  }

  #diario-mural .mural-head > p:last-child {
    font-size: 0.92rem;
  }

  #diario-mural .slider-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  #diario-mural #news-list {
    grid-column: 1 / -1;
    order: 3;
  }

  #diario-mural #prev,
  #diario-mural #next {
    width: 100%;
    max-width: none;
  }
}

@media screen and (max-width: 480px) {
  #diario-mural .mural-kicker {
    font-size: 0.6rem;
  }

  #diario-mural #news-list li.active {
    padding: 0.74rem;
  }

  #diario-mural .mural-image {
    min-height: 190px;
  }

  #diario-mural #news-list li .summary {
    font-size: 0.88rem;
  }
}

/* ==================================================
   HOME REINVENTADO · Neo Campus
   ================================================== */
body.page-home {
  --home-bg-0: #031223;
  --home-bg-1: #0a2845;
  --home-bg-2: #154669;
  --home-ink: #062542;
  --home-ink-soft: #36536e;
  --home-white: #f7fbff;
  --home-panel: rgba(255, 255, 255, 0.9);
  --home-panel-soft: rgba(247, 251, 255, 0.82);
  --home-accent-cyan: #2f4f92;
  --home-accent-amber: #c9922d;
  --home-accent-mint: #6f8ec3;
  --home-shadow-xl: 0 30px 60px rgba(4, 18, 36, 0.32);
  --home-shadow-lg: 0 20px 40px rgba(7, 27, 48, 0.2);
}

body.page-home,
body.page-home input,
body.page-home select,
body.page-home textarea {
  font-family: "Sora", "Manrope", "Avenir Next", sans-serif;
}

body.page-home h1,
body.page-home h2,
body.page-home h3,
body.page-home h4,
body.page-home h5,
body.page-home h6 {
  font-family: "Fraunces", "Libre Baskerville", Georgia, serif;
  letter-spacing: 0.01em;
  text-transform: none;
}

body.page-home {
  background:
    radial-gradient(circle at 5% 8%, rgba(47, 79, 146, 0.24), transparent 52%),
    radial-gradient(circle at 92% 14%, rgba(201, 146, 45, 0.24), transparent 56%),
    radial-gradient(circle at 85% 88%, rgba(111, 142, 195, 0.18), transparent 50%),
    linear-gradient(160deg, var(--home-bg-0), var(--home-bg-1) 52%, var(--home-bg-2));
}

body.page-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 74%, rgba(255, 255, 255, 0.06), transparent 30%),
    radial-gradient(circle at 80% 32%, rgba(255, 255, 255, 0.05), transparent 34%);
  animation: homeBackdropDrift 20s ease-in-out infinite alternate;
}

@keyframes homeBackdropDrift {
  from {
    transform: translate3d(-1.2%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(1.2%, -1%, 0) scale(1.03);
  }
}

body.page-home #wrapper > .bg {
  filter: brightness(0.42) saturate(1.2) contrast(1.08);
}

body.page-home #wrapper.fade-in:before {
  background: linear-gradient(180deg, rgba(2, 10, 21, 0.3), rgba(2, 10, 21, 0.72));
}

body.page-home p {
  color: var(--home-ink-soft);
  text-align: left;
}

body.page-home a {
  border-bottom-color: rgba(6, 37, 66, 0.28);
}

body.page-home #intro {
  position: relative;
  min-height: 92vh;
  justify-content: center;
  gap: 1.5rem;
  padding: clamp(7rem, 11vh, 9rem) clamp(1.8rem, 4vw, 4rem) 6.2rem;
}

body.page-home #intro::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  width: min(1150px, 96%);
  height: clamp(240px, 38vw, 360px);
  border-radius: 50px;
  background:
    radial-gradient(circle at 18% 18%, rgba(47, 79, 146, 0.3), transparent 44%),
    radial-gradient(circle at 82% 24%, rgba(201, 146, 45, 0.28), transparent 44%),
    radial-gradient(circle at 50% 85%, rgba(111, 142, 195, 0.24), transparent 52%);
  filter: blur(18px);
  opacity: 0.95;
  pointer-events: none;
  animation: homeHeroPulse 6.4s ease-in-out infinite;
}

@keyframes homeHeroPulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.84;
  }
  50% {
    transform: translateX(-50%) scale(1.03);
    opacity: 1;
  }
}

body.page-home #intro .intro-title-box {
  position: relative;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(2.2rem, 4vw, 3.1rem) clamp(1.4rem, 3vw, 2.8rem) clamp(2rem, 3.5vw, 2.7rem);
  border-radius: 34px;
  border: 1px solid rgba(233, 246, 255, 0.52);
  background:
    radial-gradient(circle at 14% 12%, rgba(47, 79, 146, 0.26), transparent 38%),
    radial-gradient(circle at 88% 20%, rgba(201, 146, 45, 0.22), transparent 38%),
    linear-gradient(140deg, rgba(7, 31, 58, 0.84), rgba(8, 40, 72, 0.78) 50%, rgba(15, 64, 107, 0.66));
  box-shadow: 0 28px 56px rgba(2, 10, 23, 0.42);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

body.page-home #intro .intro-title-box::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  width: min(320px, calc(100% - 3rem));
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 79, 146, 0.2), rgba(47, 79, 146, 0.95), rgba(201, 146, 45, 0.95), rgba(201, 146, 45, 0.2));
}

body.page-home #intro h1 {
  margin-bottom: 0.9rem;
  font-size: clamp(3rem, 8.4vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0;
  color: #ffffff;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
  text-wrap: balance;
}

body.page-home #intro p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d8edff;
  text-align: center;
}

body.page-home #intro .corner-top-left-logo {
  top: 1.35rem;
  left: 1.35rem;
  width: 112px;
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.page-home #intro .button.icon.solo {
  background: linear-gradient(145deg, rgba(4, 23, 44, 0.4), rgba(4, 24, 44, 0.72));
  box-shadow: inset 0 0 0 2px rgba(245, 252, 255, 0.86), 0 12px 24px rgba(4, 13, 26, 0.44);
}

body.page-home #intro .button.icon.solo:hover {
  color: #082d4c !important;
  background: linear-gradient(145deg, #ffffff, #edf8ff);
}

body.page-home #header {
  height: 15rem;
  padding-bottom: 4.4rem;
}

body.page-home #nav,
body.page-home #main.home-main,
body.page-home #footer,
body.page-home #copyright {
  width: min(97.5%, 108rem);
  max-width: 108rem;
}

body.page-home #nav {
  margin-top: -2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(225, 241, 255, 0.36);
  background: rgba(4, 24, 43, 0.72);
  box-shadow: 0 22px 40px rgba(2, 10, 23, 0.45);
}

body.page-home #nav ul.links li a {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}

body.page-home #nav ul.links li.active {
  background: linear-gradient(130deg, #2f4f92, #c9922d);
}

body.page-home #nav ul.links li {
  border-radius: 999px;
  overflow: hidden;
}

body.page-home #nav ul.links li a {
  border-radius: 999px;
}

body.page-home #main.home-main {
  margin-top: 1.3rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.page-home #main.home-main > section {
  position: relative;
  margin: 0 auto;
  padding: clamp(2rem, 3vw, 2.9rem) clamp(1rem, 2vw, 1.5rem);
  border-top: 0;
  border-radius: 2.2rem;
  overflow: hidden;
}

body.page-home #main.home-main > section + section {
  margin-top: 1.05rem;
}

body.page-home #home-urgent-banner[hidden] {
  display: none !important;
}

body.page-home .home-urgent-banner {
  padding: clamp(1.6rem, 2.2vw, 2.15rem) clamp(0.95rem, 2vw, 1.5rem);
  border-radius: 2.2rem;
  border: 1px solid rgba(228, 198, 139, 0.48);
  background:
    radial-gradient(circle at 10% -8%, rgba(255, 226, 174, 0.44), transparent 40%),
    radial-gradient(circle at 92% 110%, rgba(47, 79, 146, 0.24), transparent 48%),
    linear-gradient(150deg, rgba(255, 250, 239, 0.96), rgba(246, 252, 255, 0.96));
  box-shadow: 0 18px 34px rgba(11, 31, 54, 0.14);
}

body.page-home .home-urgent-shell {
  max-width: 100%;
}

body.page-home .home-urgent-head {
  margin: 0;
}

body.page-home .home-urgent-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(169, 113, 24, 0.36);
  background: rgba(255, 240, 210, 0.88);
  color: #8a5614;
  font-family: "Sora", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.32rem 0.74rem;
}

body.page-home .home-urgent-kicker::before {
  content: "*";
  font-size: 0.84rem;
}

body.page-home .home-urgent-head h2 {
  margin: 0 0 0.46rem;
  color: #173a5f;
  font-family: "Fraunces", "Libre Baskerville", serif;
  font-size: clamp(1.34rem, 2.25vw, 1.9rem);
  line-height: 1.15;
}

body.page-home .home-urgent-head p {
  margin: 0;
  color: #355673;
  font-family: "Manrope", sans-serif;
  line-height: 1.64;
}

body.page-home #home-urgent-body {
  white-space: pre-line;
}

body.page-home .home-urgent-meta {
  margin-top: 0.72rem !important;
  color: #5f7890 !important;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

body.page-home #main.home-main > section:not(#infraestructura):not(#tour-virtual):not(#instagram-feed):not(#home-urgent-banner) {
  border: 1px solid #d6e6f5;
  background:
    radial-gradient(circle at 8% 10%, rgba(47, 79, 146, 0.13), transparent 34%),
    radial-gradient(circle at 92% 86%, rgba(201, 146, 45, 0.14), transparent 40%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.93), rgba(243, 249, 255, 0.92));
  box-shadow: var(--home-shadow-lg);
}

body.page-home #main.home-main > section:not(#infraestructura):not(#tour-virtual):not(#instagram-feed):not(#home-urgent-banner)::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: min(280px, 34%);
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--home-accent-cyan), var(--home-accent-amber));
}

body.page-home #main.home-main > section::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(47, 79, 146, 0.14), transparent 72%);
  pointer-events: none;
}

body.page-home #main.home-main > section > .container,
body.page-home #main.home-main > section > .inner {
  width: min(100%, 1520px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.page-home #welcome .row.gtr-200 {
  margin-left: 0;
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.2rem, 2vw, 2.5rem);
}

body.page-home #welcome .row.gtr-200 > * {
  width: auto;
  padding-left: 0;
}

body.page-home #welcome .image.fit {
  max-width: 230px;
  margin: 0 auto;
  opacity: 1;
  transform: none;
}

body.page-home #welcome .image.fit img {
  width: auto;
  max-width: min(220px, 100%);
  height: auto;
  object-fit: contain;
  margin-inline: auto;
  border-radius: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.page-home #welcome h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 3.6vw, 3rem);
  color: var(--home-ink);
}

body.page-home #welcome h2::after {
  width: 86px;
  background: linear-gradient(90deg, var(--home-accent-cyan), var(--home-accent-amber));
}

body.page-home #welcome .col-8 p {
  margin: 0;
  max-width: 72ch;
  font-size: clamp(1rem, 1.28vw, 1.16rem);
  line-height: 1.82;
  color: #274560;
  opacity: 1;
  transform: none;
}

body.page-home #mission-vision-values .row {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

body.page-home #mission-vision-values .row > [class*="col-"] {
  width: auto;
  padding-left: 0;
}

body.page-home #mission-vision-values .box.feature {
  margin: 0;
  height: 100%;
  border-radius: 1.3rem;
  border: 1px solid #d4e4f4;
  background: linear-gradient(165deg, #ffffff, #f1f8ff);
  box-shadow: 0 14px 26px rgba(10, 33, 58, 0.11);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

body.page-home #mission-vision-values .box.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 34px rgba(10, 33, 58, 0.15);
}

body.page-home #mission-vision-values .box.feature .icon.major {
  background: linear-gradient(135deg, #2f4f92, #3b5e9b 52%, #c9922d);
}

body.page-home #inicio-escolar-2026 .inicio-2026-shell,
body.page-home #events .events-shell,
body.page-home #diario-mural .mural-shell {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.page-home #inicio-escolar-2026 .inicio-2026-card {
  border-radius: 1.15rem;
  border: 1px solid #d3e4f4;
  background: var(--home-panel-soft);
  box-shadow: 0 14px 28px rgba(8, 29, 52, 0.13);
}

body.page-home #inicio-escolar-2026 .inicio-2026-hito {
  border: 1px solid #cfe1f2;
  background: rgba(248, 252, 255, 0.86);
}

body.page-home #events .events-grid {
  gap: 1rem;
}

body.page-home #events .events-grid li {
  border: 1px solid #d1e2f2;
  background: rgba(255, 255, 255, 0.88);
}

body.page-home #diario-mural #news-list li.active {
  border: 1px solid #d0e0ef;
  background: rgba(255, 255, 255, 0.9);
}

body.page-home #diario-mural .nav-arrow {
  border-color: #c7d9ec;
  background: linear-gradient(155deg, #ffffff, #eef6ff);
}

body.page-home #infraestructura {
  padding: 0;
  min-height: clamp(22rem, 46vw, 35rem);
  border-radius: 2.3rem;
  border: 1px solid rgba(199, 223, 246, 0.28);
  background: #041326;
  box-shadow: var(--home-shadow-xl);
}

body.page-home #infraestructura::before,
body.page-home #infraestructura::after {
  display: none;
}

body.page-home #infraestructura .infra-overlay {
  background: linear-gradient(180deg, rgba(2, 10, 21, 0.22), rgba(2, 10, 21, 0.74));
}

body.page-home #infraestructura .infra-content h2 {
  color: #ffffff;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
}

body.page-home #infraestructura .infra-content p {
  color: #d6e9fa;
  max-width: 64ch;
}

body.page-home #tour-virtual,
body.page-home #instagram-feed {
  border: 1px solid rgba(204, 226, 246, 0.3);
  background:
    radial-gradient(circle at 8% 10%, rgba(47, 79, 146, 0.24), transparent 34%),
    radial-gradient(circle at 94% 90%, rgba(201, 146, 45, 0.2), transparent 42%),
    linear-gradient(150deg, #08213c, #0d2f4f 52%, #102b47);
  box-shadow: var(--home-shadow-xl);
}

body.page-home #tour-virtual .tour-virtual-shell,
body.page-home #instagram-feed .instagram-shell {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.page-home #tour-virtual .tour-virtual-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
  gap: 1.2rem;
  align-items: center;
}

body.page-home #tour-virtual .tour-copy {
  order: 1;
  max-width: none;
  padding: 0.35rem 0.2rem;
}

body.page-home #tour-virtual .tour-video-wrap {
  order: 2;
}

body.page-home #tour-virtual .tour-copy > p,
body.page-home #instagram-feed .instagram-header p {
  color: #d6e8fb;
}

body.page-home #tour-virtual .tour-kicker,
body.page-home #instagram-feed .instagram-kicker {
  border-color: rgba(209, 231, 250, 0.46);
  background: rgba(255, 255, 255, 0.12);
  color: #e8f3ff;
}

body.page-home #gallery .grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(120px, 11vw);
  gap: 0.9rem;
}

body.page-home #gallery .grid > div:nth-child(1) {
  grid-column: 1 / span 7;
  grid-row: 1 / span 2;
}

body.page-home #gallery .grid > div:nth-child(2) {
  grid-column: 8 / span 5;
  grid-row: 1 / span 1;
}

body.page-home #gallery .grid > div:nth-child(3) {
  grid-column: 8 / span 5;
  grid-row: 2 / span 1;
}

body.page-home #gallery .grid > div:nth-child(4) {
  grid-column: 1 / span 12;
  grid-row: 3 / span 1;
}

body.page-home #gallery .grid > div {
  border-radius: 1.1rem;
  border: 1px solid #d2e3f2;
  box-shadow: 0 16px 28px rgba(8, 27, 47, 0.14);
}

body.page-home #gallery .grid img {
  height: 100%;
  object-fit: cover;
}

body.page-home #gallery .grid > div:hover img {
  transform: scale(1.06);
}

body.page-home #instagram-feed .instagram-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.4fr);
  gap: 1.2rem;
  align-items: start;
}

body.page-home #instagram-feed .instagram-feed-grid {
  border-radius: 1.1rem;
}

body.page-home #instagram-feed .instagram-header a {
  color: #ffe4a8;
  border-bottom-color: rgba(255, 228, 168, 0.46);
}

body.page-home .button,
body.page-home button,
body.page-home input[type="submit"],
body.page-home input[type="reset"],
body.page-home input[type="button"] {
  border-radius: 999px;
  font-family: "Sora", "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-home .button.primary,
body.page-home button.primary,
body.page-home input[type="submit"].primary,
body.page-home input[type="reset"].primary,
body.page-home input[type="button"].primary {
  background: linear-gradient(135deg, #2f4f92, #3b5e9b 52%, #c9922d);
  box-shadow: 0 14px 28px rgba(5, 32, 55, 0.34);
}

body.page-home .button:hover,
body.page-home button:hover,
body.page-home input[type="submit"]:hover,
body.page-home input[type="reset"]:hover,
body.page-home input[type="button"]:hover {
  transform: translateY(-2px);
}

body.page-home #footer {
  margin-top: 1.35rem;
  border-radius: 2rem;
  border: 1px solid #d4e4f3;
  background: linear-gradient(165deg, rgba(248, 252, 255, 0.96), rgba(240, 247, 255, 0.92));
  box-shadow: 0 22px 40px rgba(6, 22, 40, 0.14);
  overflow: hidden;
}

body.page-home #copyright {
  margin: 1.2rem auto 3.8rem;
  color: rgba(221, 236, 249, 0.78);
}

body.page-home #copyright a {
  color: #f2f9ff;
}

@keyframes homeSectionReveal {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.988);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.page-home:not(.is-preload) #main.home-main > section {
  opacity: 0;
  animation: homeSectionReveal 0.86s cubic-bezier(0.24, 0.74, 0.31, 1) forwards;
}

body.page-home:not(.is-preload) #main.home-main > section:nth-child(1) {
  animation-delay: 0.04s;
}

body.page-home:not(.is-preload) #main.home-main > section:nth-child(2) {
  animation-delay: 0.09s;
}

body.page-home:not(.is-preload) #main.home-main > section:nth-child(3) {
  animation-delay: 0.14s;
}

body.page-home:not(.is-preload) #main.home-main > section:nth-child(4) {
  animation-delay: 0.19s;
}

body.page-home:not(.is-preload) #main.home-main > section:nth-child(5) {
  animation-delay: 0.24s;
}

body.page-home:not(.is-preload) #main.home-main > section:nth-child(6) {
  animation-delay: 0.29s;
}

body.page-home:not(.is-preload) #main.home-main > section:nth-child(7) {
  animation-delay: 0.34s;
}

body.page-home:not(.is-preload) #main.home-main > section:nth-child(8) {
  animation-delay: 0.39s;
}

body.page-home:not(.is-preload) #main.home-main > section:nth-child(9) {
  animation-delay: 0.44s;
}

@media screen and (max-width: 1280px) {
  body.page-home #nav,
  body.page-home #main.home-main,
  body.page-home #footer,
  body.page-home #copyright {
    width: min(96%, 92rem);
    max-width: 92rem;
  }

  body.page-home #main.home-main > section > .container,
  body.page-home #main.home-main > section > .inner {
    width: min(100%, 1320px);
  }
}

@media screen and (max-width: 980px) {
  body.page-home #intro {
    min-height: 78vh;
    padding: 6rem 1.5rem 4.2rem;
  }

  body.page-home #intro .corner-top-left-logo {
    width: 92px;
    top: 1rem;
    left: 1rem;
  }

  body.page-home #main.home-main > section {
    border-radius: 1.55rem;
    padding: 1.35rem 0.9rem;
  }

  body.page-home #welcome .row.gtr-200,
  body.page-home #tour-virtual .tour-virtual-shell,
  body.page-home #instagram-feed .instagram-shell {
    grid-template-columns: 1fr;
  }

  body.page-home #welcome .image.fit img {
    width: min(220px, 100%);
  }

  body.page-home #mission-vision-values .row {
    grid-template-columns: 1fr;
  }

  body.page-home #events .events-grid {
    grid-template-columns: 1fr;
  }

  body.page-home #gallery .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 170px;
  }

  body.page-home #gallery .grid > div:nth-child(1),
  body.page-home #gallery .grid > div:nth-child(2),
  body.page-home #gallery .grid > div:nth-child(3),
  body.page-home #gallery .grid > div:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  body.page-home #infraestructura {
    min-height: clamp(19rem, 78vw, 27rem);
  }
}

@media screen and (max-width: 736px) {
  body.page-home #main.home-main,
  body.page-home #footer,
  body.page-home #copyright {
    width: calc(100% - 1rem);
    max-width: none;
  }

  body.page-home #main.home-main > section {
    border-radius: 1.2rem;
    padding: 1rem 0.72rem;
  }

  body.page-home #intro h1 {
    font-size: clamp(2.4rem, 12vw, 3.7rem);
  }

  body.page-home #intro p {
    font-size: 0.76rem;
    letter-spacing: 0.16em;
  }

  body.page-home #gallery .grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 210px;
  }

  body.page-home #diario-mural .slider-wrapper {
    gap: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home::before,
  body.page-home #intro::before {
    animation: none;
  }

  body.page-home:not(.is-preload) #main.home-main > section {
    animation: none;
    opacity: 1;
  }
}

/* ==================================================
   INTERNAL PAGES · Institutional modern system
   ================================================== */
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) {
  --inst-bg-0: #071a34;
  --inst-bg-1: #11325b;
  --inst-bg-2: #1a4775;
  --inst-ink: #122f52;
  --inst-ink-soft: #435f7b;
  --inst-border: #d4e1ef;
  --inst-panel: rgba(255, 255, 255, 0.94);
  --inst-panel-soft: rgba(245, 250, 255, 0.9);
  --inst-primary: #2f4f92;
  --inst-secondary: #c9922d;
  --inst-shadow: 0 24px 46px rgba(6, 22, 40, 0.24);
  background:
    radial-gradient(circle at 8% 10%, rgba(47, 79, 146, 0.24), transparent 46%),
    radial-gradient(circle at 94% 16%, rgba(201, 146, 45, 0.24), transparent 50%),
    linear-gradient(160deg, var(--inst-bg-0), var(--inst-bg-1) 54%, var(--inst-bg-2));
}

body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias),
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) input,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) select,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) textarea {
  font-family: "Sora", "Manrope", "Avenir Next", sans-serif;
}

body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) h1,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) h2,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) h3,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) h4,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) h5,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) h6 {
  font-family: "Fraunces", "Libre Baskerville", Georgia, serif;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--inst-ink);
}

body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) p {
  color: var(--inst-ink-soft);
  text-align: left;
}

body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #wrapper > .bg {
  filter: brightness(0.5) saturate(1.1) contrast(1.04);
}

body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #wrapper.fade-in:before {
  background: linear-gradient(180deg, rgba(3, 12, 24, 0.24), rgba(3, 12, 24, 0.58));
}

body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #nav,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #copyright {
  width: min(95%, 96rem);
  max-width: 96rem;
}

body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #nav {
  margin-top: -2.2rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(225, 239, 255, 0.36);
  background: rgba(5, 24, 45, 0.72);
  box-shadow: 0 20px 38px rgba(4, 14, 28, 0.44);
}

body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #nav ul.links li a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #nav ul.links li.active {
  background: linear-gradient(130deg, var(--inst-primary), var(--inst-secondary));
}

body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main {
  margin-top: 1.15rem;
  padding: clamp(0.85rem, 1.8vw, 1.25rem);
  border-radius: 1.8rem;
  border: 1px solid rgba(215, 229, 244, 0.48);
  background:
    radial-gradient(circle at 8% 10%, rgba(47, 79, 146, 0.12), transparent 34%),
    radial-gradient(circle at 94% 90%, rgba(201, 146, 45, 0.12), transparent 40%),
    linear-gradient(170deg, rgba(247, 251, 255, 0.9), rgba(239, 247, 255, 0.88));
  box-shadow: var(--inst-shadow);
  overflow: visible;
}

body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main > * {
  margin: 0;
  padding: clamp(1.3rem, 2.2vw, 1.95rem);
  border-top: 0;
  border-radius: 1.3rem;
  border: 1px solid var(--inst-border);
  background: linear-gradient(160deg, var(--inst-panel), var(--inst-panel-soft));
  box-shadow: 0 14px 28px rgba(8, 26, 45, 0.12);
}

body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main > * + * {
  margin-top: 0.95rem;
}

body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) .button,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) button,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) input[type="submit"],
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) input[type="reset"],
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) input[type="button"] {
  border-radius: 999px;
  font-family: "Sora", "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) .button.primary,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) button.primary,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) input[type="submit"].primary,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) input[type="reset"].primary,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) input[type="button"].primary {
  background: linear-gradient(135deg, var(--inst-primary), #3f5f9e 50%, var(--inst-secondary));
  border: 0;
  box-shadow: 0 14px 28px rgba(10, 35, 61, 0.3);
  color: #ffffff !important;
}

body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) .button:hover,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) button:hover,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) input[type="submit"]:hover,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) input[type="reset"]:hover,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) input[type="button"]:hover {
  transform: translateY(-2px);
}

body.page-nosotros .post,
body.page-documentos #documentos,
body.page-noticias .news-hero,
body.page-noticias .news-list-shell,
body.page-noticias #main > .post.featured,
body.page-noticia .noticia-detalle,
body.page-contacto .contact-card,
body.page-gracias .thanks-card {
  border: 1px solid #cfdeec;
  background:
    radial-gradient(circle at 10% 10%, rgba(47, 79, 146, 0.11), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(201, 146, 45, 0.11), transparent 42%),
    linear-gradient(160deg, #ffffff, #f5faff);
  box-shadow: 0 16px 30px rgba(8, 26, 45, 0.14);
}

body.page-nosotros .identidad-section,
body.page-nosotros .tabs,
body.page-nosotros .team-member {
  border-color: #d2e0ee;
  background: linear-gradient(165deg, #ffffff, #f4f9ff);
}

body.page-documentos .docs-hero,
body.page-documentos .docs-toolbar,
body.page-documentos .pdf-embed,
body.page-documentos .docs-note {
  border-radius: 1.15rem;
  border: 1px solid #d3e0ee;
  background: linear-gradient(165deg, #ffffff, #f4f9ff);
  box-shadow: 0 12px 24px rgba(8, 25, 44, 0.1);
}

body.page-documentos .docs-list li a {
  border: 1px solid #d1dfed;
  background: linear-gradient(160deg, #ffffff, #f5f9ff);
}

body.page-noticias .news-hero {
  text-align: left;
  border-radius: 1.2rem;
  border: 1px solid #cfdeec;
  background:
    radial-gradient(circle at 10% 10%, rgba(47, 79, 146, 0.12), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(201, 146, 45, 0.14), transparent 42%),
    linear-gradient(160deg, #ffffff, #f5faff);
  box-shadow: 0 16px 30px rgba(8, 26, 45, 0.14);
}

body.page-noticias .news-hero h1 {
  color: #163257;
  text-shadow: none;
}

body.page-noticias .news-hero p {
  color: #35506f;
}

body.page-noticias .news-hero .news-kicker {
  color: #35577f;
  border: 1px solid #c8d9eb;
  background: #ffffff;
}

body.page-noticias .news-kicker,
body.page-noticias .news-list-header p,
body.page-documentos .docs-kicker,
body.page-gracias .thanks-kicker,
body.page-contacto #contacto .major p {
  color: #476489;
}

body.page-noticias .news-pagination-wrap {
  width: min(95%, 96rem);
  max-width: 96rem;
  border-radius: 1rem;
  border: 1px solid #cfdeec;
  background: linear-gradient(165deg, rgba(247, 251, 255, 0.95), rgba(241, 248, 255, 0.92));
  box-shadow: 0 10px 22px rgba(8, 24, 43, 0.12);
}

body.page-noticia .galeria-bloque,
body.page-noticia #nav-noticias.noticia-nav button {
  border-color: #d0deec;
}

body.page-contacto .contact-card {
  padding: clamp(1rem, 2.2vw, 1.65rem);
}

body.page-contacto .info-item,
body.page-contacto .contact-form,
body.page-contacto .contact-map iframe {
  border: 1px solid #d1dfec;
  border-radius: 1rem;
  background: linear-gradient(165deg, #ffffff, #f4f9ff);
  box-shadow: 0 10px 22px rgba(9, 25, 43, 0.11);
}

body.page-contacto .contact-form {
  padding: 1rem;
}

body.page-contacto .info-item i {
  color: var(--inst-primary);
}

body.page-contacto .contact-form button.button.primary {
  width: auto;
  min-width: 12rem;
}

body.page-gracias .thanks-check {
  background: linear-gradient(135deg, var(--inst-primary), var(--inst-secondary));
  box-shadow: 0 12px 24px rgba(9, 33, 59, 0.24);
}

body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer {
  margin-top: 1.25rem;
  border-radius: 1.75rem;
  border: 1px solid #d1dfed;
  background: linear-gradient(165deg, rgba(247, 251, 255, 0.97), rgba(241, 248, 255, 0.93));
  box-shadow: 0 20px 36px rgba(7, 22, 40, 0.14);
  overflow: hidden;
}

body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #copyright {
  margin: 1.05rem auto 3.3rem;
  color: rgba(222, 236, 251, 0.76);
}

body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #copyright a {
  color: #f3f9ff;
}

@media screen and (max-width: 980px) {
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #copyright,
  body.page-noticias .news-pagination-wrap {
    width: calc(100% - 1.8rem);
    max-width: none;
  }

  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main {
    border-radius: 1.4rem;
    padding: 0.72rem;
  }

  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main > * {
    padding: 1rem;
    border-radius: 1rem;
  }

  body.page-contacto .contact-container {
    gap: 1rem;
  }
}

@media screen and (max-width: 736px) {
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #copyright,
  body.page-noticias .news-pagination-wrap {
    width: calc(100% - 0.8rem);
  }

  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main {
    padding: 0.45rem;
    border-radius: 1.05rem;
  }

  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main > * {
    padding: 0.78rem;
    border-radius: 0.88rem;
  }
}

/* ==================================================
   FINAL PASS · Performance + Responsive hardening
   ================================================== */
body.page-home,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) {
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.page-home #wrapper,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #wrapper {
  overflow-x: clip;
}

body.page-home #main.home-main > section,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main > * {
  content-visibility: auto;
  contain-intrinsic-size: 840px;
  contain: paint;
}

body.page-nosotros .team-member,
body.page-noticias #posts-list > article.post,
body.page-noticia #galeria .galeria-item {
  content-visibility: auto;
  contain-intrinsic-size: 320px;
  contain: paint;
}

body.page-home #infraestructura,
body.page-home #tour-virtual,
body.page-home #instagram-feed,
body.page-nosotros .video-container,
body.page-noticias #main > .post.featured,
body.page-documentos #pdfContainer {
  contain-intrinsic-size: 980px;
}

body.page-documentos .docs-hero-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
}

body.page-contacto .contact-container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.1rem;
  align-items: stretch;
}

body.page-contacto .contact-info {
  display: grid;
  gap: 0.75rem;
}

@media screen and (max-width: 1200px) {
  body.page-home #nav,
  body.page-home #main.home-main,
  body.page-home #footer,
  body.page-home #copyright,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #nav,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #copyright {
    width: min(96%, 88rem);
    max-width: 88rem;
  }
}

@media screen and (max-width: 980px), (pointer: coarse) {
  body.page-home::before {
    display: none;
  }

  body.page-home #intro::before {
    animation: none;
    filter: blur(10px);
    opacity: 0.7;
  }

  body.page-home #wrapper > .bg,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #wrapper > .bg {
    filter: none;
  }

  body.page-home #nav,
  body.page-home #intro .intro-title-box,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #nav {
    backdrop-filter: none;
  }

  body.page-home #main.home-main > section,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main > * {
    box-shadow: 0 10px 20px rgba(8, 25, 43, 0.12);
  }

  body.page-home #main.home-main > section::after {
    display: none;
  }

  body.page-documentos .docs-hero-grid,
  body.page-contacto .contact-container {
    grid-template-columns: 1fr;
  }

  body.page-contacto .contact-map {
    order: -1;
  }

  body.page-noticias #posts-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 736px) {
  body.page-home #main.home-main,
  body.page-home #footer,
  body.page-home #copyright,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #copyright,
  body.page-noticias .news-pagination-wrap {
    width: calc(100% - 0.7rem);
    max-width: none;
  }

  body.page-home #main.home-main > section,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main > * {
    padding: 0.8rem;
    border-radius: 0.85rem;
  }

  body.page-noticias #posts-list,
  body.page-documentos #docs-list.docs-list {
    grid-template-columns: 1fr;
  }

  body.page-documentos #pdfViewer {
    height: 56vh;
    min-height: 320px;
  }
}

/* ==================================================
   LEGIBILITY FIX · Gallery + Forms
   ================================================== */
body.page-home #gallery {
  border-color: #cfdff0;
  background:
    radial-gradient(circle at 10% 10%, rgba(47, 79, 146, 0.12), transparent 36%),
    radial-gradient(circle at 90% 86%, rgba(201, 146, 45, 0.14), transparent 44%),
    linear-gradient(160deg, #ffffff, #f4f9ff);
}

body.page-home #gallery h2,
body.page-home #gallery p,
body.page-noticia .galeria-header h3,
body.page-noticia .galeria-header p {
  color: #173656;
  text-shadow: none;
}

body.page-home #gallery .grid > div {
  border-color: #cddff0;
  box-shadow: 0 14px 28px rgba(8, 27, 47, 0.16);
}

body.page-home #gallery .grid > div::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(7, 25, 44, 0.2));
  pointer-events: none;
}

body.page-home #gallery .grid > div {
  position: relative;
}

body.page-home #footer,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer {
  color: #1b3a5b;
}

body.page-home #footer h1,
body.page-home #footer h2,
body.page-home #footer h3,
body.page-home #footer h4,
body.page-home #footer h5,
body.page-home #footer h6,
body.page-home #footer strong,
body.page-home #footer b,
body.page-home #footer p,
body.page-home #footer label,
body.page-home #footer a,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer h1,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer h2,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer h3,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer h4,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer h5,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer h6,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer strong,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer b,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer p,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer label,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer a {
  color: #1b3a5b;
}

body.page-home #footer a,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer a {
  color: #2f4f92;
  border-bottom-color: rgba(47, 79, 146, 0.35);
}

body.page-home #footer a:hover,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer a:hover {
  color: #1e3c70 !important;
}

body.page-home #footer input[type="text"],
body.page-home #footer input[type="password"],
body.page-home #footer input[type="email"],
body.page-home #footer textarea,
body.page-home #footer select,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer input[type="text"],
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer input[type="password"],
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer input[type="email"],
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer textarea,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer select {
  background: #ffffff;
  border: 1px solid #bfd3e8;
  color: #183655;
  box-shadow: 0 2px 10px rgba(11, 34, 58, 0.06);
}

body.page-home #footer input::placeholder,
body.page-home #footer textarea::placeholder,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer input::placeholder,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer textarea::placeholder {
  color: #6d86a3;
}

body.page-home #footer input[type="text"]:focus,
body.page-home #footer input[type="password"]:focus,
body.page-home #footer input[type="email"]:focus,
body.page-home #footer textarea:focus,
body.page-home #footer select:focus,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer input[type="text"]:focus,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer input[type="password"]:focus,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer input[type="email"]:focus,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer textarea:focus,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer select:focus {
  border-color: #2f4f92;
  box-shadow: 0 0 0 3px rgba(47, 79, 146, 0.15);
}

body.page-home #footer input[type="submit"],
body.page-home #footer input[type="reset"],
body.page-home #footer input[type="button"],
body.page-home #footer button,
body.page-home #footer .button,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer input[type="submit"],
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer input[type="reset"],
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer input[type="button"],
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer button,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer .button {
  background: linear-gradient(135deg, #2f4f92, #3f609e 50%, #c9922d);
  border: 0;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(9, 33, 59, 0.28);
}

body.page-home #footer input[type="submit"]:hover,
body.page-home #footer input[type="reset"]:hover,
body.page-home #footer input[type="button"]:hover,
body.page-home #footer button:hover,
body.page-home #footer .button:hover,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer input[type="submit"]:hover,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer input[type="reset"]:hover,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer input[type="button"]:hover,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer button:hover,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(9, 33, 59, 0.34);
}

body.page-contacto .contact-form input[type="text"],
body.page-contacto .contact-form input[type="email"],
body.page-contacto .contact-form textarea {
  color: #183655;
  background: #ffffff;
  border-color: #bfd3e8;
}

body.page-contacto .contact-form input::placeholder,
body.page-contacto .contact-form textarea::placeholder {
  color: #6d86a3;
}

/* Recorrido virtual: legibilidad premium */
body.page-home #tour-virtual .tour-copy {
  padding: clamp(0.95rem, 1.6vw, 1.35rem);
  border-radius: 1.05rem;
  border: 1px solid #c8d9ec;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(242, 248, 255, 0.92));
  box-shadow: 0 14px 26px rgba(8, 26, 45, 0.16);
}

body.page-home #tour-virtual .tour-kicker {
  border: 1px solid #cadcee;
  background: #ffffff;
  color: #3a5b81;
}

body.page-home #tour-virtual .tour-copy h2 {
  color: #173758;
  text-shadow: none;
}

body.page-home #tour-virtual .tour-copy > p {
  color: #2f4f70;
}

body.page-home #tour-virtual .tour-copy .button.primary {
  box-shadow: 0 12px 24px rgba(9, 33, 59, 0.28);
}

body.page-home #tour-virtual .tour-video-wrap {
  border-color: rgba(206, 224, 244, 0.58);
  box-shadow: 0 16px 30px rgba(6, 18, 33, 0.34);
}

@media screen and (max-width: 980px) {
  body.page-home #tour-virtual .tour-copy {
    padding: 0.9rem;
  }
}

/* ==================================================
   DESIGN V2 · Premium institutional polish
   ================================================== */
:root {
  --brand-navy-900: #091c36;
  --brand-navy-800: #102b4e;
  --brand-navy-700: #1a3f6d;
  --brand-blue-600: #2f4f92;
  --brand-blue-500: #4c6fb3;
  --brand-gold-500: #c9922d;
  --brand-gold-400: #e1b05a;
  --surface-0: #f5f9ff;
  --surface-1: #ffffff;
  --surface-2: #eef4fb;
  --ink-900: #142f4f;
  --ink-700: #3f5a78;
  --ring: rgba(47, 79, 146, 0.16);
  --card-border: #d0dfef;
  --card-shadow: 0 18px 34px rgba(8, 26, 45, 0.12);
  --card-shadow-lg: 0 24px 46px rgba(7, 22, 40, 0.18);
  --panel-blue-tint: rgba(47, 79, 146, 0.24);
  --panel-gold-tint: rgba(201, 146, 45, 0.2);
}

body.page-home,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) {
  color: var(--ink-900);
  background:
    radial-gradient(circle at 8% 12%, rgba(47, 79, 146, 0.2), transparent 46%),
    radial-gradient(circle at 92% 16%, rgba(201, 146, 45, 0.18), transparent 50%),
    linear-gradient(160deg, var(--brand-navy-900), var(--brand-navy-800) 52%, var(--brand-navy-700));
}

body.page-home p,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) p {
  color: var(--ink-700);
}

body.page-home #wrapper > .bg,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #wrapper > .bg {
  filter: brightness(0.5) saturate(1.08) contrast(1.04);
}

body.page-home #wrapper.fade-in:before,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #wrapper.fade-in:before {
  background: linear-gradient(180deg, rgba(3, 11, 22, 0.24), rgba(3, 11, 22, 0.58));
}

body.page-home #nav,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #nav {
  border-radius: 999px;
  border: 1px solid rgba(221, 237, 255, 0.35);
  background: rgba(7, 28, 51, 0.76);
  box-shadow: 0 18px 34px rgba(4, 14, 27, 0.42);
  backdrop-filter: blur(10px);
}

body.page-home #nav ul.links li,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #nav ul.links li {
  border-radius: 999px;
  overflow: hidden;
}

body.page-home #nav ul.links li a,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #nav ul.links li a {
  border-radius: 999px;
  font-size: 0.71rem;
  letter-spacing: 0.14em;
}

body.page-home #nav ul.links li.active,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #nav ul.links li.active {
  background: linear-gradient(130deg, var(--brand-blue-600), var(--brand-gold-500));
}

body.page-home #main.home-main,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main {
  width: min(95.5%, 92rem);
  max-width: 92rem;
  margin-top: 1.1rem;
  border-radius: 30px;
  border: 1px solid rgba(211, 226, 242, 0.42);
  background:
    radial-gradient(circle at 9% 12%, rgba(47, 79, 146, 0.1), transparent 36%),
    radial-gradient(circle at 94% 88%, rgba(201, 146, 45, 0.11), transparent 40%),
    linear-gradient(170deg, rgba(245, 250, 255, 0.9), rgba(239, 247, 255, 0.88));
  box-shadow: var(--card-shadow-lg);
}

body.page-home #main.home-main {
  padding: 0.85rem;
}

body.page-home #main.home-main > section:not(#infraestructura):not(#tour-virtual):not(#instagram-feed):not(#home-urgent-banner) {
  border-radius: 24px;
  border: 1px solid #c9dced;
  background:
    radial-gradient(circle at 12% 14%, var(--panel-blue-tint), transparent 42%),
    radial-gradient(circle at 88% 86%, var(--panel-gold-tint), transparent 44%),
    linear-gradient(160deg, #ffffff, #f2f8ff 58%, #eef5ff);
  box-shadow: var(--card-shadow);
}

body.page-home #main.home-main > section + section {
  margin-top: 0.95rem;
}

body.page-home #main.home-main > section::before {
  display: none;
}

body.page-home #main.home-main > section::after {
  display: none;
}

body.page-home #main.home-main > section > .container,
body.page-home #main.home-main > section > .inner {
  width: min(100%, 1440px);
}

body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main > * {
  border-color: #c9dced;
  background:
    radial-gradient(circle at 10% 12%, var(--panel-blue-tint), transparent 40%),
    radial-gradient(circle at 92% 90%, var(--panel-gold-tint), transparent 44%),
    linear-gradient(160deg, #ffffff, #f2f8ff 60%, #edf4fe);
}

body.page-home #intro {
  min-height: 88vh;
}

body.page-home #intro .intro-title-box {
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 12%, rgba(47, 79, 146, 0.26), transparent 38%),
    radial-gradient(circle at 88% 18%, rgba(201, 146, 45, 0.22), transparent 38%),
    linear-gradient(145deg, rgba(8, 33, 60, 0.88), rgba(9, 38, 67, 0.82) 52%, rgba(16, 57, 99, 0.74));
}

body.page-home #intro .intro-title-box::before {
  background: linear-gradient(90deg, rgba(47, 79, 146, 0.2), rgba(47, 79, 146, 0.95), rgba(201, 146, 45, 0.95), rgba(201, 146, 45, 0.2));
}

body.page-home #welcome h2,
body.page-home #mission-vision-values h2,
body.page-home #inicio-escolar-2026 h2,
body.page-home #diario-mural h2,
body.page-home #events h2,
body.page-home #tour-virtual h2,
body.page-home #gallery h2,
body.page-home #instagram-feed h2 {
  color: var(--ink-900);
}

body.page-home #tour-virtual,
body.page-home #instagram-feed {
  border-color: rgba(201, 220, 241, 0.38);
  background:
    radial-gradient(circle at 8% 10%, rgba(47, 79, 146, 0.28), transparent 34%),
    radial-gradient(circle at 94% 90%, rgba(201, 146, 45, 0.22), transparent 42%),
    linear-gradient(150deg, #0a2442, #11365d 52%, #0d2a4a);
}

/* Tour virtual: bloque de texto siempre legible */
body.page-home #tour-virtual .tour-copy {
  border-color: rgba(205, 223, 241, 0.42);
  background:
    radial-gradient(circle at 12% 12%, rgba(47, 79, 146, 0.34), transparent 42%),
    linear-gradient(158deg, rgba(9, 30, 53, 0.94), rgba(13, 41, 70, 0.9) 56%, rgba(16, 49, 82, 0.88));
  box-shadow: 0 16px 30px rgba(6, 18, 33, 0.34);
}

body.page-home #tour-virtual .tour-kicker {
  border-color: rgba(214, 231, 249, 0.52);
  background: rgba(255, 255, 255, 0.12);
  color: #edf6ff;
}

body.page-home #tour-virtual .tour-copy h2,
body.page-home #instagram-feed .instagram-header h2 {
  color: #ffffff;
}

body.page-home #tour-virtual .tour-copy > p,
body.page-home #instagram-feed .instagram-header p {
  color: #d7e7fb;
}

body.page-home #gallery {
  background:
    radial-gradient(circle at 10% 10%, rgba(47, 79, 146, 0.18), transparent 36%),
    radial-gradient(circle at 90% 86%, rgba(201, 146, 45, 0.17), transparent 44%),
    linear-gradient(160deg, #ffffff, #f4f9ff);
}

body.page-home #gallery .grid > div {
  position: relative;
  border-color: #cedff0;
}

body.page-home #gallery .grid img {
  filter: saturate(1.05) contrast(1.02);
}

body.page-home #gallery .grid > div::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 26%;
  background: linear-gradient(180deg, transparent, rgba(8, 26, 45, 0.2));
  pointer-events: none;
}

body.page-home .button.primary,
body.page-home button.primary,
body.page-home input[type="submit"].primary,
body.page-home input[type="reset"].primary,
body.page-home input[type="button"].primary,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) .button.primary,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) button.primary,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) input[type="submit"].primary,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) input[type="reset"].primary,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) input[type="button"].primary {
  background: linear-gradient(135deg, var(--brand-blue-600), var(--brand-blue-500) 50%, var(--brand-gold-500));
  box-shadow: 0 12px 24px rgba(9, 31, 55, 0.32);
}

body.page-home #footer,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer {
  margin-top: 1.2rem;
  border-radius: 24px;
  border: 1px solid #d1dfed;
  background: linear-gradient(165deg, rgba(248, 252, 255, 0.97), rgba(241, 248, 255, 0.94));
  box-shadow: 0 18px 34px rgba(8, 23, 41, 0.14);
  color: var(--ink-900);
}

body.page-home #footer h1,
body.page-home #footer h2,
body.page-home #footer h3,
body.page-home #footer h4,
body.page-home #footer h5,
body.page-home #footer h6,
body.page-home #footer strong,
body.page-home #footer b,
body.page-home #footer p,
body.page-home #footer label,
body.page-home #footer a,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer h1,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer h2,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer h3,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer h4,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer h5,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer h6,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer strong,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer b,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer p,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer label,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer a {
  color: #1a395b;
}

body.page-home #footer a,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer a {
  color: var(--brand-blue-600);
  border-bottom-color: rgba(47, 79, 146, 0.35);
}

body.page-home #footer input[type="text"],
body.page-home #footer input[type="password"],
body.page-home #footer input[type="email"],
body.page-home #footer textarea,
body.page-home #footer select,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer input[type="text"],
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer input[type="password"],
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer input[type="email"],
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer textarea,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer select {
  background: #ffffff;
  border: 1px solid #bfd3e8;
  color: #183655;
}

body.page-home #footer input::placeholder,
body.page-home #footer textarea::placeholder,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer input::placeholder,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer textarea::placeholder {
  color: #6d86a3;
}

body.page-contacto .contact-form input[type="text"],
body.page-contacto .contact-form input[type="email"],
body.page-contacto .contact-form textarea {
  background: #ffffff;
  border: 1px solid #bfd3e8;
  color: #183655;
}

body.page-contacto .contact-form input::placeholder,
body.page-contacto .contact-form textarea::placeholder {
  color: #6d86a3;
}

@media screen and (max-width: 980px), (pointer: coarse) {
  body.page-home #nav,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #nav {
    backdrop-filter: none;
  }

  body.page-home #main.home-main,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main {
    width: calc(100% - 1.3rem);
    border-radius: 16px;
  }

  body.page-home #main.home-main > section,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main > * {
    border-radius: 14px;
  }

  body.page-home #gallery .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 170px;
  }

  body.page-home #gallery .grid > div:nth-child(1),
  body.page-home #gallery .grid > div:nth-child(2),
  body.page-home #gallery .grid > div:nth-child(3),
  body.page-home #gallery .grid > div:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media screen and (max-width: 736px) {
  body.page-home #main.home-main,
  body.page-home #footer,
  body.page-home #copyright,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #footer,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #copyright {
    width: calc(100% - 0.7rem);
  }

  body.page-home #main.home-main {
    padding: 0.4rem;
  }

  body.page-home #main.home-main > section,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main > * {
    padding: 0.82rem;
    border-radius: 12px;
  }

  body.page-home #gallery .grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 210px;
  }
}

@media screen and (max-width: 980px), (pointer: coarse), (prefers-reduced-motion: reduce) {
  body.page-home #wrapper > .bg,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #wrapper > .bg {
    filter: brightness(0.62) saturate(1.03) contrast(1.01);
  }

  body.page-home #main.home-main,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main,
  body.page-home #main.home-main > section,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #main > * {
    box-shadow: 0 8px 18px rgba(8, 23, 41, 0.12);
  }

  body.page-home #intro::before {
    filter: none;
    opacity: 0.62;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home #gallery .grid > div:hover img,
  body.page-home .button:hover,
  body.page-home button:hover,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) .button:hover,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) button:hover {
    transform: none !important;
  }
}

/* Scroll reveal espectacular */
body .scroll-reveal {
  opacity: 0;
  transform: translate3d(var(--reveal-x, 0), var(--reveal-y, 120px), 0) scale(0.9);
  transform-origin: 50% 100%;
}

body .scroll-reveal:not(.is-visible) {
  will-change: opacity, transform;
}

body .scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
  animation-name: revealImpact;
  animation-duration: 1.28s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes revealImpact {
  0% {
    opacity: 0;
    transform: translate3d(var(--reveal-x, 0), var(--reveal-y, 160px), 0) scale(0.84);
  }
  64% {
    opacity: 1;
    transform: translate3d(0, -18px, 0) scale(1.038);
  }
  82% {
    opacity: 1;
    transform: translate3d(0, 5px, 0) scale(0.996);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media screen and (max-width: 980px) {
  body .scroll-reveal.is-visible {
    animation-duration: 1.04s;
  }
}

/* Copyright siempre visible */
body.page-home #copyright,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #copyright {
  color: #e8f1ff !important;
}

body.page-home #copyright ul li,
body.page-home #copyright a,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #copyright ul li,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #copyright a {
  color: #e8f1ff !important;
  opacity: 1 !important;
}

/* Instagram compacto en desktop */
@media screen and (min-width: 981px) {
  body.page-home #instagram-feed {
    padding-top: 2.15rem;
    padding-bottom: 2rem;
  }

  body.page-home #instagram-feed .instagram-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  body.page-home #instagram-feed .instagram-header {
    max-width: 58rem;
    margin: 0 auto;
    padding: 0.2rem 0.15rem 0;
  }

  body.page-home #instagram-feed .instagram-header h2 {
    font-size: clamp(1.8rem, 2.4vw, 2.3rem);
    margin-bottom: 0.45rem;
  }

  body.page-home #instagram-feed .instagram-header p {
    max-width: 50ch;
  }

  body.page-home #instagram-feed .instagram-header .actions {
    margin-top: 0.72rem;
  }

  body.page-home #instagram-feed .instagram-feed-grid {
    width: min(100%, 48rem);
    margin: 0 auto;
  }
}

/* Entrada especial: bloque Bienvenidos */
body.page-home #welcome.scroll-reveal h2,
body.page-home #welcome.scroll-reveal .image.fit,
body.page-home #welcome.scroll-reveal .col-8 p {
  opacity: 0;
}

body.page-home #welcome.scroll-reveal.is-visible h2 {
  animation: welcomeTitleIn 1.04s cubic-bezier(0.2, 0.9, 0.3, 1) 0.07s both;
}

body.page-home #welcome.scroll-reveal.is-visible .image.fit {
  animation: welcomeLogoIn 1.08s cubic-bezier(0.22, 0.9, 0.28, 1) 0.24s both;
}

body.page-home #welcome.scroll-reveal.is-visible .col-8 p {
  animation: welcomeCopyIn 1.05s cubic-bezier(0.2, 0.9, 0.3, 1) 0.42s both;
}

@keyframes welcomeTitleIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 72px, 0) scale(0.86);
    letter-spacing: 0.08em;
  }
  68% {
    opacity: 1;
    transform: translate3d(0, -8px, 0) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    letter-spacing: 0.01em;
  }
}

@keyframes welcomeLogoIn {
  0% {
    opacity: 0;
    transform: translate3d(-90px, 46px, 0) rotate(-14deg) scale(0.72);
    filter: saturate(0.8);
  }
  68% {
    opacity: 1;
    transform: translate3d(7px, -6px, 0) rotate(1.8deg) scale(1.055);
    filter: saturate(1.1);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    filter: saturate(1);
  }
}

@keyframes welcomeCopyIn {
  0% {
    opacity: 0;
    transform: translate3d(64px, 26px, 0) scale(0.94);
  }
  70% {
    opacity: 1;
    transform: translate3d(-3px, -2px, 0) scale(1.012);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home #welcome.scroll-reveal h2,
  body.page-home #welcome.scroll-reveal .image.fit,
  body.page-home #welcome.scroll-reveal .col-8 p {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Entrada especial: Mision / Vision / Valores */
body.page-home #mission-vision-values.scroll-reveal .box.feature {
  opacity: 0;
  transform: translate3d(0, 62px, 0) scale(0.86);
}

body.page-home #mission-vision-values.scroll-reveal.is-visible .box.feature {
  animation: mvvCardIn 1.06s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

body.page-home #mission-vision-values.scroll-reveal.is-visible .row > [class*="col-"]:nth-child(1) .box.feature {
  animation-delay: 0.1s;
}

body.page-home #mission-vision-values.scroll-reveal.is-visible .row > [class*="col-"]:nth-child(2) .box.feature {
  animation-delay: 0.32s;
}

body.page-home #mission-vision-values.scroll-reveal.is-visible .row > [class*="col-"]:nth-child(3) .box.feature {
  animation-delay: 0.54s;
}

body.page-home #mission-vision-values.scroll-reveal .box.feature .icon.major {
  transform: scale(0.62) rotate(-18deg);
  opacity: 0;
}

body.page-home #mission-vision-values.scroll-reveal.is-visible .box.feature .icon.major {
  animation: mvvIconIn 0.86s cubic-bezier(0.18, 0.9, 0.3, 1) both;
}

body.page-home #mission-vision-values.scroll-reveal.is-visible .row > [class*="col-"]:nth-child(1) .icon.major {
  animation-delay: 0.3s;
}

body.page-home #mission-vision-values.scroll-reveal.is-visible .row > [class*="col-"]:nth-child(2) .icon.major {
  animation-delay: 0.52s;
}

body.page-home #mission-vision-values.scroll-reveal.is-visible .row > [class*="col-"]:nth-child(3) .icon.major {
  animation-delay: 0.74s;
}

@keyframes mvvCardIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 62px, 0) scale(0.86) rotate(-1.5deg);
  }
  68% {
    opacity: 1;
    transform: translate3d(0, -9px, 0) scale(1.04) rotate(0.7deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes mvvIconIn {
  0% {
    opacity: 0;
    transform: scale(0.62) rotate(-18deg);
  }
  74% {
    opacity: 1;
    transform: scale(1.12) rotate(2.4deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home #mission-vision-values.scroll-reveal .box.feature,
  body.page-home #mission-vision-values.scroll-reveal .box.feature .icon.major {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Entrada especial: demas bloques del inicio */
body.page-home #inicio-escolar-2026.scroll-reveal .inicio-2026-head,
body.page-home #diario-mural.scroll-reveal .mural-head,
body.page-home #events.scroll-reveal .events-head,
body.page-home #gallery.scroll-reveal h2,
body.page-home #instagram-feed.scroll-reveal .instagram-header {
  opacity: 0;
  transform: translate3d(0, 58px, 0) scale(0.9);
}

body.page-home #inicio-escolar-2026.scroll-reveal .inicio-2026-card,
body.page-home #inicio-escolar-2026.scroll-reveal .inicio-2026-hito,
body.page-home #events.scroll-reveal .events-grid li,
body.page-home #gallery.scroll-reveal .grid > div {
  opacity: 0;
  transform: translate3d(0, 76px, 0) scale(0.82) rotate(-1.4deg);
}

body.page-home #inicio-escolar-2026.scroll-reveal .inicio-2026-footer,
body.page-home #diario-mural.scroll-reveal .slider-wrapper,
body.page-home #instagram-feed.scroll-reveal .instagram-feed-grid {
  opacity: 0;
  transform: translate3d(0, 50px, 0) scale(0.9);
}

body.page-home #tour-virtual.scroll-reveal .tour-copy {
  opacity: 0;
  transform: translate3d(-108px, 26px, 0) scale(0.86) rotate(-2.4deg);
}

body.page-home #tour-virtual.scroll-reveal .tour-video-wrap {
  opacity: 0;
  transform: translate3d(108px, 26px, 0) scale(0.86) rotate(2.4deg);
}

body.page-home #inicio-escolar-2026.scroll-reveal.is-visible .inicio-2026-head,
body.page-home #diario-mural.scroll-reveal.is-visible .mural-head,
body.page-home #events.scroll-reveal.is-visible .events-head,
body.page-home #gallery.scroll-reveal.is-visible h2,
body.page-home #instagram-feed.scroll-reveal.is-visible .instagram-header {
  animation: homePartUp 1.02s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

body.page-home #inicio-escolar-2026.scroll-reveal.is-visible .inicio-2026-card,
body.page-home #inicio-escolar-2026.scroll-reveal.is-visible .inicio-2026-hito,
body.page-home #events.scroll-reveal.is-visible .events-grid li,
body.page-home #gallery.scroll-reveal.is-visible .grid > div {
  animation: homePartCard 1.06s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

body.page-home #inicio-escolar-2026.scroll-reveal.is-visible .inicio-2026-footer,
body.page-home #diario-mural.scroll-reveal.is-visible .slider-wrapper,
body.page-home #instagram-feed.scroll-reveal.is-visible .instagram-feed-grid {
  animation: homePartSoftUp 1.02s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

body.page-home #tour-virtual.scroll-reveal.is-visible .tour-copy {
  animation: homePartLeft 1.1s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

body.page-home #tour-virtual.scroll-reveal.is-visible .tour-video-wrap {
  animation: homePartRight 1.1s cubic-bezier(0.2, 0.9, 0.3, 1) 0.24s both;
}

body.page-home #inicio-escolar-2026.scroll-reveal.is-visible .inicio-2026-card:nth-child(1) {
  animation-delay: 0.12s;
}

body.page-home #inicio-escolar-2026.scroll-reveal.is-visible .inicio-2026-card:nth-child(2) {
  animation-delay: 0.34s;
}

body.page-home #inicio-escolar-2026.scroll-reveal.is-visible .inicio-2026-hitos .inicio-2026-hito:nth-child(1) {
  animation-delay: 0.52s;
}

body.page-home #inicio-escolar-2026.scroll-reveal.is-visible .inicio-2026-hitos .inicio-2026-hito:nth-child(2) {
  animation-delay: 0.68s;
}

body.page-home #inicio-escolar-2026.scroll-reveal.is-visible .inicio-2026-footer {
  animation-delay: 0.84s;
}

body.page-home #events.scroll-reveal.is-visible .events-grid li:nth-child(1) {
  animation-delay: 0.12s;
}

body.page-home #events.scroll-reveal.is-visible .events-grid li:nth-child(2) {
  animation-delay: 0.32s;
}

body.page-home #events.scroll-reveal.is-visible .events-grid li:nth-child(3) {
  animation-delay: 0.52s;
}

body.page-home #gallery.scroll-reveal.is-visible .grid > div:nth-child(1) {
  animation-delay: 0.12s;
}

body.page-home #gallery.scroll-reveal.is-visible .grid > div:nth-child(2) {
  animation-delay: 0.27s;
}

body.page-home #gallery.scroll-reveal.is-visible .grid > div:nth-child(3) {
  animation-delay: 0.42s;
}

body.page-home #gallery.scroll-reveal.is-visible .grid > div:nth-child(4) {
  animation-delay: 0.57s;
}

body.page-home #diario-mural.scroll-reveal.is-visible .slider-wrapper {
  animation-delay: 0.24s;
}

body.page-home #instagram-feed.scroll-reveal.is-visible .instagram-feed-grid {
  animation-delay: 0.3s;
}

@keyframes homePartUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 58px, 0) scale(0.88);
  }
  66% {
    opacity: 1;
    transform: translate3d(0, -8px, 0) scale(1.035);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes homePartSoftUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 50px, 0) scale(0.9);
  }
  70% {
    opacity: 1;
    transform: translate3d(0, -4px, 0) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes homePartCard {
  0% {
    opacity: 0;
    transform: translate3d(0, 76px, 0) scale(0.82) rotate(-1.4deg);
  }
  68% {
    opacity: 1;
    transform: translate3d(0, -12px, 0) scale(1.045) rotate(0.8deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes homePartLeft {
  0% {
    opacity: 0;
    transform: translate3d(-108px, 26px, 0) scale(0.86) rotate(-2.4deg);
  }
  70% {
    opacity: 1;
    transform: translate3d(6px, -4px, 0) scale(1.025) rotate(0.5deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes homePartRight {
  0% {
    opacity: 0;
    transform: translate3d(108px, 26px, 0) scale(0.86) rotate(2.4deg);
  }
  70% {
    opacity: 1;
    transform: translate3d(-6px, -4px, 0) scale(1.025) rotate(-0.5deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home #inicio-escolar-2026.scroll-reveal .inicio-2026-head,
  body.page-home #inicio-escolar-2026.scroll-reveal .inicio-2026-card,
  body.page-home #inicio-escolar-2026.scroll-reveal .inicio-2026-hito,
  body.page-home #inicio-escolar-2026.scroll-reveal .inicio-2026-footer,
  body.page-home #diario-mural.scroll-reveal .mural-head,
  body.page-home #diario-mural.scroll-reveal .slider-wrapper,
  body.page-home #events.scroll-reveal .events-head,
  body.page-home #events.scroll-reveal .events-grid li,
  body.page-home #tour-virtual.scroll-reveal .tour-copy,
  body.page-home #tour-virtual.scroll-reveal .tour-video-wrap,
  body.page-home #gallery.scroll-reveal h2,
  body.page-home #gallery.scroll-reveal .grid > div,
  body.page-home #instagram-feed.scroll-reveal .instagram-header,
  body.page-home #instagram-feed.scroll-reveal .instagram-feed-grid {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Entrada especial: paginas internas */
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) .scroll-reveal.is-visible {
  animation-name: revealImpactInner;
  animation-duration: 1.28s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes revealImpactInner {
  0% {
    opacity: 0;
    transform: translate3d(var(--reveal-x, 0), calc(var(--reveal-y, 120px) + 28px), 0) scale(0.82) rotate(calc(var(--reveal-rot, 0deg) * 1.2));
  }
  62% {
    opacity: 1;
    transform: translate3d(0, -16px, 0) scale(1.04) rotate(0.5deg);
  }
  82% {
    opacity: 1;
    transform: translate3d(0, 5px, 0) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
}

@media screen and (max-width: 980px) {
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) .scroll-reveal.is-visible {
    animation-duration: 1.04s;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) .scroll-reveal,
  body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) .scroll-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Modo de rendimiento: mantiene estilo y suaviza costo en equipos moviles/limitados */
body.perf-lite:is(.page-home, .page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) .scroll-reveal.is-visible {
  animation-name: revealImpactLite !important;
  animation-duration: 0.78s !important;
}

@keyframes revealImpactLite {
  0% {
    opacity: 0;
    transform: translate3d(var(--reveal-x, 0), calc(var(--reveal-y, 120px) * 0.72), 0) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* En perf-lite, dejamos una animacion por bloque (evita sub-animaciones costosas). */
body.perf-lite.page-home #welcome.scroll-reveal h2,
body.perf-lite.page-home #welcome.scroll-reveal .image.fit,
body.perf-lite.page-home #welcome.scroll-reveal .col-8 p,
body.perf-lite.page-home #mission-vision-values.scroll-reveal .box.feature,
body.perf-lite.page-home #mission-vision-values.scroll-reveal .box.feature .icon.major,
body.perf-lite.page-home #inicio-escolar-2026.scroll-reveal .inicio-2026-head,
body.perf-lite.page-home #inicio-escolar-2026.scroll-reveal .inicio-2026-card,
body.perf-lite.page-home #inicio-escolar-2026.scroll-reveal .inicio-2026-hito,
body.perf-lite.page-home #inicio-escolar-2026.scroll-reveal .inicio-2026-footer,
body.perf-lite.page-home #diario-mural.scroll-reveal .mural-head,
body.perf-lite.page-home #diario-mural.scroll-reveal .slider-wrapper,
body.perf-lite.page-home #events.scroll-reveal .events-head,
body.perf-lite.page-home #events.scroll-reveal .events-grid li,
body.perf-lite.page-home #tour-virtual.scroll-reveal .tour-copy,
body.perf-lite.page-home #tour-virtual.scroll-reveal .tour-video-wrap,
body.perf-lite.page-home #gallery.scroll-reveal h2,
body.perf-lite.page-home #gallery.scroll-reveal .grid > div,
body.perf-lite.page-home #instagram-feed.scroll-reveal .instagram-header,
body.perf-lite.page-home #instagram-feed.scroll-reveal .instagram-feed-grid {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

/* Instagram refresh */
body.page-home #instagram-feed.instagram-modern {
  border-color: rgba(208, 227, 246, 0.38);
  background:
    radial-gradient(circle at 12% 12%, rgba(47, 79, 146, 0.34), transparent 36%),
    radial-gradient(circle at 90% 84%, rgba(201, 146, 45, 0.24), transparent 44%),
    linear-gradient(152deg, #0a2647, #113b67 54%, #0f2e54);
}

body.page-home #instagram-feed .instagram-shell {
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1rem, 2.1vw, 1.55rem);
  align-items: stretch;
}

body.page-home #instagram-feed .instagram-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.85rem, 1.9vw, 1.35rem) 0.1rem;
}

body.page-home #instagram-feed .instagram-header p {
  max-width: 38ch;
}

body.page-home #instagram-feed .instagram-header .actions {
  margin-top: 0.82rem;
}

body.page-home #instagram-feed .instagram-feed-grid {
  align-self: stretch;
}

@media screen and (max-width: 980px) {
  body.page-home #instagram-feed .instagram-shell {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  body.page-home #instagram-feed .instagram-header {
    align-items: center;
    text-align: center;
  }

  body.page-home #instagram-feed .instagram-header p {
    max-width: 46ch;
    text-align: center;
  }

  body.page-home #instagram-feed .instagram-header .actions {
    justify-content: center;
  }

  body.page-home #instagram-feed .instagram-feed-grid {
    width: min(100%, 46rem);
    margin-inline: auto;
  }
}

@media screen and (max-width: 736px) {
  body.page-home #instagram-feed .instagram-feed-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero title impact */
body.page-home #intro .intro-title-box {
  width: min(1440px, 100%);
  padding: 0 clamp(0.6rem, 2.4vw, 1.8rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

body.page-home #intro .intro-title-box::before {
  display: none;
}

body.page-home #intro .intro-impact-title {
  margin: 0;
  font-family: "Cormorant Garamond", "Fraunces", "Libre Baskerville", Georgia, serif;
  text-align: center;
  line-height: 0.8;
  letter-spacing: 0.012em;
  text-wrap: balance;
}

body.page-home #intro .intro-impact-title .impact-line {
  display: block;
  font-size: clamp(3.9rem, 12.8vw, 10.8rem);
  font-weight: 700;
  white-space: nowrap;
  transform: scaleX(1.07);
  transform-origin: center;
  background-image: linear-gradient(
    112deg,
    #ffffff 0%,
    #ffffff 40%,
    #f6f9ff 47%,
    #a5bbe2 49.8%,
    #d6b374 51.2%,
    #ffffff 56%,
    #ffffff 100%
  );
  background-size: 260% 100%;
  background-position: 128% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-text-stroke: 0.28px rgba(255, 255, 255, 0.24);
  text-shadow: 0 14px 26px rgba(2, 10, 23, 0.35), 0 3px 10px rgba(7, 27, 48, 0.26);
  animation: introInstitutionalSweep 8.4s cubic-bezier(0.31, 0.08, 0.22, 0.98) infinite;
}

body.page-home #intro .intro-impact-title .impact-line + .impact-line {
  font-size: clamp(4.4rem, 14.6vw, 12.8rem);
  letter-spacing: 0.01em;
  transform: scaleX(1.1);
  animation-delay: 0.34s;
}

@keyframes introInstitutionalSweep {
  0%,
  16% {
    background-position: 128% 50%;
  }
  52% {
    background-position: 22% 50%;
  }
  100% {
    background-position: -138% 50%;
  }
}

@media screen and (max-width: 980px) {
  body.page-home #intro .intro-title-box {
    width: min(100%, 980px);
    padding: 0 0.45rem;
  }

  body.page-home #intro .intro-impact-title {
    line-height: 0.84;
  }

  body.page-home #intro .intro-impact-title .impact-line {
    font-size: clamp(3.15rem, 12.6vw, 6.2rem);
    transform: scaleX(1.06);
  }

  body.page-home #intro .intro-impact-title .impact-line + .impact-line {
    font-size: clamp(3.55rem, 14.6vw, 7rem);
    transform: scaleX(1.08);
  }
}

@media screen and (max-width: 480px) {
  body.page-home #intro .intro-title-box {
    width: min(100%, 560px);
    padding: 0 0.22rem;
  }

  body.page-home #intro .intro-impact-title {
    line-height: 0.86;
    letter-spacing: 0.01em;
  }

  body.page-home #intro .intro-impact-title .impact-line {
    font-size: clamp(2.35rem, 12.2vw, 3.6rem);
    transform: scaleX(1.02);
    text-shadow: 0 10px 20px rgba(2, 10, 23, 0.32), 0 2px 8px rgba(7, 27, 48, 0.26);
  }

  body.page-home #intro .intro-impact-title .impact-line + .impact-line {
    font-size: clamp(2.65rem, 13.8vw, 4.05rem);
    transform: scaleX(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home #intro .intro-impact-title .impact-line {
    animation: none;
    background-position: 50% 50%;
  }
}

/* Scroll top button (mobile/tablet) */
.scroll-top-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(140deg, #2f4f92, #1f396e);
  color: #f7fbff;
  box-shadow: 0 10px 24px rgba(7, 18, 34, 0.36);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
  z-index: 10003;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: linear-gradient(140deg, #3d63b1, #2b4a8b);
  box-shadow: 0 14px 28px rgba(7, 18, 34, 0.42);
}

.scroll-top-btn:focus-visible {
  outline: 2px solid rgba(201, 146, 45, 0.95);
  outline-offset: 2px;
}

.scroll-top-btn__icon {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.scroll-top-btn__label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

body.is-navPanel-visible .scroll-top-btn {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

@media screen and (min-width: 1025px) {
  .scroll-top-btn {
    display: none !important;
  }
}

@media screen and (max-width: 480px) {
  .scroll-top-btn {
    right: 0.78rem;
    bottom: 0.9rem;
    width: 2.65rem;
    height: 2.65rem;
  }

  .scroll-top-btn__label {
    font-size: 0.7rem;
  }
}

/* Ajuste del equipo (solo movil) */
@media screen and (max-width: 736px) {
  body.page-nosotros #equipo .tabs {
    display: block;
    padding: 0.85rem;
  }

  body.page-nosotros #equipo .tab-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.9rem;
  }

  body.page-nosotros #equipo .tab-buttons li {
    width: auto;
    margin: 0;
    min-height: 2.35rem;
    padding: 0.55rem 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.67rem;
    line-height: 1.22;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  body.page-nosotros #equipo .tab-content.active {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  body.page-nosotros #equipo .team-member {
    width: 100%;
    flex: unset !important;
    margin: 0;
    padding: 0.72rem 0.56rem;
    border-radius: 12px;
  }

  body.page-nosotros #equipo .team-member img {
    width: 74px !important;
    height: 74px !important;
    border-width: 2px;
    box-shadow: 0 6px 14px rgba(12, 39, 70, 0.16);
  }

  body.page-nosotros #equipo .team-member h3 {
    margin-top: 0.52rem;
    margin-bottom: 0.22rem;
    font-size: 0.8rem;
    line-height: 1.25;
    word-break: break-word;
  }

  body.page-nosotros #equipo .team-member p {
    min-height: 0;
    margin-bottom: 0;
    font-size: 0.73rem;
    line-height: 1.32;
    text-align: center;
    word-break: break-word;
  }
}

@media screen and (max-width: 420px) {
  body.page-nosotros #equipo .tabs {
    padding: 0.72rem;
  }

  body.page-nosotros #equipo .tab-buttons {
    gap: 0.42rem;
  }

  body.page-nosotros #equipo .tab-buttons li {
    min-height: 2.25rem;
    font-size: 0.63rem;
    padding: 0.5rem 0.4rem;
  }

  body.page-nosotros #equipo .tab-content.active {
    gap: 0.58rem;
  }

  body.page-nosotros #equipo .team-member {
    padding: 0.64rem 0.44rem;
  }

  body.page-nosotros #equipo .team-member img {
    width: 66px !important;
    height: 66px !important;
  }

  body.page-nosotros #equipo .team-member h3 {
    font-size: 0.75rem;
  }

  body.page-nosotros #equipo .team-member p {
    font-size: 0.69rem;
  }
}

/* Ajuste del equipo (tablet y escritorio) */
@media screen and (min-width: 737px) and (max-width: 1024px) {
  body.page-nosotros #equipo .tabs {
    display: block;
    padding: 1rem;
  }

  body.page-nosotros #equipo .tab-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.56rem;
    margin-bottom: 1rem;
  }

  body.page-nosotros #equipo .tab-buttons li {
    width: auto;
    margin: 0;
    min-height: 2.5rem;
    padding: 0.62rem 0.58rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.22;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  body.page-nosotros #equipo .tab-content.active {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }

  body.page-nosotros #equipo .team-member {
    width: 100%;
    margin: 0;
    padding: 0.84rem 0.68rem;
    border-radius: 12px;
  }

  body.page-nosotros #equipo .team-member img {
    width: 84px !important;
    height: 84px !important;
    border-width: 2px;
    box-shadow: 0 7px 15px rgba(12, 39, 70, 0.16);
  }

  body.page-nosotros #equipo .team-member h3 {
    margin-top: 0.54rem;
    margin-bottom: 0.24rem;
    font-size: 0.81rem;
    line-height: 1.26;
    word-break: break-word;
  }

  body.page-nosotros #equipo .team-member p {
    min-height: 0;
    margin-bottom: 0;
    font-size: 0.73rem;
    line-height: 1.35;
    text-align: center;
    word-break: break-word;
  }
}

@media screen and (min-width: 1025px) {
  body.page-nosotros #equipo .tabs {
    display: block;
    padding: 1.1rem;
  }

  body.page-nosotros #equipo .tab-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.62rem;
    margin-bottom: 1.05rem;
  }

  body.page-nosotros #equipo .tab-buttons li {
    width: auto;
    margin: 0;
    min-height: 2.5rem;
    padding: 0.64rem 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.22;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  body.page-nosotros #equipo .tab-content.active {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.95rem;
  }

  body.page-nosotros #equipo .team-member {
    width: 100%;
    margin: 0;
    padding: 0.92rem 0.72rem;
    border-radius: 12px;
  }

  body.page-nosotros #equipo .team-member img {
    width: 90px !important;
    height: 90px !important;
    border-width: 2px;
    box-shadow: 0 8px 16px rgba(12, 39, 70, 0.16);
  }

  body.page-nosotros #equipo .team-member h3 {
    margin-top: 0.56rem;
    margin-bottom: 0.24rem;
    font-size: 0.84rem;
    line-height: 1.26;
    word-break: break-word;
  }

  body.page-nosotros #equipo .team-member p {
    min-height: 0;
    margin-bottom: 0;
    font-size: 0.75rem;
    line-height: 1.36;
    text-align: center;
    word-break: break-word;
  }
}

/* Global lock style for protected navigation links */
.link-auth-required.is-locked {
  opacity: 0.55;
  position: relative;
}

.link-auth-required.is-locked::after {
  content: " 🔒";
  font-size: 0.86em;
}

/* Footer parity for Portal/Comunicados */
body:is(.page-portal, .page-comunicados) #footer {
  margin-top: 1.2rem;
  border-radius: 24px;
  border: 1px solid #d1dfed;
  background: linear-gradient(165deg, rgba(248, 252, 255, 0.97), rgba(241, 248, 255, 0.94));
  box-shadow: 0 18px 34px rgba(8, 23, 41, 0.14);
  color: #1b3a5b;
}

body:is(.page-portal, .page-comunicados) #footer h1,
body:is(.page-portal, .page-comunicados) #footer h2,
body:is(.page-portal, .page-comunicados) #footer h3,
body:is(.page-portal, .page-comunicados) #footer h4,
body:is(.page-portal, .page-comunicados) #footer h5,
body:is(.page-portal, .page-comunicados) #footer h6,
body:is(.page-portal, .page-comunicados) #footer strong,
body:is(.page-portal, .page-comunicados) #footer b,
body:is(.page-portal, .page-comunicados) #footer p,
body:is(.page-portal, .page-comunicados) #footer label,
body:is(.page-portal, .page-comunicados) #footer a {
  color: #1b3a5b;
}

body:is(.page-portal, .page-comunicados) #footer a {
  color: #2f4f92;
  border-bottom-color: rgba(47, 79, 146, 0.35);
}

body:is(.page-portal, .page-comunicados) #footer a:hover {
  color: #1e3c70 !important;
}

body:is(.page-portal, .page-comunicados) #footer input[type="text"],
body:is(.page-portal, .page-comunicados) #footer input[type="password"],
body:is(.page-portal, .page-comunicados) #footer input[type="email"],
body:is(.page-portal, .page-comunicados) #footer textarea,
body:is(.page-portal, .page-comunicados) #footer select {
  background: #ffffff;
  border: 1px solid #bfd3e8;
  color: #183655;
  box-shadow: 0 2px 10px rgba(11, 34, 58, 0.06);
}

body:is(.page-portal, .page-comunicados) #footer input::placeholder,
body:is(.page-portal, .page-comunicados) #footer textarea::placeholder {
  color: #6d86a3;
}

body:is(.page-portal, .page-comunicados) #footer input[type="text"]:focus,
body:is(.page-portal, .page-comunicados) #footer input[type="password"]:focus,
body:is(.page-portal, .page-comunicados) #footer input[type="email"]:focus,
body:is(.page-portal, .page-comunicados) #footer textarea:focus,
body:is(.page-portal, .page-comunicados) #footer select:focus {
  border-color: #2f4f92;
  box-shadow: 0 0 0 3px rgba(47, 79, 146, 0.15);
}

body:is(.page-portal, .page-comunicados) #footer input[type="submit"],
body:is(.page-portal, .page-comunicados) #footer input[type="reset"],
body:is(.page-portal, .page-comunicados) #footer input[type="button"],
body:is(.page-portal, .page-comunicados) #footer button,
body:is(.page-portal, .page-comunicados) #footer .button {
  background: linear-gradient(135deg, #2f4f92, #3f609e 50%, #c9922d);
  border: 0;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(9, 33, 59, 0.28);
}

body:is(.page-portal, .page-comunicados) #footer input[type="submit"]:hover,
body:is(.page-portal, .page-comunicados) #footer input[type="reset"]:hover,
body:is(.page-portal, .page-comunicados) #footer input[type="button"]:hover,
body:is(.page-portal, .page-comunicados) #footer button:hover,
body:is(.page-portal, .page-comunicados) #footer .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(9, 33, 59, 0.34);
}

body:is(.page-portal, .page-comunicados) #copyright {
  color: #e8f1ff !important;
}

body:is(.page-portal, .page-comunicados) #copyright ul li,
body:is(.page-portal, .page-comunicados) #copyright a {
  color: #e8f1ff !important;
  opacity: 1 !important;
}

/* Publisher metadata in noticias/noticia */
.page-noticias .news-meta-line,
.page-noticia #contenido-noticia .noticia-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
}

.page-noticias .news-meta-line {
  margin-bottom: 0.58rem;
}

.page-noticias #featured-date,
.page-noticias #posts-list article.post header.major .date,
.page-noticia #contenido-noticia .noticia-date {
  margin-bottom: 0;
}

.news-publisher-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.64rem;
  border-radius: 999px;
  border: 1px solid #ccdaee;
  background: linear-gradient(138deg, #f8fbff 0%, #eef5ff 56%, #fff9ef 100%);
  color: #2b4f79;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.news-publisher-chip.is-compact {
  font-size: 0.58rem;
  padding: 0.21rem 0.56rem;
}

.news-publisher-prefix {
  color: #51719a;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-publisher-name {
  color: #19395f;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.news-editor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  margin-left: 0.2rem;
  padding: 0.17rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 146, 45, 0.56);
  background: linear-gradient(135deg, rgba(47, 79, 146, 0.14), rgba(201, 146, 45, 0.24), rgba(255, 255, 255, 0.92));
  color: #1d3f6f;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 11px rgba(9, 33, 58, 0.13);
}

.news-editor-badge i {
  color: #c6841f;
  font-size: 0.72rem;
  transform-origin: center;
  animation: salva-editor-pulse 2.2s ease-in-out infinite;
}

.page-noticia #contenido-noticia .news-publisher-chip {
  font-size: 0.67rem;
  padding: 0.26rem 0.66rem;
}

@keyframes salva-editor-pulse {
  0%, 100% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 0 rgba(201, 146, 45, 0.18));
  }
  50% {
    transform: rotate(-8deg) scale(1.15);
    filter: drop-shadow(0 0 6px rgba(201, 146, 45, 0.36));
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-editor-badge i {
    animation: none;
  }
}

/* ==================================================
   MOTION REFRESH · institucional elegante sin blur
   ================================================== */
:root {
  --salva-motion-ease: cubic-bezier(0.24, 0.66, 0.28, 1);
  --salva-motion-fast: 0.28s;
  --salva-motion-base: 0.46s;
}

/* Eliminar blur en capas animadas clave */
#intro::before,
body.page-home #intro::before {
  filter: none !important;
  animation: none !important;
  opacity: 0.68;
}

#intro .intro-title-box,
body.page-home #intro .intro-title-box,
body #header .logo,
body #nav,
body.page-noticia .modal-imagen,
body.page-home #nav,
body:is(.page-nosotros, .page-documentos, .page-noticias, .page-noticia, .page-contacto, .page-gracias) #nav {
  backdrop-filter: none !important;
}

/* Transicion entre paginas: limpia y sobria (sin escala) */
body::after {
  transition: opacity var(--salva-motion-fast) var(--salva-motion-ease) !important;
  background: rgba(7, 18, 34, 0.34) !important;
}

#wrapper {
  transition:
    opacity var(--salva-motion-fast) var(--salva-motion-ease) !important,
    transform var(--salva-motion-fast) var(--salva-motion-ease) !important;
}

body.page-transitioning-next #wrapper,
body.page-transitioning-prev #wrapper,
body.page-transitioning:not(.page-transitioning-next):not(.page-transitioning-prev) #wrapper {
  opacity: 0 !important;
  transform: translate3d(0, 10px, 0) !important;
}

/* Reveal global: elegante, vertical, sin rebotes */
body .scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) !important;
  transition:
    opacity var(--salva-motion-base) var(--salva-motion-ease),
    transform var(--salva-motion-base) var(--salva-motion-ease);
  animation: none !important;
  filter: none !important;
  will-change: opacity, transform;
}

body .scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) !important;
  animation: none !important;
  filter: none !important;
  will-change: auto;
}

/* Desactivar sub-animaciones complejas del home para mantener linea institucional */
body.page-home #main .scroll-reveal *,
body.page-home #main .scroll-reveal.is-visible * {
  animation: none !important;
  filter: none !important;
}

/* Evita que elementos internos queden ocultos por reglas anteriores */
body.page-home #welcome.scroll-reveal h2,
body.page-home #welcome.scroll-reveal .image.fit,
body.page-home #welcome.scroll-reveal .col-8 p,
body.page-home #mission-vision-values.scroll-reveal .box.feature,
body.page-home #mission-vision-values.scroll-reveal .box.feature .icon.major,
body.page-home #inicio-escolar-2026.scroll-reveal .inicio-2026-head,
body.page-home #inicio-escolar-2026.scroll-reveal .inicio-2026-card,
body.page-home #inicio-escolar-2026.scroll-reveal .inicio-2026-hito,
body.page-home #inicio-escolar-2026.scroll-reveal .inicio-2026-footer,
body.page-home #diario-mural.scroll-reveal .mural-head,
body.page-home #diario-mural.scroll-reveal .slider-wrapper,
body.page-home #events.scroll-reveal .events-head,
body.page-home #events.scroll-reveal .events-grid li,
body.page-home #tour-virtual.scroll-reveal .tour-copy,
body.page-home #tour-virtual.scroll-reveal .tour-video-wrap,
body.page-home #gallery.scroll-reveal h2,
body.page-home #gallery.scroll-reveal .grid > div,
body.page-home #instagram-feed.scroll-reveal .instagram-header,
body.page-home #instagram-feed.scroll-reveal .instagram-feed-grid {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body .scroll-reveal,
  body .scroll-reveal.is-visible {
    transition: none !important;
  }
}

/* Failsafe visual: evitar pantalla en blanco si preload/reveal se quedan atascados */
body.is-preload.page-home #intro,
body.is-preload.page-home #intro:not(.hidden) + #header + #nav {
  opacity: 1 !important;
  transform: none !important;
}

body.is-preload .scroll-reveal,
body.is-preload .scroll-reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* Compatibilidad total: desactiva ocultamientos complejos previos */
body .scroll-reveal,
body .scroll-reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  filter: none !important;
}

body.page-home:not(.is-preload) #main.home-main > section {
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

/* Nueva animacion institucional compatible */
.salva-motion-enter {
  animation: salvaMotionEnter 0.52s var(--salva-motion-ease, cubic-bezier(0.24, 0.66, 0.28, 1)) both;
  animation-delay: var(--salva-delay, 0ms);
}

@keyframes salvaMotionEnter {
  from {
    opacity: 0.01;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Infraestructura: texto siempre visible y con contraste */
body.page-home #infraestructura .infra-content {
  z-index: 3 !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

body.page-home #infraestructura .infra-content h2,
body.page-home #infraestructura .infra-content p {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  color: #ffffff !important;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.66) !important;
}

/* ===== Temas de celebracion global (activados desde Nucleo) ===== */
body.theme-celebration {
  --celebration-overlay-a: rgba(255, 255, 255, 0.16);
  --celebration-overlay-b: rgba(255, 255, 255, 0.05);
  --celebration-overlay-strength: 0.78;
  --celebration-border: rgba(255, 255, 255, 0.46);
  --celebration-highlight: #ffffff;
  --celebration-ribbon-bg: rgba(8, 20, 40, 0.34);
  --celebration-ribbon-shadow: rgba(6, 16, 35, 0.28);
  --celebration-chip-bg: rgba(248, 252, 255, 0.84);
  --celebration-chip-border: rgba(255, 255, 255, 0.52);
  --celebration-chip-text: #163259;
  --celebration-float-opacity: 0.72;
  --celebration-accent-soft: rgba(255, 212, 97, 0.42);
  --celebration-accent-line: rgba(255, 255, 255, 0.34);
  --celebration-comic-ink: #163259;
  --celebration-comic-fill-a: rgba(251, 254, 255, 0.96);
  --celebration-comic-fill-b: rgba(240, 248, 255, 0.94);
  --celebration-comic-accent: #ffd155;
  --celebration-comic-pop: rgba(19, 45, 87, 0.25);
}

body.theme-celebration::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  opacity: var(--celebration-overlay-strength);
  background:
    radial-gradient(920px 520px at 8% -4%, var(--celebration-overlay-a), transparent 57%),
    radial-gradient(760px 560px at 98% 100%, var(--celebration-overlay-b), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%);
}

.celebration-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
  transform: translateZ(0);
}

.celebration-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  background:
    radial-gradient(circle at 12% 20%, var(--celebration-accent-line) 0 1px, transparent 2px),
    radial-gradient(circle at 24% 74%, var(--celebration-accent-line) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 34%, var(--celebration-accent-line) 0 1px, transparent 2px),
    radial-gradient(circle at 56% 82%, var(--celebration-accent-line) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 27%, var(--celebration-accent-line) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 64%, var(--celebration-accent-line) 0 1px, transparent 2px);
}

.celebration-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.celebration-orb {
  position: absolute;
  border-radius: 999px;
  background:
    radial-gradient(
      circle at 28% 28%,
      color-mix(in srgb, var(--celebration-highlight) 32%, transparent),
      transparent 34%
    ),
    radial-gradient(
      circle at 62% 66%,
      color-mix(in srgb, var(--celebration-accent-soft) 32%, transparent),
      transparent 58%
    ),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--celebration-overlay-a) 66%, transparent),
      color-mix(in srgb, var(--celebration-overlay-b) 58%, transparent)
    );
  border: 1px solid color-mix(in srgb, var(--celebration-chip-border) 26%, transparent);
  opacity: 0.26;
  animation: celebrationOrbDrift 38s ease-in-out infinite alternate;
}

.celebration-float {
  position: absolute;
  top: -12vh;
  user-select: none;
  will-change: transform, opacity;
  transform: translateZ(0);
  z-index: 1;
  opacity: var(--celebration-float-opacity);
  text-shadow: 0 1px 2px rgba(7, 18, 35, 0.24);
  font-weight: 600;
  animation-name: celebrationFloatDown;
  animation-timing-function: cubic-bezier(0.32, 0.06, 0.26, 0.99);
  animation-iteration-count: infinite;
}

@keyframes celebrationOrbDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(0.92);
  }
  52% {
    transform: translate3d(1vw, -0.6vh, 0) scale(1.02);
  }
  100% {
    transform: translate3d(-1.2vw, 0.9vh, 0) scale(1.06);
  }
}

@keyframes celebrationFloatDown {
  0% {
    transform: translate3d(0, -14vh, 0) rotate(0deg);
    opacity: 0;
  }
  18% {
    opacity: calc(var(--celebration-float-opacity) - 0.04);
  }
  52% {
    transform: translate3d(1.2vw, 54vh, 0) rotate(124deg);
    opacity: var(--celebration-float-opacity);
  }
  100% {
    transform: translate3d(-1.4vw, 112vh, 0) rotate(236deg);
    opacity: 0;
  }
}

body.theme-celebration #header,
body.theme-celebration #nav {
  border-top: none !important;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--celebration-overlay-a) 38%, transparent);
}

body.theme-celebration #header .logo,
body.theme-celebration #nav a {
  text-shadow: 0 1px 8px color-mix(in srgb, var(--celebration-highlight) 16%, transparent);
}

body.theme-celebration #header {
  overflow: visible;
}

body.theme-celebration #header.has-celebration-chip {
  overflow: visible;
}

body.theme-celebration .celebration-header-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  color: var(--celebration-chip-text);
  pointer-events: none;
  line-height: 1;
  z-index: 7;
}

body.theme-celebration .celebration-header-chip .chip-icon {
  width: 2.02rem;
  height: 2.02rem;
  border-radius: 0.72rem;
  display: grid;
  place-items: center;
  font-size: 0.98rem;
  border: 2px solid color-mix(in srgb, var(--celebration-comic-ink) 58%, transparent);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--celebration-comic-accent) 68%, #fff7c8),
    color-mix(in srgb, var(--celebration-comic-fill-a) 78%, #ffffff)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 4px 0 color-mix(in srgb, var(--celebration-comic-ink) 52%, transparent),
    0 10px 16px color-mix(in srgb, var(--celebration-comic-pop) 38%, transparent);
  transform: rotate(-7deg);
}

body.theme-celebration .celebration-header-chip .chip-copy {
  display: grid;
  gap: 0.19rem;
}

body.theme-celebration .celebration-header-chip .chip-kicker {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 0.43rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 1;
  color: color-mix(in srgb, var(--celebration-chip-text) 72%, #274b82);
}

body.theme-celebration .celebration-header-chip .chip-label {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 0.97rem;
  font-weight: 800;
  letter-spacing: 0.012em;
  color: var(--celebration-chip-text);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72), 0 2px 8px rgba(255, 255, 255, 0.28);
}

body.theme-celebration .celebration-header-chip.is-top-right,
body.theme-celebration .celebration-header-chip.is-home-intro-right {
  position: absolute;
  top: 1.12rem;
  right: 1.2rem;
  padding: 0.68rem 1.04rem 0.74rem;
  border-radius: 20px 30px 24px 18px;
  border: 3px solid color-mix(in srgb, var(--celebration-comic-ink) 86%, transparent);
  background:
    linear-gradient(
      135deg,
      var(--celebration-comic-fill-a),
      var(--celebration-comic-fill-b)
    ),
    radial-gradient(
      circle at 18% 20%,
      color-mix(in srgb, var(--celebration-comic-accent) 46%, transparent),
      transparent 60%
    ),
    repeating-radial-gradient(
      circle at 30% 34%,
      color-mix(in srgb, var(--celebration-comic-ink) 10%, transparent) 0 2px,
      transparent 2px 11px
    );
  box-shadow:
    0 6px 0 color-mix(in srgb, var(--celebration-comic-ink) 70%, transparent),
    0 16px 24px color-mix(in srgb, var(--celebration-ribbon-shadow) 40%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  max-width: min(44vw, 430px);
  transform-origin: right center;
  transform: rotate(-1.2deg);
  animation: celebrationHeaderChipPop 8.4s ease-in-out infinite;
}

body.theme-celebration .celebration-header-chip.is-top-right::before,
body.theme-celebration .celebration-header-chip.is-home-intro-right::before {
  content: "✦";
  position: absolute;
  top: -0.66rem;
  right: 0.78rem;
  width: 1.12rem;
  height: 1.12rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--celebration-comic-ink) 66%, transparent);
  background: linear-gradient(145deg, #fff3bf, #ffd56e);
  color: #8f5600;
  font-size: 0.68rem;
  line-height: 1;
  box-shadow:
    0 3px 0 color-mix(in srgb, var(--celebration-comic-ink) 68%, transparent),
    0 8px 12px color-mix(in srgb, var(--celebration-ribbon-shadow) 40%, transparent);
}

body.theme-celebration .celebration-header-chip.is-top-right::after,
body.theme-celebration .celebration-header-chip.is-home-intro-right::after {
  content: "";
  position: absolute;
  left: -0.52rem;
  bottom: -0.16rem;
  width: 0.84rem;
  height: 0.84rem;
  transform: rotate(40deg);
  border-left: 3px solid color-mix(in srgb, var(--celebration-comic-ink) 86%, transparent);
  border-bottom: 3px solid color-mix(in srgb, var(--celebration-comic-ink) 86%, transparent);
  background: var(--celebration-comic-fill-a);
  border-bottom-left-radius: 0.36rem;
}

body.page-home.theme-celebration #intro.has-celebration-chip {
  overflow: visible;
}

body.page-home.theme-celebration .celebration-header-chip.is-home-intro-right {
  top: 1.28rem;
  right: 1.34rem;
  max-width: min(42vw, 460px);
}

@keyframes celebrationHeaderChipPop {
  0% {
    transform: translateY(0) rotate(-1.2deg) scale(1);
  }
  48% {
    transform: translateY(-2px) rotate(0.7deg) scale(1.02);
  }
  100% {
    transform: translateY(0) rotate(-1.2deg) scale(1);
  }
}

body.theme-celebration .celebration-decorated {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--celebration-border) 28%, rgba(19, 43, 76, 0.16));
  box-shadow:
    0 12px 24px color-mix(in srgb, var(--celebration-ribbon-shadow) 18%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--celebration-chip-border) 34%, transparent);
  background-color: color-mix(in srgb, #ffffff 88%, transparent);
  background-image:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--celebration-overlay-a) 22%, transparent),
      transparent 42%
    ),
    radial-gradient(
      circle at 100% 0%,
      color-mix(in srgb, var(--celebration-overlay-b) 24%, transparent),
      transparent 64%
    ),
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--celebration-overlay-a) 20%, transparent) 0 10px,
      transparent 10px 24px
    );
}

body.theme-celebration .celebration-decorated::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      transparent,
      color-mix(in srgb, var(--celebration-highlight) 78%, transparent),
      transparent
    );
  opacity: 0.76;
}

body.theme-celebration .celebration-decorated::after {
  content: attr(data-celebration-icon);
  position: absolute;
  right: 0.84rem;
  top: 0.74rem;
  width: 1.96rem;
  height: 1.96rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.02rem;
  line-height: 1;
  border: 1.5px solid color-mix(in srgb, var(--celebration-chip-border) 68%, transparent);
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--celebration-comic-fill-a) 92%, transparent),
      color-mix(in srgb, var(--celebration-comic-fill-b) 86%, transparent)
    ),
    radial-gradient(
      circle at 32% 28%,
      color-mix(in srgb, var(--celebration-accent-soft) 36%, transparent),
      transparent 66%
    );
  box-shadow:
    0 2px 0 color-mix(in srgb, var(--celebration-comic-ink) 44%, transparent),
    0 8px 12px color-mix(in srgb, var(--celebration-ribbon-shadow) 26%, transparent);
  transform: rotate(7deg);
  opacity: 0.94;
}

body.theme-celebration .celebration-decorated[data-celebration-icon=""]::after {
  display: none;
}

body.theme-celebration .celebration-decorated > * {
  position: relative;
  z-index: 1;
}

body.theme-celebration .celebration-decorated :is(h1, h2, h3, h4):first-of-type {
  position: relative;
  padding-left: 1rem;
}

body.theme-celebration .celebration-decorated :is(h1, h2, h3, h4):first-of-type::before {
  content: var(--celebration-marker, "✦");
  position: absolute;
  left: 0;
  top: 0.1em;
  line-height: 1;
  font-size: 0.8em;
  color: color-mix(in srgb, var(--celebration-highlight) 64%, #5474a7);
  opacity: 0.82;
}

body.theme-celebration ul li::marker {
  color: color-mix(in srgb, var(--celebration-highlight) 42%, #46689e);
}

body.theme-easter-week {
  --celebration-overlay-a: rgba(248, 150, 196, 0.2);
  --celebration-overlay-b: rgba(144, 203, 255, 0.14);
  --celebration-border: rgba(247, 174, 211, 0.54);
  --celebration-highlight: #ffe1f0;
  --celebration-ribbon-bg: rgba(129, 66, 119, 0.33);
  --celebration-chip-bg: rgba(255, 240, 247, 0.36);
  --celebration-chip-border: rgba(255, 207, 231, 0.66);
  --celebration-chip-text: #6d2f5e;
  --celebration-accent-soft: rgba(255, 217, 148, 0.44);
  --celebration-accent-line: rgba(255, 234, 246, 0.44);
  --celebration-float-opacity: 0.7;
  --celebration-comic-ink: #7a3666;
  --celebration-comic-fill-a: rgba(255, 244, 252, 0.97);
  --celebration-comic-fill-b: rgba(230, 244, 255, 0.95);
  --celebration-comic-accent: #ffd985;
  --celebration-comic-pop: rgba(122, 54, 102, 0.34);
}

body.theme-student-day {
  --celebration-overlay-a: rgba(74, 141, 244, 0.2);
  --celebration-overlay-b: rgba(87, 226, 170, 0.14);
  --celebration-border: rgba(128, 190, 255, 0.58);
  --celebration-highlight: #dbe9ff;
  --celebration-ribbon-bg: rgba(37, 84, 138, 0.38);
  --celebration-chip-bg: rgba(227, 241, 255, 0.34);
  --celebration-chip-border: rgba(177, 216, 255, 0.62);
  --celebration-chip-text: #1b4d87;
  --celebration-accent-soft: rgba(255, 222, 112, 0.44);
  --celebration-accent-line: rgba(220, 238, 255, 0.44);
  --celebration-float-opacity: 0.76;
  --celebration-comic-ink: #1f4f8d;
  --celebration-comic-fill-a: rgba(238, 246, 255, 0.97);
  --celebration-comic-fill-b: rgba(225, 252, 245, 0.95);
  --celebration-comic-accent: #ffd857;
  --celebration-comic-pop: rgba(31, 79, 141, 0.34);
}

body.theme-teacher-day {
  --celebration-overlay-a: rgba(47, 125, 90, 0.2);
  --celebration-overlay-b: rgba(178, 146, 95, 0.14);
  --celebration-border: rgba(141, 193, 169, 0.5);
  --celebration-highlight: #e6fff1;
  --celebration-ribbon-bg: rgba(40, 88, 67, 0.36);
  --celebration-chip-bg: rgba(229, 255, 239, 0.3);
  --celebration-chip-border: rgba(182, 232, 202, 0.6);
  --celebration-chip-text: #1d5d46;
  --celebration-accent-soft: rgba(255, 219, 127, 0.42);
  --celebration-accent-line: rgba(219, 245, 232, 0.42);
  --celebration-float-opacity: 0.68;
  --celebration-comic-ink: #1f6448;
  --celebration-comic-fill-a: rgba(241, 255, 245, 0.97);
  --celebration-comic-fill-b: rgba(255, 247, 227, 0.95);
  --celebration-comic-accent: #ffcf59;
  --celebration-comic-pop: rgba(31, 100, 72, 0.32);
}

body.theme-english-week {
  --celebration-overlay-a: rgba(47, 91, 216, 0.2);
  --celebration-overlay-b: rgba(222, 66, 88, 0.16);
  --celebration-border: rgba(159, 190, 255, 0.58);
  --celebration-highlight: #e8efff;
  --celebration-ribbon-bg: rgba(30, 53, 122, 0.39);
  --celebration-chip-bg: rgba(229, 238, 255, 0.33);
  --celebration-chip-border: rgba(178, 203, 255, 0.66);
  --celebration-chip-text: #1c438d;
  --celebration-accent-soft: rgba(255, 212, 114, 0.44);
  --celebration-accent-line: rgba(222, 232, 255, 0.44);
  --celebration-float-opacity: 0.74;
  --celebration-comic-ink: #1e4696;
  --celebration-comic-fill-a: rgba(239, 245, 255, 0.97);
  --celebration-comic-fill-b: rgba(255, 238, 242, 0.95);
  --celebration-comic-accent: #ffd257;
  --celebration-comic-pop: rgba(30, 70, 150, 0.34);
}

body.theme-christmas {
  --celebration-overlay-a: rgba(216, 74, 74, 0.19);
  --celebration-overlay-b: rgba(50, 168, 109, 0.15);
  --celebration-border: rgba(255, 210, 189, 0.52);
  --celebration-highlight: #fff0ea;
  --celebration-ribbon-bg: rgba(106, 34, 41, 0.42);
  --celebration-chip-bg: rgba(255, 239, 230, 0.31);
  --celebration-chip-border: rgba(255, 214, 195, 0.68);
  --celebration-chip-text: #6a2433;
  --celebration-accent-soft: rgba(255, 224, 136, 0.44);
  --celebration-accent-line: rgba(255, 234, 219, 0.44);
  --celebration-float-opacity: 0.8;
  --celebration-comic-ink: #6d2030;
  --celebration-comic-fill-a: rgba(255, 245, 241, 0.97);
  --celebration-comic-fill-b: rgba(241, 255, 245, 0.95);
  --celebration-comic-accent: #ffd35b;
  --celebration-comic-pop: rgba(109, 32, 48, 0.34);
}

body.theme-vacation-mode {
  --celebration-overlay-a: rgba(255, 159, 67, 0.2);
  --celebration-overlay-b: rgba(52, 198, 235, 0.14);
  --celebration-border: rgba(255, 208, 134, 0.56);
  --celebration-highlight: #fff5dd;
  --celebration-ribbon-bg: rgba(132, 83, 34, 0.35);
  --celebration-chip-bg: rgba(255, 243, 219, 0.35);
  --celebration-chip-border: rgba(255, 219, 157, 0.66);
  --celebration-chip-text: #864f1c;
  --celebration-accent-soft: rgba(255, 228, 138, 0.44);
  --celebration-accent-line: rgba(255, 235, 198, 0.42);
  --celebration-float-opacity: 0.74;
  --celebration-comic-ink: #8f5520;
  --celebration-comic-fill-a: rgba(255, 248, 232, 0.97);
  --celebration-comic-fill-b: rgba(233, 250, 255, 0.95);
  --celebration-comic-accent: #ffd44e;
  --celebration-comic-pop: rgba(143, 85, 32, 0.34);
}

@media (max-width: 1180px) {
  body.theme-celebration .celebration-header-chip.is-top-right,
  body.theme-celebration .celebration-header-chip.is-home-intro-right {
    top: 0.86rem;
    left: 50%;
    right: auto;
    max-width: min(74vw, 340px);
    transform: translateX(-50%) rotate(-1deg);
    transform-origin: center top;
    z-index: 1;
    animation: none;
  }

  body.page-home.theme-celebration .celebration-header-chip.is-home-intro-right {
    top: 0.92rem;
    left: 50%;
    right: auto;
    max-width: min(78vw, 360px);
    transform: translateX(-50%) rotate(-1deg);
  }
}

@media (max-width: 920px) {
  .celebration-orb {
    display: none;
  }

  .celebration-float {
    opacity: calc(var(--celebration-float-opacity) - 0.14);
  }

  body.theme-celebration .celebration-header-chip .chip-icon {
    width: 1.58rem;
    height: 1.58rem;
    font-size: 0.78rem;
  }

  body.theme-celebration .celebration-header-chip .chip-kicker {
    font-size: 0.32rem;
  }

  body.theme-celebration .celebration-header-chip .chip-label {
    font-size: 0.7rem;
  }

  body.theme-celebration .celebration-header-chip.is-top-right,
  body.theme-celebration .celebration-header-chip.is-home-intro-right {
    top: 0.86rem;
    left: 50%;
    right: auto;
    padding: 0.5rem 0.72rem 0.54rem;
    max-width: min(68vw, 270px);
    border-radius: 12px 18px 16px 12px;
    border-width: 2px;
    transform: translateX(-50%) rotate(-0.85deg);
    transform-origin: center top;
    animation: none;
  }

  body.theme-celebration .celebration-header-chip {
    gap: 0.38rem;
  }

  body.theme-celebration .celebration-header-chip.is-top-right::before,
  body.theme-celebration .celebration-header-chip.is-home-intro-right::before {
    top: -0.55rem;
    right: 0.52rem;
    width: 1.02rem;
    height: 1.02rem;
    font-size: 0.64rem;
    border-width: 1.8px;
  }

  body.theme-celebration .celebration-header-chip.is-top-right::after,
  body.theme-celebration .celebration-header-chip.is-home-intro-right::after {
    left: -0.38rem;
    width: 0.74rem;
    height: 0.74rem;
    border-left-width: 2px;
    border-bottom-width: 2px;
  }

  body.page-home.theme-celebration .celebration-header-chip.is-home-intro-right {
    top: 0.82rem;
    left: 50%;
    right: auto;
    max-width: min(72vw, 290px);
    transform: translateX(-50%) rotate(-0.85deg);
  }

  body.theme-celebration .celebration-decorated::before {
    left: 12%;
    right: 12%;
  }

  body.theme-celebration .celebration-decorated::after {
    width: 1.58rem;
    height: 1.58rem;
    top: 0.56rem;
    right: 0.58rem;
    font-size: 0.82rem;
  }

  body.theme-celebration .celebration-decorated :is(h1, h2, h3, h4):first-of-type {
    padding-left: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .celebration-layer,
  .celebration-orb,
  .celebration-float {
    animation: none !important;
  }

  .celebration-layer {
    display: none;
  }

  body.theme-celebration::before {
    opacity: 0.5;
  }

  body.theme-celebration .celebration-header-chip.is-top-right,
  body.theme-celebration .celebration-header-chip.is-home-intro-right {
    animation: none !important;
  }
}
