@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Merriweather:wght@700&display=swap');

:root {
  --epr-blue-900: #123d86;
  --epr-blue-800: #1c4d9d;
  --epr-blue-700: #2b63b7;
  --epr-blue-050: #edf4ff;
  --epr-yellow-600: #efbc22;
  --epr-yellow-500: #f6ca3a;
  --epr-yellow-300: #ffe38a;
  --epr-yellow-100: #fff6cf;
  --epr-sand: #fff9e8;
  --epr-ink: #15253e;
  --epr-muted: #5c6f88;
  --epr-line: rgba(18, 61, 134, 0.14);
  --epr-shadow: 0 20px 45px rgba(18, 61, 134, 0.12);
  --epr-radius-xl: 32px;
  --epr-radius-lg: 24px;
  --epr-radius-md: 18px;
  --epr-max: 1180px;
  --epr-hero-image: url('https://losboricuas.cl/wp-content/uploads/2026/04/colegio-fondo.png');
}

.epr-institutional-page article > h1 {
  display: none;
}

body.wp-theme-bricks {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--epr-ink);
  background:
    radial-gradient(circle at top left, rgba(246, 202, 58, 0.34), transparent 26%),
    radial-gradient(circle at top right, rgba(43, 99, 183, 0.14), transparent 24%),
    linear-gradient(180deg, #fffdf5 0%, #fff8dd 42%, #f6f9ff 100%);
}

.epr-page {
  width: 100%;
}

.epr-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 231, 0.92);
  border-bottom: 1px solid rgba(18, 61, 134, 0.08);
}

.epr-topbar__inner,
.epr-section,
.epr-footer__inner {
  width: min(calc(100% - 32px), var(--epr-max));
  margin: 0 auto;
}

.epr-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.epr-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--epr-ink);
}

.epr-brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(10, 54, 119, 0.16);
}

.epr-brand__eyebrow {
  display: block;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--epr-muted);
}

.epr-brand__name {
  display: block;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
}

.epr-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.epr-nav a,
.epr-inline-link {
  color: var(--epr-blue-900);
  text-decoration: none;
}

.epr-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 21px;
  font-weight: 700;
  white-space: nowrap;
}

.epr-nav a:hover,
.epr-nav a:focus-visible {
  background: rgba(246, 202, 58, 0.22);
}

.epr-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 0 8px;
}

.epr-hero::before {
  content: "";
  position: absolute;
  inset: 8px 0 auto;
  width: min(100% - 12px, 1360px);
  height: 88%;
  margin: 0 auto;
  left: 0;
  right: 0;
  border-radius: 36px;
  background:
    linear-gradient(rgba(18, 61, 134, 0.26), rgba(18, 61, 134, 0.28)),
    var(--epr-hero-image, linear-gradient(135deg, rgba(246, 202, 58, 0.98), rgba(255, 226, 122, 0.96) 32%, rgba(29, 80, 159, 0.96) 88%));
  background-size: cover;
  background-position: center;
  box-shadow: var(--epr-shadow);
}

.epr-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  color: #fff;
  min-height: 470px;
  padding: 32px 0 10px;
  text-align: center;
  max-width: 1180px;
}

.epr-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(18, 61, 134, 0.12);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.epr-hero h1,
.epr-section h2,
.epr-banner h2,
.epr-footer__inner h2 {
  font-family: "Merriweather", Georgia, serif;
}

.epr-hero h1 {
  margin: 0;
  font-size: clamp(48px, 6.2vw, 93px);
  line-height: 0.98;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.epr-hero p,
.epr-section p,
.epr-card p,
.epr-news-card p {
  font-size: 16px;
  line-height: 1.75;
  color: inherit;
}

.epr-hero__lead {
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.94);
}

.epr-hero p:not(.epr-chip):not(.epr-hero__lead) {
  max-width: 66ch;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.92);
}

.epr-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 30px;
  justify-content: center;
}

.epr-hero-actions {
  padding-top: 0;
}

.epr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.epr-button:hover,
.epr-button:focus-visible {
  transform: translateY(-1px);
}

.epr-button--primary {
  color: #fff;
  background: var(--epr-blue-900);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.epr-button--secondary {
  color: var(--epr-blue-900);
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(18, 61, 134, 0.18);
}

.epr-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.epr-stat {
  min-height: 170px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(18, 61, 134, 0.12);
  color: var(--epr-blue-900);
  box-shadow: 0 12px 28px rgba(18, 61, 134, 0.08);
  display: flex;
  align-items: stretch;
}

.epr-stat__top {
  width: 100%;
  display: grid;
  gap: 12px;
  align-content: start;
}

.epr-stat__copy {
  display: grid;
  gap: 6px;
}

.epr-stat strong {
  display: block;
  margin-bottom: 0;
  font-size: 19px;
  line-height: 1.06;
}

.epr-stat span {
  font-size: 14px;
  color: rgba(18, 61, 134, 0.82);
  line-height: 1.4;
}

.epr-stat__media {
  width: 100%;
  max-width: 88px;
  height: auto;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 12px 28px rgba(9, 29, 62, 0.16);
}

.epr-stat__icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 22px;
  font-weight: 800;
}

.epr-stat--sned {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.38), transparent 22%),
    linear-gradient(145deg, #fff9eb 0%, #fff 34%, #f5f8ff 100%);
  border-color: rgba(20, 61, 122, 0.14);
  box-shadow: 0 20px 40px rgba(18, 61, 134, 0.12);
}

.epr-stat--sned .epr-stat__top {
  grid-template-columns: 88px 1fr;
  align-items: center;
}

.epr-stat--sned .epr-stat__copy strong {
  font-family: "Merriweather", Georgia, serif;
  font-size: 20px;
  color: #123d86;
}

.epr-stat--sned .epr-stat__copy span {
  color: rgba(18, 61, 134, 0.74);
}

.epr-stat--levels {
  background: linear-gradient(180deg, #ffffff 0%, #fef5d8 100%);
}

.epr-stat--levels .epr-stat__icon {
  background: linear-gradient(135deg, #ffe48e, #f7c83c);
  color: #123d86;
  box-shadow: 0 12px 26px rgba(246, 202, 58, 0.26);
}

.epr-stat--jec {
  background: linear-gradient(180deg, #ffffff 0%, #edf6ff 100%);
}

.epr-stat--jec .epr-stat__icon {
  background: linear-gradient(135deg, #cfe3ff, #8cb7ef);
  color: #123d86;
  box-shadow: 0 12px 26px rgba(28, 77, 157, 0.18);
}

.epr-hero__visual {
  display: none;
}

.epr-hero .epr-section > div:first-child {
  padding-top: 10px;
}

.epr-hero__card {
  position: relative;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 250, 231, 0.95), rgba(255,255,255,0.9));
  border: 1px solid rgba(18, 61, 134, 0.12);
  padding: 28px;
  box-shadow: 0 22px 50px rgba(5, 24, 56, 0.24);
}

.epr-hero__logo {
  display: block;
  width: min(100%, 360px);
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  padding: 14px;
}

.epr-hero__list {
  display: grid;
  gap: 12px;
}

.epr-hero__item {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(246, 202, 58, 0.18);
  color: var(--epr-ink);
}

.epr-hero__item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.epr-section {
  padding: 46px 0;
}

.epr-section h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.06;
  color: var(--epr-blue-900);
}

.epr-section__intro {
  max-width: 72ch;
  margin-bottom: 26px;
  color: var(--epr-muted);
}

.epr-split,
.epr-levels,
.epr-grid-3,
.epr-grid-2,
.epr-phrases,
.epr-gallery,
.epr-contact-grid,
.epr-news-grid {
  display: grid;
  gap: 22px;
}

.epr-split {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.epr-grid-3,
.epr-phrases,
.epr-gallery,
.epr-news-grid,
.epr-instagram-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.epr-instagram-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.epr-instagram-profile img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid rgba(246, 202, 58, 0.34);
  box-shadow: 0 10px 24px rgba(18, 61, 134, 0.16);
}

.epr-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 22px;
}

.epr-mini-stat {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,249,224,0.96), rgba(255,255,255,0.96));
  border: 1px solid var(--epr-line);
  text-align: center;
}

.epr-mini-stat strong {
  display: block;
  font-size: 18px;
  color: var(--epr-blue-900);
}

.epr-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.epr-tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(246, 202, 58, 0.18);
  color: var(--epr-blue-900);
  font-size: 14px;
  font-weight: 800;
}

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

.epr-card,
.epr-banner,
.epr-contact-card,
.epr-news-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--epr-radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--epr-line);
  box-shadow: var(--epr-shadow);
}

.epr-card,
.epr-contact-card,
.epr-news-card {
  padding: 26px;
}

.epr-card h3,
.epr-banner h2,
.epr-contact-card h3,
.epr-news-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--epr-blue-900);
}

.epr-card--tinted {
  background: linear-gradient(180deg, #fff7d7 0%, #fffdf5 100%);
}

.epr-card--blue {
  background:
    linear-gradient(180deg, rgba(246, 202, 58, 0.96), rgba(241, 190, 28, 0.96));
  color: var(--epr-blue-900);
}

.epr-card--blue p,
.epr-card--blue h3,
.epr-card--blue a {
  color: var(--epr-blue-900);
}

.epr-card--poster {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.34), transparent 24%),
    linear-gradient(135deg, #2159af 0%, #1b4b95 38%, #f5c52f 140%);
  color: #fff;
}

.epr-card--poster h3,
.epr-card--poster p {
  color: #fff;
}

.epr-card--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(10, 54, 119, 0.08), rgba(246, 198, 64, 0.22)),
    #fff;
  min-height: 320px;
}

.epr-card--logo img {
  width: min(100%, 260px);
}

.epr-banner {
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.32), transparent 22%),
    radial-gradient(circle at bottom left, rgba(29,80,159,0.18), transparent 20%),
    linear-gradient(135deg, rgba(247, 206, 66, 0.98), rgba(244, 190, 31, 0.97));
  color: var(--epr-blue-900);
}

.epr-banner h2,
.epr-banner p,
.epr-banner .epr-chip {
  color: var(--epr-blue-900);
}

.epr-banner .epr-chip {
  background: rgba(18, 61, 134, 0.08);
}

.epr-level-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  color: var(--epr-blue-900);
}

.epr-life-card {
  min-height: 180px;
  background:
    linear-gradient(180deg, rgba(255,251,236,0.98), rgba(255,255,255,0.98));
}

.epr-gallery__item {
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(18, 61, 134, 0.08), rgba(18, 61, 134, 0.78)),
    linear-gradient(135deg, rgba(246, 202, 58, 0.98), rgba(27, 75, 149, 0.94));
}

.epr-gallery__item--photo {
  background-size: cover;
  background-position: center;
}

.epr-gallery-section--compact {
  padding-top: 0;
}

.epr-gallery-section--compact .epr-gallery {
  gap: 16px;
}

.epr-gallery-section--compact .epr-gallery__item {
  min-height: 220px;
  padding: 18px;
}

.epr-gallery-section--compact .epr-gallery__item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.epr-gallery-section--compact .epr-gallery__item p {
  font-size: 15px;
  line-height: 1.45;
}

.epr-gallery__item--soft {
  background:
    linear-gradient(180deg, rgba(18, 61, 134, 0.06), rgba(18, 61, 134, 0.84)),
    linear-gradient(135deg, rgba(20, 71, 142, 0.72), rgba(246, 202, 58, 0.98));
}

.epr-gallery__item--light {
  color: var(--epr-ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.95)),
    linear-gradient(135deg, rgba(255, 226, 122, 0.94), rgba(255,255,255,0.92));
}

.epr-gallery__item h3,
.epr-gallery__item p {
  color: inherit;
}

.epr-phrase {
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 251, 234, 0.92), rgba(255,255,255,0.92));
  border: 1px solid var(--epr-line);
  text-align: center;
  box-shadow: var(--epr-shadow);
  font-weight: 800;
  color: var(--epr-blue-900);
}

.epr-news-card a {
  color: inherit;
  text-decoration: none;
}

.epr-video-wrap {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--epr-line);
  box-shadow: var(--epr-shadow);
}

.epr-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 680px;
  background: #000;
}

.epr-news-link {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 800;
  color: var(--epr-blue-800);
}

.epr-news-card--empty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #fffdf7 0%, #fff 100%);
}

.epr-contact-card {
  min-height: 100%;
}

.epr-contact-list {
  display: grid;
  gap: 12px;
}

.epr-contact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
}

.epr-contact-row strong {
  color: var(--epr-blue-900);
}

.epr-note {
  margin-top: 16px;
  color: var(--epr-muted);
  font-size: 15px;
}

.epr-footer {
  padding: 20px 0 48px;
}

.epr-footer__inner {
  padding: 28px 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, #f2be2a, #efc949 46%, #1a4b95 160%);
  color: rgba(18, 61, 134, 0.92);
  box-shadow: var(--epr-shadow);
}

.epr-footer__inner h2 {
  margin: 0 0 10px;
  color: var(--epr-blue-900);
  font-size: clamp(27px, 2.8vw, 40px);
}

.epr-footer__inner p {
  margin: 0;
}

.epr-matricula {
  width: min(calc(100% - 32px), 880px);
  margin: 40px auto;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--epr-line);
  box-shadow: var(--epr-shadow);
}

.epr-matricula fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.epr-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.epr-form-group {
  display: grid;
  gap: 8px;
}

.epr-form-group--full {
  grid-column: 1 / -1;
}

.epr-matricula label {
  font-weight: 700;
  color: var(--epr-blue-900);
}

.epr-matricula input,
.epr-matricula select,
.epr-matricula textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(10, 54, 119, 0.14);
  background: #f8fbff;
  color: var(--epr-ink);
}

.epr-matricula textarea {
  min-height: 130px;
  resize: vertical;
}

@media (max-width: 980px) {
  .epr-hero__grid,
  .epr-split,
  .epr-grid-3,
  .epr-grid-2,
  .epr-levels,
  .epr-phrases,
  .epr-gallery,
  .epr-contact-grid,
  .epr-news-grid,
  .epr-instagram-grid,
  .epr-mini-stats {
    grid-template-columns: 1fr;
  }

  .epr-hero::before {
    width: calc(100% - 16px);
    inset: 14px 8px auto;
    height: calc(100% - 24px);
  }

  .epr-topbar__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .epr-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .epr-stat-row,
  .epr-form-grid {
    grid-template-columns: 1fr;
  }

  .epr-stat--sned .epr-stat__top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .epr-topbar__inner,
  .epr-section,
  .epr-footer__inner,
  .epr-matricula {
    width: min(calc(100% - 20px), var(--epr-max));
  }

  .epr-topbar__inner {
    padding: 12px 0;
  }

  .epr-nav a {
    padding: 10px 12px;
    font-size: 17px;
  }

  .epr-hero {
    padding-top: 16px;
  }

  .epr-hero__grid {
    min-height: 420px;
    padding-top: 26px;
  }

  .epr-card,
  .epr-banner,
  .epr-contact-card,
  .epr-news-card,
  .epr-footer__inner,
  .epr-matricula {
    padding: 22px;
  }

  .epr-contact-row {
    grid-template-columns: 1fr;
  }
}
