/* Página Equipo: estilos independientes de las tarjetas de portada */
.niagara-team {
    --nt-green: #153e32;
    --nt-gold: #c6a351;
    --nt-muted: #54655b;
    --nt-line: #dce5de;
    color: #33483f;
    background: #fff;
}

.niagara-team,
.niagara-team * {
    box-sizing: border-box;
}

.niagara-team .container {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.niagara-team h1,
.niagara-team h2,
.niagara-team h3 {
    color: var(--nt-green);
    text-wrap: balance;
}

.niagara-team p {
    line-height: 1.8;
}

.nt-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.6;
    color: #56683b;
}

.niagara-team .nt-hero {
    padding: clamp(54px, 7vw, 90px) 0;
    background: linear-gradient(135deg, #f0f5ec, #faf8f1);
    border-bottom: 1px solid var(--nt-line);
}

.niagara-team .nt-hero h1 {
    max-width: 850px;
    margin: 18px 0 24px;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.13;
    letter-spacing: -0.035em;
}

.niagara-team .nt-lead {
    max-width: 780px;
    margin: 0 0 24px;
    color: var(--nt-muted);
    font-size: 1.1rem;
}

.nt-text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--nt-green);
    font-weight: 700;
    text-underline-offset: 5px;
}

.nt-members {
    padding: 64px 0;
    scroll-margin-top: 110px;
}

.nt-group + .nt-group {
    margin-top: 64px;
}

.nt-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.niagara-team .nt-heading h2 {
    margin: 12px 0 14px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.25;
}

.nt-heading p {
    margin: 0;
    color: var(--nt-muted);
}

.niagara-team .nt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.niagara-team .nt-card {
    min-width: 0;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--nt-line);
    border-top: 3px solid var(--nt-gold);
    border-radius: 16px;
    background: #fff;
    overflow-wrap: anywhere;
}

.nt-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;
    background: #edf4e9;
    color: var(--nt-green);
    font-size: 0.75rem;
    font-weight: 700;
}

.niagara-team .nt-card h3 {
    margin: 20px 0 8px;
    font-size: 1.4rem;
    line-height: 1.3;
}

.niagara-team .nt-role {
    margin: 0 0 18px;
    color: var(--nt-green);
    font-weight: 700;
}

.nt-description {
    margin: 0 0 22px;
    color: var(--nt-muted);
}

.nt-qualification {
    padding-top: 18px;
    border-top: 1px solid var(--nt-line);
}

.nt-qualification > span {
    font-size: 0.78rem;
    color: var(--nt-muted);
}

.niagara-team .nt-qualification p {
    margin: 6px 0;
    font-size: 0.9rem;
}

.niagara-team .nt-institution {
    margin: 8px 0 0;
    color: var(--nt-muted);
    font-size: 0.85rem;
}

.nt-details {
    display: grid;
    gap: 14px;
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--nt-line);
}

.nt-details dt {
    margin-bottom: 4px;
    color: var(--nt-muted);
    font-size: 0.78rem;
}

.nt-details dd {
    margin: 0;
    color: var(--nt-green);
    font-size: 0.9rem;
    font-weight: 700;
}

.niagara-team .nt-note {
    margin-top: 40px;
    padding: 26px 30px;
    border-left: 3px solid var(--nt-gold);
    background: #f5f7f1;
}

.niagara-team .nt-note h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.nt-note p {
    margin: 0;
    color: var(--nt-muted);
}

.niagara-team .nt-contact {
    padding: 0 0 64px;
}

.niagara-team .nt-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 36px;
    border: 1px solid var(--nt-line);
    border-radius: 18px;
    background: #f6f7f1;
}

.niagara-team .nt-contact h2 {
    margin: 12px 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.3;
}

.nt-contact p {
    margin: 0;
    color: var(--nt-muted);
}

.niagara-team .nt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 50px;
    padding: 14px 20px;
    border-radius: 10px;
    color: #fff;
    background: var(--nt-green);
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}

.niagara-team .nt-button:hover {
    background: #245340;
}

.niagara-team a:focus-visible {
    outline: 3px solid #c6a351;
    outline-offset: 5px;
}

@media (max-width: 760px) {
    .niagara-team .nt-grid {
        grid-template-columns: 1fr;
    }

    .niagara-team .nt-contact-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .niagara-team .container {
        width: calc(100% - 32px);
    }

    .nt-members {
        padding: 44px 0;
    }

    .nt-group + .nt-group {
        margin-top: 44px;
    }

    .niagara-team .nt-note {
        padding: 22px;
    }

    .niagara-team .nt-button {
        width: 100%;
        flex-shrink: 1;
    }
}

/* Equipo: composición y fichas desplegables */
.niagara-team .nt-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 95% 15%,
            rgb(198 163 81 / 18%),
            transparent 48%
        ),
        linear-gradient(120deg, #edf4e9, #faf9f4);
}

.niagara-team .nt-hero .container {
    position: relative;
    border-left: 4px solid #c6a351;
    padding-left: clamp(22px, 4vw, 48px);
}

.niagara-team .nt-text-link {
    gap: 12px;
    padding: 10px 18px;
    border: 1px solid #bdcbb9;
    border-radius: 999px;
    background: rgb(255 255 255 / 65%);
    text-decoration: none;
}

.niagara-team .nt-heading {
    max-width: 850px;
}

.niagara-team .nt-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 22px;
}

.niagara-team .nt-card {
    padding: 28px;
    border: 1px solid #dce5de;
    border-radius: 20px;
    background: linear-gradient(150deg, #fff 65%, #f5f8f1);
    box-shadow: 0 8px 28px rgb(21 62 50 / 4%);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.nt-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.nt-card-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    color: #66764d;
    background: #f0f4e9;
    font-size: 1.15rem;
}

.niagara-team .nt-card h3 {
    margin-top: 22px;
    font-size: 1.3rem;
}

.niagara-team .nt-role {
    font-size: 0.93rem;
}

.niagara-team .nt-description {
    font-size: 0.94rem;
    margin-bottom: 24px;
}

.nt-modality {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #435b49;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.6;
}

.nt-modality-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #8b9d57;
}

.nt-credentials {
    margin-top: 22px;
    border-top: 1px solid #dce5de;
}

.nt-credentials summary {
    min-height: 48px;
    padding: 15px 0 6px;
    color: #153e32;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.nt-credentials summary::marker {
    color: #8c7032;
}

.nt-credentials summary:focus-visible {
    outline: 3px solid #c6a351;
    outline-offset: 4px;
}

.nt-credentials-content {
    padding-top: 8px;
}

.niagara-team .nt-credentials-content p {
    margin: 0 0 10px;
    font-size: 0.85rem;
    line-height: 1.7;
}

.nt-registration {
    color: #435b49;
}

/* Dirección: ficha horizontal que ocupa todo el ancho */
.niagara-team .nt-group:first-child .nt-grid {
    grid-template-columns: 1fr;
}

.niagara-team .nt-group:first-child .nt-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: 48px;
    padding: clamp(28px, 4vw, 46px);
    border-left: 5px solid #c6a351;
    background: #f3f7ee;
}

.nt-group:first-child .nt-card-top,
.nt-group:first-child .nt-card h3,
.nt-group:first-child .nt-role,
.nt-group:first-child .nt-description,
.nt-group:first-child .nt-modality {
    grid-column: 1;
}

.niagara-team .nt-group:first-child .nt-card h3 {
    font-size: clamp(1.6rem, 2.8vw, 2rem);
}

.nt-group:first-child .nt-credentials {
    grid-column: 2;
    grid-row: 1 / span 5;
    align-self: center;
    margin-top: 0;
    padding-left: 30px;
    border-top: 0;
    border-left: 1px solid #cedbc7;
}

/* Modalidades */
.niagara-team .nt-programs {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid #dce5de;
}

.nt-programs-heading {
    max-width: 740px;
    margin-bottom: 28px;
}

.niagara-team .nt-programs-heading h2 {
    margin: 12px 0 16px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.25;
}

.nt-programs-heading p {
    color: #54655b;
}

.nt-programs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.niagara-team .nt-program {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 4vw, 38px);
    border-radius: 22px;
}

.nt-program-residential {
    color: #e4eee6;
    background: #153e32;
}

.nt-program-outpatient {
    color: #526258;
    background: #f0f3e9;
    border: 1px solid #d8e1cc;
}

.nt-program-number {
    display: block;
    margin-bottom: 26px;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0.55;
}

.nt-program-label {
    display: block;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.7;
}

.niagara-team .nt-program h3 {
    margin: 14px 0 18px;
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    line-height: 1.3;
}

.niagara-team .nt-program-residential h3 {
    color: #fff;
}

.nt-program-residential .nt-program-label {
    color: #ead39a;
}

.nt-program-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.nt-program-tags span {
    padding: 7px 11px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.76rem;
    line-height: 1.5;
}

.nt-programs-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-height: 48px;
    margin-top: 22px;
    color: #153e32;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 5px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .niagara-team .nt-card:hover {
        transform: translateY(-4px);
        border-color: #b9c8ad;
        box-shadow: 0 16px 32px rgb(21 62 50 / 9%);
    }
}

@media (max-width: 1050px) {
    .niagara-team .nt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .niagara-team .nt-grid,
    .niagara-team .nt-programs-grid,
    .niagara-team .nt-group:first-child .nt-card {
        grid-template-columns: 1fr;
    }

    .nt-group:first-child .nt-credentials {
        grid-column: 1;
        grid-row: auto;
        margin-top: 22px;
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid #cedbc7;
    }

    .niagara-team .nt-card {
        padding: 26px;
    }

    .niagara-team .nt-programs {
        margin-top: 44px;
        padding-top: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .niagara-team .nt-card {
        transition: none;
    }
}

