/* ==========================================================================
   support-Adults-xlh.css
   Page-specific styles for: Apoyo a los adultos con XLH
   ─────────────────────────────────────────────────────
   Depends on:  css/styles.css   (design tokens, reset, buttons, header, footer)
   Sections:
     1.  Page Hero
     2.  Breadcrumb
     3.  Support Intro
     4.  Symptom Explorer intro
     5.  Symptom Card  — matches niños page (gradient bg, top-left rounded panel)
     6.  Symptom Hotspot Buttons
     7.  Symptom Content Panel
     8.  Mobile Tab Buttons
     9.  Info Split
    10.  Community CTA
    11.  Responsive
   ========================================================================== */


/* ==========================================================================
   1. PAGE HERO
   ========================================================================== */
.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;
}

.page-hero__media {
    width: 100%;
    max-width: none;
    flex-shrink: 0;
    order: 1;
    align-self: stretch;
    margin: 0;
    padding: 0;
    background: transparent;
    aspect-ratio: auto;
    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);
}

.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;
}

.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.15; */
    color: var(--color-text);
    margin: 0 0 16px;
/*     letter-spacing: 0.3px; */
    text-transform: uppercase;
	line-height: 44px;
    letter-spacing: 0;
}

.hero-br {
    display: none;
}

.page-hero__text {
    font-size: 16px;
/*     line-height: 1.65; */
    color: var(--color-text);
    margin: 0 0 12px;
    max-width: none;
	    line-height: 27px;
    letter-spacing: 0;
}

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

@media (min-width: 992px) {
    .page-hero {
        padding: 36px 0 0;
    }

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

    .page-hero__media {
        position: absolute;
        inset: 0;
    }
    .page-hero__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .page-hero__content {
        position: relative;
        z-index: 1;
        width: 48%;
        padding: 52px 52px 52px 56px;
    }

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

    .hero-br {
        display: inline;
    }

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

    .page-hero__name {
        position: absolute;
        z-index: 1;
        right: 24px;
        bottom: 18px;
        padding: 0;
    }

    .page-hero__name p {
        color: #000;
        text-align: right;
    }
}


/* ==========================================================================
   2. BREADCRUMB
   ========================================================================== */
.breadcrumb {
    padding: 14px 0;
    margin-top: 30px;
    margin-bottom: -20px;
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.breadcrumb__item a {
    color: var(--color-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 16px;
    text-transform: uppercase;
}

.vivi-con {
    color: var(--color-cyan);
    transition: color var(--transition-fast);
    font-size: 16px;
    text-transform: uppercase;
}

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

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

.breadcrumb__item--current {
    text-transform: uppercase;
    font-size: 16px;
    color: var(--color-grey-20, #333);
}


/* ==========================================================================
   3. SUPPORT INTRO
   ========================================================================== */
.support-intro {
/*     padding: 52px 0; */
	padding: 40px 0;
}

.support-intro__grid {
    display: flex;
    justify-content: center;
    gap: 48px 100px;
    flex-wrap: wrap;
}

.support-intro__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
/*     max-width: 230px; */
	max-width: 300px;
}

.support-intro__icon {
    width: 110px;
    height: 110px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.support-intro__icon svg,
.support-intro__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
	transform: scale(1.2);
}

.support-intro__text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--color-text);
    margin: 0;
}


/* ==========================================================================
   4. SYMPTOM EXPLORER intro
   ========================================================================== */
.symptom-explorer {
    background: var(--color-bg-feature);
/*     padding: 52px 0 0; */
	padding: 40px 0 25px;
}

.symptom-explorer__intro {
    margin-bottom: 36px;
}

.symptom-explorer__heading {
    font-size: 24px;
    font-weight: 600;
/*     letter-spacing: 0.5px; */
    color: var(--color-text);
    margin: 0 0 5px;
	line-height: 30px;
    letter-spacing: 0;
}

.symptom-explorer__lead {
    font-size: 16px;
/*     line-height: 1.65; */
    color: var(--color-text);
    margin: 0 0 30px;
	    line-height: 24px;
    letter-spacing: 0;
}

.symptom-explorer__subheading {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--color-text);
    margin: 0 0 5px;
	line-height: 24px;
    letter-spacing: 0;
}

.symptom-explorer__body {
/*     font-size: 15px; */
    line-height: 1.65;
    color: var(--color-text);
    margin: 0;
	line-height: 24px;
    letter-spacing: 0;
}


/* ==========================================================================
   5. SYMPTOM CARD
   --------------------------------------------------------------------------
   Mirrors the niños page styling: gradient background, top-left rounded
   panel, yellow + cyan accent strips flush with the card's right edge.
   ========================================================================== */
.symptom-card {
    display: flex;
    /* Same gradient image as niños page for consistency.
       Solid color fallback for slow image loads. */
   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;
    isolation: isolate;
    min-height: 520px;
    position: relative;
    margin-top: 34px;
}

.symptom-card__figure-wrap {
    position: relative;
    width: 44%;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 28px 16px 52px;
    overflow: visible;
}

.symptom-card__figure-img {
    display: block;
    max-height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom center;
    position: relative;
    z-index: 1;
    min-width: 160px;
    min-height: 320px;
    background: transparent;
}

.symptom-card__caption {
    position: absolute;
    bottom: 16px;
    left: 20px;
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
    z-index: 2;
}

/* ── Purple content panel ──
   Only TOP-LEFT corner is rounded. Right edge flush with the card so the
   yellow + cyan accent strips touch the card's right edge with no gap. */
.symptom-card__panel {
    flex: 1;
    min-width: 0;
    align-self: center;
    position: relative;
    background: var(--color-purple);
    border-radius: 20px 0 0 0;       /* top-left only */
    overflow: visible;
    margin: 24px 0 24px 32px;        /* no right margin → flush with card edge */
    min-height: 340px;
}

/* Yellow + cyan accent strips at the panel's right edge.
   Single element using a hard-stop linear gradient — yellow 9px, cyan 17px. */
.symptom-card__accent {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 26px;
    background: linear-gradient(to right,
        var(--color-yellow) 0,
        var(--color-yellow) 9px,
        var(--color-cyan)   9px,
        var(--color-cyan)   26px
    );
    pointer-events: none;
    z-index: 2;
}


/* ==========================================================================
   6. SYMPTOM HOTSPOT BUTTONS
   --------------------------------------------------------------------------
   Same pill style as the niños page (35×35 white circle icon).
   ========================================================================== */
.symptom-btn {
    position: absolute;
    display: inline-flex;
    align-items: center;
    padding: 0px 10px;
    background: var(--color-cyan);
    color: var(--color-white);
    border: 0;
    border-radius: var(--radius-pill);
    font-family: var(--font-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    z-index: 10;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    overflow: hidden;
}

.symptom-btn:hover {
    background: var(--color-cyan-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.symptom-btn:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 2px;
}

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

.symptom-btn.is-active:hover {
    background: var(--color-purple-dark);
}

/* White circle icon — 35×35 to match niños page */
.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-btn:hover   .symptom-btn__icon,
.symptom-btn.is-active .symptom-btn__icon {
    background: rgba(255, 255, 255, 0.22);
    color:#fff
}

.symptom-btn__label {
    padding: 6px 14px;
    line-height: 1.3;
    text-align: left;
}

.symptom-btn--hearing   { top: 8%;     right: 4%; }
.symptom-btn--dental    { top: 14%;    left: 10%; }
.symptom-btn--pain      { top: 58%;    left: 3%; }
.symptom-btn--fractures { bottom: 23%; left: 49%; }


/* ==========================================================================
   7. SYMPTOM CONTENT PANELS
   ========================================================================== */
.symptom-panel {
    display: none;
    padding: 44px 52px 44px 40px;
    color: var(--color-white);
    min-height: 100%;
    box-sizing: border-box;
}

.symptom-panel.is-active { display: block; }

.symptom-panel__title {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-white);
/*     margin: 0 0 18px; */
	margin: 0 0 0;
}

.symptom-panel__text {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 20px;
}

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

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

.symptom-panel__list li {
    position: relative;
    padding-left: 18px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 14px;
}

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

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


/* ==========================================================================
   8. MOBILE TAB BUTTONS
   ========================================================================== */
.symptom-mobile-tabs {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.symptom-tab-btn {
    flex: 1 1 calc(50% - 5px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 4px 4px;
    background: var(--color-cyan);
    color: var(--color-white);
    border: 0;
    border-radius: var(--radius-pill);
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-align: left;
    line-height: 1.3;
    transition: background var(--transition-fast);
}

/* Inject + on inactive tabs, − on the active one — auto-flips when
   your JS toggles .is-active, no JS change needed. */
.symptom-tab-btn .symptom-btn__icon::before {
    content: "+";
}
.symptom-tab-btn.is-active .symptom-btn__icon::before {
    content: "\2212";   /* unicode minus */
}

.symptom-tab-btn:hover { background: var(--color-cyan-dark); }

.symptom-tab-btn:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 2px;
}

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


/* ==========================================================================
   9. INFO SPLIT
   ========================================================================== */
.info-split {
	    padding: 40px 0;
	margin-bottom:40px;
}

.info-split--emotional {
    background: var(--color-bg-feature);
}

.info-split__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.info-split__inner--reversed .info-split__content { order: 1; }
.info-split__inner--reversed .info-split__media   { order: 2;}

.community-media {
    margin-bottom: -41px;
}

.info-split__title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.4px;
    line-height: 1.25;
    color: var(--color-text);
    margin: 0 0 20px;
}

.info-split__lead {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0 0 14px;
}

.info-split__lead strong { font-weight: 700; }

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

.info-split__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-split__list > li {
    position: relative;
    padding-left: 18px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    margin-bottom: 8px;
}

.info-split__list > li:last-child { margin-bottom: 0; }

.info-split__list > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 4px;
    height: 4px;
    background: var(--color-cyan);
    border-radius: 50%;
}

.info-split__sublist {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 6px;
}

.info-split__sublist li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.info-split__sublist li:last-child { margin-bottom: 0; }

.info-split__sublist li::before {
    content: '–';
    position: absolute;
    left: 4px;
    color: var(--color-purple);
    font-weight: 600;
}

.info-split__media {
    display: flex;
    justify-content: center;
    align-items: center;
}



.info-split__media img {
    width: 100%;
    object-fit: contain;
}


/* ==========================================================================
   10. COMMUNITY CTA
   ========================================================================== */
.community-cta {
    background: var(--color-purple);
/*     padding: 64px 0; */
	padding: 40px 0;
}

.community-cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}

.community-cta__heading {
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 0.4px;
    line-height: 1.2;
    color: var(--color-white);
    margin: 0;
}


/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */

@media (min-width: 768px) {
    .info-split__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
		align-items: start;
    }
	
	.info-split__inner--reversed {
		grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	}

    .info-split__title { font-size: 25px; }
    .symptom-explorer__heading { font-size: 25px; }
    .symptom-explorer__subheading { font-size: 20px; }
}

@media (min-width: 992px) {
    .symptom-panel__title { font-size: 20px; }
    .info-split__title { font-size: 25px; margin-bottom: 12px;}
}

/* ── Mobile + Tablet (<992px) — stacked symptom card layout ─────────
   Matches niños page breakpoint so tablet also stacks instead of
   trying to show the floating hotspot buttons in cramped space. */
@media (max-width: 991px) {

    .symptom-btn { display: none; }

    .symptom-mobile-tabs { display: flex; }

    .symptom-explorer { padding-bottom: 28px; }

    .symptom-card {
        flex-direction: column;
        min-height: auto;
        border-radius: 8px 8px 0 0;
    }

    .symptom-card__figure-wrap {
        width: 80%;
        padding: 24px 20px 44px;
        justify-content: center;
        margin: 0 auto;
    }

.symptom-card__figure-img {
        max-height: 480px;
        min-height: 280px;
    }

    .symptom-card__panel {
        align-self: stretch;
        margin: 0 0 16px 16px;       /* match niños mobile inset */
        border-radius: 20px 0 0 0;   /* keep top-left only */
        min-height: 260px;
    }

    .symptom-panel {
        padding: 28px 36px 28px 24px;
    }
}

/* ── Below 768 px only — info-split + support-intro tweaks ─────── */
@media (max-width: 767px) {

    .info-split__inner--reversed .info-split__content { order: 2; }
    .info-split__inner--reversed .info-split__media   { order: 1; }

    .info-split__media img { max-width: 260px;}

    .support-intro__grid { gap: 32px 48px; }
}

@media (max-width: 479px) {

    .symptom-tab-btn { flex: 1 1 100%; }

    .symptom-explorer__heading { font-size: 20px; }
    .symptom-explorer__subheading { font-size: 16px; }

    .info-split { padding: 40px 0;     }
    .info-split__title { font-size: 20px; }

    .community-cta { padding: 44px 0; }
    .community-cta__heading { font-size: 20px; }
}

/* Desktop default photo shift — kept outside any media query so it applies
   at 992+ only (it gets overridden inside the <992px block above). */
.symptom-card__figure-img {
transform-origin: center bottom;
}


/* ==========================================================================
   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;
    }

    .container {
        display: flex;
        flex-direction: column;
    }

    .symptom-mobile-tabs { order: 1; }
    .symptom-card__panel { order: 2; margin-top: 1rem; }
}