/*
Theme Name: CEB Castillo de Luz
Theme URI: https://cebcastillodeluz.com/
Author: CEB Castillo de Luz
Author URI: https://cebcastillodeluz.com/
Description: Tema editable para escuela, prekinder, primaria, guarderia y after school con selector de sedes, inicio de clases y actividades.
Version: 1.1.3
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: cebcastillo
*/

:root {
  --cdl-sky: #eaf8ff;
  --cdl-sky-strong: #99dbff;
  --cdl-blue: #2d8fd6;
  --cdl-blue-dark: #11669f;
  --cdl-sun: #ffd45d;
  --cdl-gold: #f5aa2e;
  --cdl-pink: #ff8fba;
  --cdl-green: #52b788;
  --cdl-footer-bg: #11669f;
  --cdl-ink: #26324a;
  --cdl-muted: #667085;
  --cdl-card: #ffffff;
  --cdl-border: #d8ecf7;
  --cdl-shadow: 0 20px 55px rgba(45, 143, 214, .16);
  --cdl-radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cdl-ink);
  background: linear-gradient(180deg, var(--cdl-sky), #fffaf0 62%, #fff);
  font-family: "Nunito", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cdl-container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.cdl-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--cdl-border);
  backdrop-filter: blur(16px);
}

.cdl-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.cdl-brand img {
  max-height: 58px;
  width: auto;
}

.cdl-brand__mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--cdl-blue);
  border: 3px solid #fff;
  border-radius: 18px 18px 12px 12px;
  box-shadow: 0 10px 24px rgba(45, 143, 214, .2);
  font-size: 1.55rem;
  font-weight: 950;
}

.cdl-brand__text {
  display: grid;
  line-height: 1.1;
}

.cdl-brand__name {
  color: var(--cdl-blue-dark);
  font-size: 1.12rem;
  font-weight: 950;
}

.cdl-brand__tagline {
  color: var(--cdl-muted);
  font-size: .82rem;
  font-weight: 800;
}

.cdl-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cdl-menu,
.cdl-menu ul {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cdl-menu a {
  color: var(--cdl-ink);
  font-size: .95rem;
  font-weight: 900;
  text-decoration: none;
}

.cdl-menu a:hover,
.cdl-menu .current-menu-item > a {
  color: var(--cdl-blue);
}

.cdl-button,
.wp-block-button__link,
button.cdl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--cdl-gold);
  color: #2b2107;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(245, 170, 46, .28);
  cursor: pointer;
}

.cdl-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
}

.cdl-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  color: #fff;
  background: #25d366;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(37, 211, 102, .32);
  font-weight: 950;
  text-decoration: none;
}

.cdl-whatsapp:hover {
  transform: translateY(-2px);
}

.cdl-whatsapp__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #075e54;
  background: #fff;
  border-radius: 999px;
  font-size: .75rem;
  letter-spacing: 0;
}

.cdl-whatsapp__label {
  white-space: nowrap;
}

.cdl-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cdl-border);
  border-radius: 14px;
  background: #fff;
}

.cdl-menu-toggle span,
.cdl-menu-toggle::before,
.cdl-menu-toggle::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--cdl-ink);
}

.cdl-menu-toggle::before {
  transform: translateY(-7px);
}

.cdl-menu-toggle::after {
  transform: translateY(7px);
}

.cdl-page {
  padding: 72px 0;
}

.cdl-content {
  max-width: 980px;
  margin-inline: auto;
}

.cdl-entry-title {
  margin: 0 0 26px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.cdl-front-editable > *:first-child {
  margin-top: 0;
}

.cdl-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 88px 0;
}

.cdl-hero::before,
.cdl-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  filter: blur(.2px);
  animation: cdl-float 9s ease-in-out infinite;
}

.cdl-hero::before {
  width: 190px;
  height: 62px;
  left: 8%;
  top: 14%;
  box-shadow: 48px -18px 0 4px rgba(255, 255, 255, .72), 92px 4px 0 -4px rgba(255, 255, 255, .78);
}

.cdl-hero::after {
  width: 150px;
  height: 48px;
  right: 8%;
  top: 24%;
  animation-delay: -3s;
  box-shadow: 42px -14px 0 2px rgba(255, 255, 255, .72), 72px 6px 0 -6px rgba(255, 255, 255, .78);
}

.cdl-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  display: grid;
  gap: 32px;
}

.cdl-hero__head {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.cdl-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 13px;
  color: var(--cdl-blue-dark);
  background: #fff;
  border: 1px solid var(--cdl-border);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.cdl-hero h1,
.cdl-editor-hero h1 {
  margin: 14px 0 14px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: .96;
  letter-spacing: 0;
}

.cdl-hero p,
.cdl-editor-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--cdl-muted);
  font-size: 1.16rem;
}

.cdl-campus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.cdl-campus-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: 28px;
  color: #fff;
  text-decoration: none;
  background: var(--cdl-blue);
  border: 6px solid #fff;
  border-radius: 30px;
  box-shadow: var(--cdl-shadow);
  isolation: isolate;
}

.cdl-campus-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.cdl-campus-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 70, 120, .08), rgba(12, 53, 93, .8));
}

.cdl-campus-card:hover img {
  transform: scale(1.06);
}

.cdl-campus-card__icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--cdl-blue-dark);
  background: #fff;
  border-radius: 24px;
  font-size: 2rem;
}

.cdl-campus-card h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.cdl-campus-card p {
  max-width: 460px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .9);
  font-size: 1.02rem;
  font-weight: 750;
}

.cdl-campus-card span:last-child {
  width: fit-content;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 16px;
  color: #2b2107;
  background: var(--cdl-sun);
  border-radius: 999px;
  font-weight: 950;
}

.cdl-butterfly {
  position: absolute;
  z-index: 1;
  width: 38px;
  height: 28px;
  pointer-events: none;
  animation: cdl-butterfly 8s ease-in-out infinite;
}

.cdl-butterfly::before,
.cdl-butterfly::after {
  content: "";
  position: absolute;
  width: 21px;
  height: 25px;
  background: var(--cdl-pink);
  border-radius: 70% 40% 70% 40%;
  transform-origin: bottom center;
}

.cdl-butterfly::before {
  left: 0;
  transform: rotate(-24deg);
}

.cdl-butterfly::after {
  right: 0;
  transform: rotate(24deg) scaleX(-1);
  background: var(--cdl-sun);
}

.cdl-butterfly--one {
  left: 8%;
  bottom: 18%;
}

.cdl-butterfly--two {
  right: 12%;
  bottom: 42%;
  animation-delay: -2.4s;
}

.cdl-editor-section,
.cdl-resources,
.cdl-activities {
  width: min(1180px, calc(100% - 32px));
  margin: 70px auto;
}

.cdl-section-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.cdl-section-head h2,
.cdl-editor-section h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1;
}

.cdl-section-head p,
.cdl-editor-section p {
  color: var(--cdl-muted);
}

.cdl-program-grid,
.cdl-resource-grid,
.cdl-activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cdl-program-card,
.cdl-resource-card,
.cdl-activity-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--cdl-border);
  border-radius: var(--cdl-radius);
  box-shadow: 0 16px 40px rgba(45, 143, 214, .1);
}

.cdl-program-card {
  padding: 26px;
}

.cdl-program-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cdl-blue-dark);
  font-size: 1.22rem;
}

.cdl-program-card span {
  color: var(--cdl-muted);
}

.cdl-trust-strip,
.cdl-admission-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 70px auto;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--cdl-border);
  border-radius: 30px;
  box-shadow: var(--cdl-shadow);
}

.cdl-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cdl-trust-item {
  padding: 18px;
  background: #f7fcff;
  border: 1px solid var(--cdl-border);
  border-radius: 22px;
}

.cdl-trust-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--cdl-blue-dark);
  font-size: 1.05rem;
}

.cdl-trust-item span {
  color: var(--cdl-muted);
  font-size: .94rem;
}

.cdl-admission-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
}

.cdl-admission-panel img {
  width: 100%;
  border-radius: 24px;
  background: var(--cdl-sky);
}

.cdl-step-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.cdl-step-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: #fffaf0;
  border: 1px solid #f3e5bd;
  border-radius: 18px;
}

.cdl-step-list b {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #2b2107;
  background: var(--cdl-sun);
  border-radius: 14px;
}

.cdl-step-list strong {
  display: block;
  color: var(--cdl-blue-dark);
}

.cdl-step-list span {
  color: var(--cdl-muted);
}

.cdl-resource-card img,
.cdl-activity-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f0f8ff;
}

.cdl-resource-card__body,
.cdl-activity-card__body {
  padding: 20px;
}

.cdl-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  color: var(--cdl-blue-dark);
  background: #eef8ff;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.cdl-resource-card h3,
.cdl-activity-card h3 {
  margin: 10px 0 8px;
  font-size: 1.32rem;
  line-height: 1.18;
}

.cdl-resource-card p,
.cdl-activity-card p {
  margin: 0;
  color: var(--cdl-muted);
}

.cdl-editor-hero,
.cdl-editor-card,
.cdl-editor-campus {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--cdl-shadow);
}

.cdl-editor-hero {
  min-height: 560px;
  display: grid;
  place-items: center;
  color: var(--cdl-ink);
  background: var(--cdl-sky);
}

.cdl-editor-card,
.cdl-editor-campus {
  min-height: 250px;
}

.cdl-editor-card .wp-block-cover__inner-container,
.cdl-editor-campus .wp-block-cover__inner-container {
  color: #fff;
}

.cdl-footer {
  color: #dff6ff;
  background: var(--cdl-footer-bg);
}

.cdl-footer__main {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding: 48px 0;
}

.cdl-footer h3 {
  color: #fff;
}

.cdl-footer a {
  color: #fff;
}

.cdl-footer ul,
.cdl-footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cdl-footer li {
  margin: 8px 0;
}

.cdl-footer__bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: #dff6ff;
}

@keyframes cdl-float {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(18px, -12px, 0);
  }
}

@keyframes cdl-butterfly {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-4deg);
  }
  50% {
    transform: translate3d(18px, -18px, 0) rotate(9deg);
  }
}

@media (max-width: 980px) {
  .cdl-header__inner {
    min-height: 74px;
  }

  .cdl-menu-toggle {
    display: inline-flex;
  }

  .cdl-nav {
    position: absolute;
    inset-inline: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--cdl-border);
    border-radius: 18px;
    box-shadow: var(--cdl-shadow);
  }

  .cdl-nav.is-open {
    display: flex;
  }

  .cdl-menu,
  .cdl-menu ul,
  .cdl-campus-grid,
  .cdl-program-grid,
  .cdl-resource-grid,
  .cdl-activity-grid,
  .cdl-trust-strip,
  .cdl-admission-panel,
  .cdl-footer__main,
  .cdl-editor-section .wp-block-columns {
    grid-template-columns: 1fr;
    display: grid;
    gap: 18px;
  }

  .cdl-menu a {
    display: block;
    padding: 10px 2px;
    font-size: 1.06rem;
  }

  .cdl-campus-card {
    min-height: 360px;
  }

  .cdl-hero {
    min-height: auto;
    padding: 72px 0;
  }

  .cdl-footer__main {
    padding: 38px 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .cdl-container,
  .cdl-hero__inner,
  .cdl-editor-section,
  .cdl-resources,
  .cdl-activities {
    width: min(100% - 24px, 1180px);
  }

  .cdl-header__inner {
    min-height: 68px;
    gap: 10px;
  }

  .cdl-brand__mark {
    width: 48px;
    height: 48px;
    border-radius: 16px 16px 10px 10px;
    font-size: 1.25rem;
  }

  .cdl-brand__text {
    display: none;
  }

  .cdl-hero {
    min-height: auto;
    padding: 54px 0 42px;
  }

  .cdl-hero__inner {
    gap: 20px;
  }

  .cdl-hero h1,
  .cdl-editor-hero h1 {
    font-size: clamp(2.05rem, 12vw, 3.25rem);
  }

  .cdl-hero p,
  .cdl-editor-hero p {
    font-size: 1rem;
  }

  .cdl-hero::before {
    left: -24px;
    top: 24px;
    transform: scale(.72);
  }

  .cdl-hero::after {
    right: -42px;
    top: 140px;
    transform: scale(.72);
  }

  .cdl-campus-card {
    min-height: 300px;
    padding: 20px;
    border-width: 4px;
    border-radius: 24px;
  }

  .cdl-campus-card__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    border-radius: 18px;
    font-size: 1.35rem;
  }

  .cdl-campus-card h2 {
    font-size: clamp(1.85rem, 10vw, 2.7rem);
  }

  .cdl-campus-card p {
    font-size: .96rem;
  }

  .cdl-campus-card span:last-child,
  .cdl-button,
  .wp-block-button__link,
  button.cdl-button {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    text-align: center;
  }

  .cdl-editor-section,
  .cdl-resources,
  .cdl-activities {
    margin: 42px auto;
  }

  .cdl-section-head h2,
  .cdl-editor-section h2 {
    font-size: clamp(1.85rem, 10vw, 2.8rem);
  }

  .cdl-program-card,
  .cdl-trust-strip,
  .cdl-admission-panel,
  .cdl-resource-card__body,
  .cdl-activity-card__body {
    padding: 18px;
  }

  .cdl-editor-hero {
    min-height: 430px !important;
    border-radius: 22px;
  }

  .cdl-editor-card,
  .cdl-editor-campus {
    min-height: 220px;
    border-radius: 22px;
  }

  .cdl-footer__main {
    gap: 18px;
    padding: 32px 0;
  }

  .cdl-footer__bottom {
    font-size: .86rem;
  }

  .cdl-whatsapp {
    right: 14px;
    bottom: 14px;
    min-height: 54px;
    padding: 8px;
  }

  .cdl-whatsapp__label {
    display: none;
  }
}

@media (max-width: 390px) {
  .cdl-container,
  .cdl-hero__inner,
  .cdl-editor-section,
  .cdl-resources,
  .cdl-activities {
    width: min(100% - 18px, 1180px);
  }

  .cdl-campus-card {
    min-height: 285px;
    padding: 18px;
  }

  .cdl-kicker {
    font-size: .72rem;
  }

  .cdl-chip {
    font-size: .7rem;
  }
}
