/* ==========================================================================
   IMS Home — International Montessori School
   Organic, botanical, handcrafted Montessori aesthetic.
   ========================================================================== */

:root {
    --ims-cream: #F4EEDB;
    --ims-ivory: #FAF5E6;
    --ims-sand:  #EADFC4;
    --ims-blush: #F2DDD0;
    --ims-rose:  #E6BFAC;
    --ims-terracotta: #C47653;
    --ims-terracotta-dark: #A85B3C;
    --ims-sage:  #A8BE8C;
    --ims-sage-mid: #8FA87A;
    --ims-sage-dark: #6B8E63;
    --ims-brown: #5A3E2A;
    --ims-brown-mid: #6B4A2B;
    --ims-brown-light: #8B6A48;
    --ims-brown-footer: #9A7050;
    --ims-brown-footer-dark: #7F5A3E;
    --ims-ink: #2E2015;
    --ims-mute: #6E5B48;
    --ims-ochre: #D9A441;

    --ims-font-serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
    --ims-font-sans:  'Nunito', system-ui, -apple-system, sans-serif;
    --ims-font-script: 'Caveat', cursive;

    --ims-radius: 28px;
    --ims-shadow-soft: 0 14px 40px rgba(90, 62, 42, 0.12);
    --ims-shadow-card: 0 10px 30px rgba(90, 62, 42, 0.10);
    --ims-shadow-hover: 0 20px 50px rgba(90, 62, 42, 0.18);
    --ims-max: 1200px;
}

/* ---------- Reset some hello-elementor overrides ------------------------ */
html, body { margin: 0; padding: 0; }
body.ims-home {
    background: var(--ims-cream);
    color: var(--ims-ink);
    font-family: var(--ims-font-sans);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.ims-home * { box-sizing: border-box; }
.ims-home img { max-width: 100%; height: auto; display: block; }
.ims-home a { color: var(--ims-terracotta-dark); text-decoration: none; }
.ims-home a:hover { color: var(--ims-brown); }
.ims-home h1, .ims-home h2, .ims-home h3 {
    font-family: var(--ims-font-serif);
    color: var(--ims-brown);
    margin: 0 0 0.4em 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.ims-home p { margin: 0 0 1em 0; }

.ims-container { max-width: var(--ims-max); margin: 0 auto; padding: 0 28px; position: relative; }

/* ---------- Decorative botanical layer (absolute leaves, sprigs) ------- */
.ims-deco {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    opacity: 0.9;
}
.ims-deco svg { width: 100%; height: 100%; display: block; }
.ims-deco--behind { z-index: 0; opacity: 0.7; }

/* =========================================================================
   HEADER
   ========================================================================= */
.ims-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ims-ivory);
    padding: 14px 0;
    box-shadow: 0 2px 20px rgba(90, 62, 42, 0.06);
}
.ims-header__inner {
    max-width: var(--ims-max);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
}
.ims-header__blob {
    position: absolute;
    right: -30px;
    top: -14px;
    width: 60%;
    height: calc(100% + 28px);
    z-index: 0;
    opacity: 0.8;
}
.ims-header__blob svg { width: 100%; height: 100%; }

.ims-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
    text-decoration: none;
}
.ims-logo__mark { width: 52px; height: 60px; }
.ims-logo__mark svg { width: 100%; height: 100%; }
.ims-logo__wordmark { display: flex; flex-direction: column; line-height: 1; }
.ims-logo__name {
    font-family: var(--ims-font-serif);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ims-brown);
}
.ims-logo__tagline {
    font-family: var(--ims-font-script);
    font-size: 15px;
    color: var(--ims-terracotta-dark);
    margin-top: 4px;
}

.ims-nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 32px;
    font-weight: 600;
    font-size: 15px;
}
.ims-nav a {
    color: var(--ims-brown);
    letter-spacing: 0.01em;
    padding: 6px 2px;
    position: relative;
    transition: color 0.2s ease;
}
.ims-nav a:hover { color: var(--ims-terracotta-dark); }
.ims-nav a.is-current { color: var(--ims-terracotta-dark); }
.ims-nav a.is-current::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--ims-terracotta);
    border-radius: 2px;
}

.ims-nav__burger {
    display: none;
    background: none; border: 0;
    width: 40px; height: 40px;
    cursor: pointer;
    color: var(--ims-brown);
}

/* =========================================================================
   HERO
   ========================================================================= */
.ims-hero {
    position: relative;
    padding: 70px 0 90px;
    background: var(--ims-cream);
    overflow: hidden;
}
.ims-hero__inner {
    max-width: var(--ims-max);
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.ims-hero__deco-left {
    position: absolute;
    left: -40px; top: 20px;
    width: 220px; height: 320px;
    opacity: 0.85;
    z-index: 1;
}
.ims-hero__deco-right-bot {
    position: absolute;
    right: -20px; bottom: -30px;
    width: 200px; height: 280px;
    opacity: 0.75;
    z-index: 1;
}
.ims-hero__kicker {
    display: inline-block;
    font-family: var(--ims-font-script);
    color: var(--ims-terracotta-dark);
    font-size: 26px;
    margin-bottom: 12px;
    transform: rotate(-2deg);
}
.ims-hero__title {
    font-family: var(--ims-font-serif);
    color: var(--ims-brown);
    font-size: clamp(40px, 5.4vw, 68px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
}
.ims-hero__title em {
    font-style: italic;
    color: var(--ims-terracotta);
    font-weight: 500;
}
.ims-hero__lead {
    font-size: 18px;
    line-height: 1.7;
    color: var(--ims-mute);
    max-width: 520px;
    margin-bottom: 28px;
}
.ims-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.ims-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-family: var(--ims-font-sans);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.ims-btn--primary {
    background: var(--ims-terracotta);
    color: #fff;
    box-shadow: 0 6px 20px rgba(196, 118, 83, 0.38);
}
.ims-btn--primary:hover {
    background: var(--ims-terracotta-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(196, 118, 83, 0.48);
}
.ims-btn--ghost {
    background: transparent;
    color: var(--ims-brown);
    border: 2px solid var(--ims-brown);
}
.ims-btn--ghost:hover {
    background: var(--ims-brown);
    color: #fff;
}
.ims-btn__arrow {
    width: 14px; height: 14px;
    display: inline-block;
    position: relative;
}
.ims-btn__arrow::before {
    content: "→";
    font-size: 18px;
    line-height: 1;
}

.ims-hero__media {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 3 / 2;
    margin-left: auto;
    justify-self: end;
}
.ims-hero__blob,
.ims-hero__blob--sage {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.ims-hero__blob svg,
.ims-hero__blob--sage svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ims-hero__blob { inset: -16px -22px 12px -16px; opacity: .85; }
.ims-hero__blob--sage { inset: 22px -32px -22px 20px; z-index: 0; opacity: .5; }
.ims-hero__photo {
    position: absolute;
    inset: 0;
    z-index: 2;
    filter: drop-shadow(0 18px 30px rgba(90, 62, 42, 0.18));
}
.ims-hero__photo svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}
.ims-hero__badge {
    position: absolute;
    right: -24px;
    top: 4%;
    width: 118px; height: 118px;
    background: var(--ims-ivory);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 14px;
    box-shadow: var(--ims-shadow-card);
    z-index: 3;
    transform: rotate(8deg);
    border: 3px dashed rgba(196, 118, 83, 0.35);
}
.ims-hero__badge span {
    font-family: var(--ims-font-script);
    color: var(--ims-terracotta-dark);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}
.ims-hero__floret {
    position: absolute;
    left: -30px; bottom: 8%;
    width: 80px; height: 80px;
    z-index: 3;
    transform: rotate(-20deg);
}
.ims-hero__sprout {
    position: absolute;
    right: 8%;
    bottom: -14px;
    width: 56px; height: 56px;
    z-index: 3;
    transform: rotate(14deg);
    opacity: .9;
}

/* =========================================================================
   SECTION base
   ========================================================================= */
.ims-section {
    position: relative;
    padding: 100px 0;
}
.ims-section--cream { background: var(--ims-cream); }
.ims-section--ivory { background: var(--ims-ivory); }
.ims-section--sand  { background: var(--ims-sand); }
.ims-section--blush { background: var(--ims-blush); }

.ims-eyebrow {
    display: inline-block;
    font-family: var(--ims-font-script);
    color: var(--ims-terracotta-dark);
    font-size: 24px;
    margin-bottom: 6px;
    transform: rotate(-1deg);
}
.ims-section__title {
    font-family: var(--ims-font-serif);
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 600;
    color: var(--ims-brown);
    letter-spacing: 0.01em;
    margin-bottom: 18px;
    text-transform: uppercase;
}
.ims-section__title em {
    font-style: italic;
    color: var(--ims-terracotta);
    font-weight: 500;
    text-transform: none;
}
.ims-section__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
    position: relative;
    z-index: 2;
}
.ims-section__lead {
    font-size: 17px;
    line-height: 1.75;
    color: var(--ims-mute);
}

/* =========================================================================
   PILARES
   ========================================================================= */
.ims-pilares {
    position: relative;
    overflow: hidden;
}
.ims-pilares__deco-left {
    position: absolute;
    left: -60px; top: 80px;
    width: 220px; height: 320px;
    opacity: 0.6;
    z-index: 0;
}
.ims-pilares__deco-right {
    position: absolute;
    right: -40px; top: 120px;
    width: 200px; height: 280px;
    opacity: 0.55;
    z-index: 0;
}
.ims-pilares__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    position: relative;
    z-index: 2;
    max-width: 1160px;
    margin: 0 auto;
}
/* Each pilar card — 4-curve cloud contour (SVG as background), clean content inside */
.ims-pillar {
    position: relative;
    background: transparent;
    padding: 0;
    text-align: center;
    transition: transform .35s ease;
    width: 100%;
    aspect-ratio: 5 / 4;
    margin: 0;
}
.ims-pillar:hover { transform: translateY(-6px); }

.ims-pillar__bg {
    position: absolute;
    inset: -4% -6%;
    width: 112%;
    height: 108%;
    display: block;
    z-index: 0;
    filter: drop-shadow(0 14px 28px rgba(90, 62, 42, 0.14));
    pointer-events: none;
}

.ims-pillar__content {
    position: relative;
    z-index: 1;
    padding: 28px 30px 28px;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.ims-pillar__photo {
    width: 150px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ims-sand);
    box-shadow: 0 6px 16px rgba(90, 62, 42, 0.12);
    margin: 0 auto 14px;
    flex-shrink: 0;
}
.ims-pillar__photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.ims-pillar:nth-child(1) .ims-pillar__photo img { object-position: center 60%; }
.ims-pillar:nth-child(2) .ims-pillar__photo img { object-position: center 35%; }
.ims-pillar:nth-child(3) .ims-pillar__photo img { object-position: center 45%; }

.ims-pillar__num-badge {
    display: inline-block;
    font-family: var(--ims-font-serif);
    font-weight: 700;
    font-size: 20px;
    color: var(--ims-terracotta);
    font-style: italic;
    margin: 0 5px 0 0;
    line-height: 1;
    vertical-align: baseline;
}

.ims-pillar__body {
    padding: 0;
    width: 100%;
    min-width: 0;
}
.ims-pillar__title {
    display: inline;
    font-family: var(--ims-font-serif);
    font-weight: 700;
    color: var(--ims-brown);
    font-size: 18px;
    line-height: 1.25;
}
.ims-pillar__text {
    font-size: 13px;
    line-height: 1.5;
    margin: 6px 0 0;
    color: var(--ims-mute);
}
.ims-pillar__title {
    font-family: var(--ims-font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--ims-brown);
    margin: 0 0 10px;
    line-height: 1.2;
}
.ims-pillar__text {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ims-mute);
    margin: 0;
}

/* Wave divider between Pilares and Programas sections */
.ims-wave-divider {
    position: relative;
    height: 70px;
    margin-top: 40px;
    color: var(--ims-ivory);
    line-height: 0;
}
.ims-wave-divider svg { width: 100%; height: 100%; display: block; }
.ims-pilares ~ .ims-programas > .ims-wave-divider-inline {
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 70px;
    color: var(--ims-ivory);
    transform: scaleY(-1);
    line-height: 0;
}

@media (max-width: 900px) {
    .ims-pilares__grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* =========================================================================
   PROGRAMAS
   ========================================================================= */
.ims-programas {
    position: relative;
    overflow: hidden;
    background: var(--ims-ivory);
}
.ims-programas__deco-left {
    position: absolute;
    left: -20px; top: 100px;
    width: 130px; height: 300px;
    opacity: 0.5;
    z-index: 0;
}
.ims-programas__deco-right {
    position: absolute;
    right: -30px; bottom: 60px;
    width: 230px; height: 320px;
    opacity: 0.55;
    z-index: 0;
}
.ims-programas__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    position: relative;
    z-index: 2;
    max-width: 1160px;
    margin: 0 auto;
}

/* Program card with 4-curve cloud background, vertical content */
.ims-program {
    position: relative;
    background: transparent;
    transition: transform .35s ease;
    aspect-ratio: 5 / 6;
    width: 100%;
}
.ims-program:hover { transform: translateY(-6px); }

.ims-program__bg {
    position: absolute;
    inset: -4% -6%;
    width: 112%;
    height: 108%;
    display: block;
    z-index: 0;
    filter: drop-shadow(0 14px 28px rgba(90, 62, 42, 0.14));
    pointer-events: none;
}

.ims-program__content {
    position: relative;
    z-index: 1;
    padding: 26px 28px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    text-align: center;
}

.ims-program__img {
    width: 160px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ims-sand);
    box-shadow: 0 6px 16px rgba(90, 62, 42, 0.14);
    margin: 0 auto 14px;
    flex-shrink: 0;
}
.ims-program__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ims-program:nth-child(1) .ims-program__img img { object-position: center 55%; }
.ims-program:nth-child(2) .ims-program__img img { object-position: center 40%; }
.ims-program:nth-child(3) .ims-program__img img { object-position: center 40%; }

.ims-program__body { padding: 0; }
.ims-program__num {
    display: inline-block;
    font-family: var(--ims-font-serif);
    color: var(--ims-terracotta);
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    margin-right: 4px;
    vertical-align: baseline;
}
.ims-program__title {
    display: inline;
    font-family: var(--ims-font-serif);
    font-size: 19px;
    color: var(--ims-brown);
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}
.ims-program__age {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ims-sage-dark);
    font-weight: 700;
    margin: 8px 0 12px;
}
.ims-program__text {
    font-size: 13px;
    color: var(--ims-mute);
    line-height: 1.55;
    margin: 0;
    max-width: 94%;
}

/* =========================================================================
   ENFOQUE
   ========================================================================= */
.ims-enfoque {
    position: relative;
    background: var(--ims-sand);
    text-align: center;
    overflow: hidden;
}
.ims-enfoque__wave-top,
.ims-enfoque__wave-bottom {
    position: absolute;
    left: 0; right: 0;
    height: 80px;
    color: var(--ims-ivory);
    line-height: 0;
}
.ims-enfoque__wave-top    { top: -1px;  transform: scaleY(-1); }
.ims-enfoque__wave-bottom { bottom: -1px; color: var(--ims-blush); }
.ims-enfoque__wave-top svg,
.ims-enfoque__wave-bottom svg { width: 100%; height: 80px; display: block; }

.ims-enfoque__inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 30px 28px 10px;
    position: relative;
    z-index: 2;
}
.ims-enfoque__deco-left {
    position: absolute;
    left: 4%; top: 30%;
    width: 120px; height: 220px;
    opacity: 0.6;
    z-index: 0;
}
.ims-enfoque__deco-right {
    position: absolute;
    right: 4%; top: 28%;
    width: 120px; height: 220px;
    opacity: 0.6;
    transform: scaleX(-1);
    z-index: 0;
}
.ims-enfoque__quote {
    font-family: var(--ims-font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(20px, 2.2vw, 26px);
    color: var(--ims-brown);
    line-height: 1.55;
    max-width: 760px;
    margin: 20px auto 32px;
}
.ims-enfoque__qmark {
    width: 48px; height: 48px;
    margin: 0 auto 8px;
    color: var(--ims-terracotta);
}
.ims-enfoque__qmark svg { width: 100%; height: 100%; }

/* =========================================================================
   ADMISIONES (testimonios)
   ========================================================================= */
.ims-admisiones {
    position: relative;
    background: var(--ims-blush);
    overflow: hidden;
}
.ims-admisiones__deco {
    position: absolute;
    right: -40px; top: 10%;
    width: 200px; height: 260px;
    opacity: 0.5;
    transform: rotate(-10deg);
}
.ims-admisiones__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 2;
}
.ims-testimonial {
    background: var(--ims-ivory);
    padding: 28px 26px 24px;
    border-radius: var(--ims-radius);
    text-align: center;
    box-shadow: var(--ims-shadow-card);
    position: relative;
}
.ims-testimonial::before {
    content: "";
    position: absolute;
    top: -18px; left: 50%;
    transform: translateX(-50%);
    width: 56px; height: 56px;
    background: var(--ims-rose);
    border-radius: 50%;
    z-index: -1;
    opacity: .7;
}
.ims-testimonial__avatar {
    width: 84px; height: 84px;
    border-radius: 50%;
    overflow: hidden;
    margin: -54px auto 14px;
    border: 5px solid var(--ims-ivory);
    box-shadow: 0 8px 20px rgba(90, 62, 42, 0.16);
    position: relative;
    z-index: 2;
}
.ims-testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ims-testimonial__text {
    font-family: var(--ims-font-serif);
    font-style: italic;
    font-size: 15.5px;
    color: var(--ims-brown);
    line-height: 1.65;
    margin: 8px 0 14px;
}
.ims-testimonial__name {
    font-family: var(--ims-font-sans);
    font-weight: 700;
    font-size: 15px;
    color: var(--ims-terracotta-dark);
    margin: 0;
}
.ims-testimonial__role {
    font-size: 13px;
    color: var(--ims-mute);
    margin: 2px 0 0;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.ims-footer {
    position: relative;
    background: var(--ims-brown-footer);
    color: #F6ECD8;
    padding: 80px 0 24px;
    overflow: hidden;
}
.ims-footer a { color: #F6ECD8; }
.ims-footer a:hover { color: #fff; }
.ims-footer__wave {
    position: absolute; top: -1px; left: 0; right: 0;
    color: var(--ims-blush);
    line-height: 0;
}
.ims-footer__wave svg { width: 100%; height: 80px; display: block; transform: scaleY(-1); }
.ims-footer__tree {
    position: absolute;
    right: -40px; bottom: -30px;
    width: 280px; height: 320px;
    opacity: 0.35;
    z-index: 0;
}
.ims-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 2;
}
.ims-footer h4 {
    font-family: var(--ims-font-serif);
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
}
.ims-footer__brand {
    display: flex; flex-direction: column; gap: 10px;
}
.ims-footer__brand-row { display: flex; align-items: center; gap: 12px; }
.ims-footer__brand-row .ims-logo__mark { filter: brightness(1.3); width: 54px; height: 64px; }
.ims-footer__brand-row .ims-logo__name { color: #fff; }
.ims-footer__brand-text {
    color: #ECDEC4;
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
}
.ims-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ims-footer ul a {
    font-size: 14.5px;
    color: #F1E3CB;
    transition: color .2s ease, padding .2s ease;
    display: inline-block;
}
.ims-footer ul a:hover { padding-left: 4px; color: #fff; }
.ims-footer__contact { font-size: 14.5px; color: #F1E3CB; line-height: 1.8; }
.ims-footer__contact strong { color: #fff; font-weight: 700; }

.ims-social {
    display: flex; gap: 10px;
    margin-top: 10px;
}
.ims-social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s ease, transform .2s ease;
    color: #fff;
}
.ims-social a:hover { background: var(--ims-terracotta); transform: translateY(-2px); }
.ims-social svg { width: 16px; height: 16px; fill: currentColor; }

.ims-footer__bottom {
    margin-top: 50px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.18);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
    color: #E8D8BC;
    font-size: 13px;
    position: relative;
    z-index: 2;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1040px) {
    .ims-admisiones__grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
    .ims-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .ims-hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .ims-hero__media { margin: 0 auto; }
    .ims-programas__grid { grid-template-columns: 1fr; }
    .ims-program { grid-template-columns: 140px 1fr; }
    .ims-nav { display: none; }
    .ims-nav__burger { display: inline-flex; align-items: center; justify-content: center; }
    .ims-header__inner.is-open .ims-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        background: var(--ims-ivory);
        padding: 20px 28px;
        border-radius: 18px;
        box-shadow: var(--ims-shadow-card);
        gap: 14px;
        z-index: 10;
    }
    .ims-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .ims-section { padding: 70px 0; }
    .ims-program { grid-template-columns: 1fr; }
    .ims-program__img { aspect-ratio: 16 / 10; }
    .ims-hero { padding: 40px 0 60px; }
}
