/* ==========================================================================
   Apoyo a los niños con XLH — Page-specific stylesheet
   Reuses tokens, container, buttons, header, footer from styles.css.
   Sections:
     1. Page hero (banner image + text overlay + name caption)
     2. Breadcrumb
     3. Support section + symptom selector (interactive piece)
     4. Split section (alternating image/content, with --tinted modifier)
     5. CTA banner (purple band)
   ========================================================================== */


/* ==========================================================================
   1. PAGE HERO  — Banner image + text overlay + name caption
   --------------------------------------------------------------------------
   MOBILE + TABLET (<992px): stacked → image, then name, then text
   DESKTOP (>=992px)       : text overlays the faded-left of the photo;
                             text drives the height so it can't overflow;
                             name floats bottom-right.
   ========================================================================== */
.page-hero {
    background: var(--color-white);
    padding: 28px 0 0;
}

.page-hero__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #E6E7EC;
    padding: 0;
    gap: 0;
}

/* --- Banner photo --- */
.page-hero__media {
    width: 100%;
    max-width: none;
    flex-shrink: 0;
    order: 1;
    align-self: stretch;
    margin: 0;
    background: transparent;
    aspect-ratio: auto;
    padding: 0;
    display: block;
}

.page-hero__media img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: 72% center;
    max-width: none;
    max-height: none;
    margin: 0;
    transition: transform var(--transition-base);
}

/* --- Name caption --- */
.page-hero__name {
    order: 2;
    padding: 14px 30px 0;
    position: static;
    right: auto;
    bottom: auto;
}

.page-hero__name p {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    color: var(--color-text);
    text-align: left;
}

/* --- Text block --- */
.page-hero__content {
    order: 3;
    padding: 18px 30px 30px;
    flex: 0 1 auto;
}

.page-hero__title {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-text);
    margin: 0 0 16px;
    letter-spacing: 0.3px;
}

/* Responsive line-break utility — hidden on mobile/tablet, shown on desktop.
   Used inside hero title AND name caption to force the Figma line breaks. */
.hero-br {
    display: none;
}

.page-hero__text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    margin: 0 0 14px;
    max-width: none;
}

.page-hero__text:last-child {
    margin-bottom: 0;
}

/* ---------- DESKTOP: overlay layout ---------- */
@media (min-width: 992px) {
    .page-hero {
        padding: 36px 0 0;
    }

    .page-hero__inner {
        display: block;
        min-height: 360px;
		border-radius: 0 !important;
    }

    /* image fills the card behind the text */
    .page-hero__media {
        position: absolute;
        inset: 0;
    }
    .page-hero__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: right center;
    }

    /* text drives the height, so it cannot overflow */
    .page-hero__content {
        position: relative;
        z-index: 1;
        width: 45%;
        padding: 52px 52px 52px 56px;
    }

    .page-hero__title {
        font-size: 40px;
        margin-bottom: 24px;
    }

    /* show forced line-breaks in title + name caption on desktop */
    .hero-br {
        display: inline;
    }

    .page-hero__text {
        font-size: 18px;
    }

    /* name floats bottom-right over the photo */
    .page-hero__name {
        position: absolute;
        z-index: 1;
        right: 24px;
        bottom: 18px;
        padding: 0;
    }

    .page-hero__name p {
        color: var(--color-white);
        text-align: right;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    }
}


/* ==========================================================================
   2. BREADCRUMB
   ========================================================================== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.5;
    padding: 32px 0 8px;
    letter-spacing: 0.3px;
    margin-top: 70px;
}

.breadcrumb a {
    color: var(--color-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-cyan-dark);
}

.breadcrumb__sep {
    color: var(--color-text);
    font-weight: 400;
}

.breadcrumb__current {
    color: var(--color-grey-20, #333);
}

@media (min-width: 768px) {
    .breadcrumb {
        font-size: 16px;
/*         padding: 36px 0 12px; */
		padding: 0 0 12px;
    }
}


/* ==========================================================================
   3. SUPPORT SECTION + SYMPTOM SELECTOR
   ========================================================================== */
.support-section {
    background: #DCDDE7;
    padding: 32px 0 48px;
    margin-top: 24px;
}

.support-section__heading {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 12px;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.support-section__subheading {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 22px 0 0;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

.support-section__text {
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    margin: 0 0 16px;
}

@media (min-width: 768px) {
    .support-section {
        padding: 40px 0 56px;
        margin-top: 20px;
    }
    .support-section__heading {
        margin-bottom: 0;
    }
    .support-section__subheading {
        font-size: 20px;
    }
}

@media (min-width: 992px) {
    .support-section__heading {
        font-size: 25px;
    }
    .support-section__subheading {
        font-size: 20px;
    }
}


/* ==========================================================================
   SYMPTOM SELECTOR — Interactive widget
   --------------------------------------------------------------------------
   Mobile + Tablet (<992px): stacked → photo, then pills, then panel
   Desktop (>=992px)       : side-by-side, pills absolute over photo
   ========================================================================== */
.symptom-selector {
    margin-top: 28px;
    /* Gradient image as background, with a fallback color for slow loads.
       Update the src to whatever filename you upload it under. */
   background-image: url("https://xlh-ar.ultragenyxdev.com/ar/wp-content/uploads/apoyo-a-ninos-para-bg.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.symptom-selector__media {
    position: relative;
    padding: 16px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* MOBILE/TABLET order: photo first, pills second */
.symptom-selector__photo {
    display: block;
    width: auto;
    max-width: 220px;
    height: auto;
    order: 1;
    margin: 16px auto 0;
}

.symptom-selector__caption {
    order: 3;
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 12px 0 0;
    align-self: flex-start;
}

.symptom-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 8px;
    margin: 6px;
    background: var(--color-cyan);
    color: var(--color-white);
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background var(--transition-fast);
    order: 2;
}

.symptom-pill--top-left,
.symptom-pill--bottom-left {
    flex-direction: row-reverse;
}

.symptom-pill:hover,
.symptom-pill:focus-visible {
    background: var(--color-cyan-dark);
}

.symptom-pill__label {
    text-align: left;
    max-width: 130px;
            font-size: 14px;
        font-weight: 400;
}

.symptom-pill__icon {
    flex-shrink: 0;
    display: inline-flex;
    width: 24px;
    height: 24px;
    color: var(--color-cyan);
}

.symptom-pill__icon svg {
    width: 100%;
    height: 100%;
}

.symptom-pill .symptom-pill__icon-plus  { display: block; }
.symptom-pill .symptom-pill__icon-minus { display: none; }
.symptom-pill.is-active .symptom-pill__icon-plus  { display: none; }
.symptom-pill.is-active .symptom-pill__icon-minus { display: block; }

.symptom-pill.is-active {
    background: var(--color-purple);
}

.symptom-pill.is-active .symptom-pill__icon {
    color: var(--color-purple);
}

.symptom-pill.is-active:hover,
.symptom-pill.is-active:focus-visible {
    background: #5C6090;
}

/* ── Purple content panel ──
   Only the TOP-LEFT corner is rounded. The right edge is flush against the
   card so the yellow + cyan accent strips touch the gradient card's right
   edge with no gap. */
.symptom-selector__panel {
    position: relative;
    background: var(--color-purple);
    color: var(--color-white);
    padding: 28px 28px 32px;
    border-radius: 20px 0 0 0;   /* top-left only */
    order: 2;
}

.symptom-selector__accent {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 26px;
    display: flex;
    pointer-events: none;
}

.symptom-selector__accent-yellow {
    width: 9px;
    background: var(--color-yellow);
}

.symptom-selector__accent-blue {
    width: 17px;
    background: var(--color-cyan);
}

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

.symptom-panel__heading {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-white);
    margin: 0 0 0;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

.symptom-panel__text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-white);
    margin: 0 0 18px;
}

.symptom-panel__text em { font-style: italic; }

.symptom-panel__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.symptom-panel__list li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--color-white);
    margin-bottom: 18px;
}

.symptom-panel__list li:last-child { margin-bottom: 0; }

.symptom-panel__list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .7em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-cyan);
}

/* ---------- DESKTOP (>=992px): side-by-side with floating pills ---------- */
@media (min-width: 992px) {

    .symptom-selector {
        flex-direction: row;
        align-items: stretch;
        margin-top: 32px;
    }

    .symptom-selector__media {
        flex: 0 0 42%;
        padding: 32px 16px 40px;
        align-items: flex-start;
        min-height: 500px;
    }

    .symptom-selector__photo {
        order: 0;
        margin: 0 auto;
        max-width: 350px;
        align-self: center;
       
    }

    .symptom-selector__caption {
        order: 0;
        position: absolute;
        bottom: 12px;
        left: 16px;
        margin: 0;
        font-size: 14px;
    }

    .symptom-pill {
        position: absolute;
        margin: 0;
        font-size: 12px;
        padding: 6px 8px 6px 14px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        transform: translate(-41px, 7px);
    }

    .symptom-pill__label { max-width: 110px; }

    .symptom-pill--top-left,
    .symptom-pill--bottom-left {
        flex-direction: row;
    }

    .img-abscesos { transform: translate(5px, -73px); }
    .img-dolor    { transform: translate(8px, -31px); }

    .symptom-pill--top-left .symptom-pill__label,
    .symptom-pill--bottom-left .symptom-pill__label {
        text-align: right;
    }

    .symptom-pill.is-active { z-index: 2; }

    .symptom-pill--top-left { top: 33%; left: 3%; }

    .symptom-pill--top-right {
        top: 14%;
        right: -1%;
        padding: 6px 14px 6px 8px;
    }

    .symptom-pill--top-right .symptom-pill__label { text-align: left; }

    .symptom-pill--bottom-left { top: 60%; left: 3%; }

    .symptom-selector__panel {
        flex: 1 1 58%;
        padding: 44px 64px 48px 44px;
        margin: 24px 0;          /* no right margin → flush with card edge */
        align-self: start;
		margin-top: 70px;
        margin-left: 60px;
    }


    .symptom-panel__text,
    .symptom-panel__list li {
        font-size: 16px;
    }
}


/* ==========================================================================
   4. SPLIT SECTION
   ========================================================================== */
.split-section {
    background: var(--color-white);
    padding: 40px 0;
}

.split-section-second {
		padding-top: 22px; 
}

.split-section--tinted { background: #DCDDE7; }

.split-section__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
}

.split-section__media { width: 100%; }

.split-section__media img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 480px;
    margin: 0 auto;
}

.split-section__content { width: 100%; }

.split-section__heading {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 16px;
    letter-spacing: 0.3px;
    line-height: 1.2;

}

.split-section__intro {
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    margin: 0 0 14px;
}

.split-section__intro strong { font-weight: 700; }

.split-section__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.split-section__list li {
    position: relative;
    padding-left: 22px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--color-text);
    margin-bottom: 8px;
}

.split-section__list li:last-child { margin-bottom: 0; }

.split-section__list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .7em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-cyan);
}

.split-section__list strong { font-weight: 700; }

@media (min-width: 768px) {
    .split-section { padding: 56px 0; }
    .split-section__grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 40px;
        align-items: start;
    }
	.split-section__grid-second {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
    .split-section__grid--reverse {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }
    .split-section__grid--reverse .split-section__content { order: 1;}
    .split-section__grid--reverse .split-section__media   { order: 2; }
    .split-section__media img {
        max-width: 100%;
/*         margin-top: -13%; */
    }
	
	    .media-school-age {
         margin-top: -1%;
    }
}

@media (min-width: 992px) {
    .split-section { padding: 64px 0; }
	.split-section-second {
		padding-top: 32px; 
	}
    .split-section__grid { gap: 48px; }
    .split-section__heading {
        font-size: 25px;
		margin-bottom: 0;
		
    }
    .split-section__intro { font-size: 16px; }
    .split-section__list li { font-size: 16px; }
	
	.intro-ad{
		margin-top: 5px;
	}
	.intro-adone{
		margin-top: 26px;
	}
}


/* ==========================================================================
   5. CTA BANNER — Purple band with cyan pill button
   ========================================================================== */
.cta-banner {
    background: var(--color-purple);
    padding: 48px 0;
    text-align: center;
}

.cta-banner__text {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-white);
    margin: 0 auto 22px;
    line-height: 1.35;
}

.cta-banner__button {
    text-transform: uppercase;
    font-size: 13px;
    padding: 14px 28px;
}

@media (min-width: 768px) {
    .cta-banner { padding: 64px 0; }
    .cta-banner__text {
        font-size: 26px;
        margin-bottom: 24px;
    }
    .cta-banner__button {
        font-size: 16px;
        padding: 14px 32px;
    }
}

@media (min-width: 992px) {
    .cta-banner { padding: 40px 0; margin-bottom: 35px; }
    .cta-banner__text { font-size: 25px; }
}


/* ==========================================================================
   Content wrap + small extras
   ========================================================================== */
.content-wrap {
    padding: 0 80px;
}

.content-wrap-one {
	max-width: min(calc(100% - 4rem), 1046px);
}

@media (max-width: 767px) {
    .content-wrap { padding: 16px; }
}

.vivi-color {
    color: var(--color-cyan);
}

.content-wrap-breadcrumb {
    padding: 0 56px;
}

@media (max-width: 767px) {
    .content-wrap-breadcrumb { padding: 16px; }
}
span.symptom-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    color: #57b5de;
    background: #fff;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    flex-shrink: 0;
    transition: background var(--transition-fast);
}
.symptom-pill.is-active .symptom-btn__icon { color: var(--color-purple); }
.symptom-pill.is-active .symptom-btn__icon::before {
    content: "−";
}
.symptom-btn__icon::before {
    content: "+";
}