/* Cursos section — light style aligned with servicios / equipo */

.cursos-page {
    color: var(--eq-text, #212832);
    background: var(--eq-bg-soft, #f2f6fc);
}

.cursos-page a:not(.btn) {
    color: var(--eq-primary, #0061f2);
    text-decoration: none;
}

.cursos-page a:not(.btn):hover {
    color: #0052cc;
    text-decoration: underline;
}

.cursos-page a.btn {
    text-decoration: none;
}

.cursos-page a.btn-primary,
.cursos-page a.btn-primary:hover,
.cursos-page a.btn-primary:focus {
    color: #fff;
}

.cursos-shell {
    width: min(1140px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 1.75rem 0 3rem;
}

.cursos-hero {
    margin-bottom: 2rem;
    padding: 1.6rem 1.75rem;
    background: var(--eq-bg, #fff);
    border: 1px solid var(--eq-border, #e0e5ec);
    border-radius: 0.75rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.05);
    animation: svc-fade-up 0.45s ease both;
}

.cursos-hero__title {
    margin-bottom: 0.65rem;
}

.cursos-hero__lead {
    margin: 0;
    max-width: none;
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--eq-text-muted, #69707a);
}

.cursos-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.cursos-nav-card {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 1.15rem;
    align-items: stretch;
    height: 100%;
    min-height: 10.5rem;
    padding: 1.25rem 1.35rem 1.25rem 1.15rem;
    background: var(--eq-bg, #fff);
    border: 1px solid var(--eq-border, #e0e5ec);
    border-radius: 0.75rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.05);
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    animation: svc-fade-up 0.45s ease both;
}

.cursos-nav-card:nth-child(2) {
    animation-delay: 0.06s;
}

.cursos-nav-card:nth-child(3) {
    animation-delay: 0.12s;
}

a.cursos-nav-card:hover {
    color: inherit;
    text-decoration: none;
    border-color: rgba(0, 97, 242, 0.35);
    box-shadow: 0 0.35rem 1.5rem rgba(33, 40, 50, 0.08);
    transform: translateY(-2px);
}

.cursos-nav-card__icon {
    grid-column: 1;
    grid-row: 1 / span 3;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    min-height: 100%;
    border-radius: 0.65rem;
    background: rgba(0, 97, 242, 0.08);
    color: var(--eq-primary, #0061f2);
}

.cursos-nav-card__icon svg {
    width: 2.35rem;
    height: 2.35rem;
    stroke-width: 1.6;
}

.cursos-nav-card__title {
    grid-column: 2;
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--eq-text, #212832);
}

.cursos-nav-card__text {
    grid-column: 2;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--eq-text-muted, #69707a);
}

.cursos-nav-card__cta {
    grid-column: 2;
    align-self: end;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--eq-primary, #0061f2);
}

.cursos-panel {
    margin-top: 0.5rem;
    padding: 1.5rem 1.6rem;
    background: var(--eq-bg, #fff);
    border: 1px solid var(--eq-border, #e0e5ec);
    border-radius: 0.75rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.05);
}

.cursos-kpi {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 1.75rem 2.25rem;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1.6rem 1.75rem;
    background: var(--eq-bg, #fff);
    border: 1px solid var(--eq-border, #e0e5ec);
    border-radius: 0.75rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.05);
    animation: svc-fade-up 0.5s ease 0.12s both;
}

.cursos-kpi__title {
    margin-bottom: 0.55rem;
}

.cursos-kpi__lead {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--eq-text-muted, #69707a);
}

.cursos-kpi__bars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.95rem;
}

.cursos-kpi__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.cursos-kpi__label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--eq-text, #212832);
}

.cursos-kpi__value {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    font-variant-numeric: tabular-nums;
}

.cursos-kpi__value strong {
    font-size: 1.05rem;
    color: var(--eq-text, #212832);
}

.cursos-kpi__pct {
    font-size: 0.78rem;
    color: var(--eq-text-muted, #69707a);
}

.cursos-kpi__track {
    height: 1rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef7;
}

.cursos-kpi__fill {
    display: block;
    height: 100%;
    width: var(--bar, 0%);
    min-width: 0.5rem;
    border-radius: inherit;
    background: linear-gradient(90deg, #0061f2 0%, #3d8bfd 55%, #a67c2d 100%);
    transform-origin: left center;
    animation: cursos-kpi-grow 0.85s ease both;
    animation-delay: calc(0.1s + (var(--delay, 0) * 0.08s));
}

.cursos-kpi__row {
    --bar: 0%;
}

@keyframes cursos-kpi-grow {
    from {
        transform: scaleX(0.08);
        opacity: 0.35;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.cursos-gallery {
    margin-top: 1.5rem;
    padding: 1.6rem 1.75rem 1.85rem;
    background: var(--eq-bg, #fff);
    border: 1px solid var(--eq-border, #e0e5ec);
    border-radius: 0.75rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.05);
    animation: svc-fade-up 0.5s ease 0.16s both;
}

.cursos-gallery__intro {
    margin-bottom: 1.25rem;
    max-width: 40rem;
}

.cursos-gallery__title {
    margin-bottom: 0.55rem;
}

.cursos-gallery__lead {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--eq-text-muted, #69707a);
}

.cursos-gallery__carousel {
    position: relative;
    border-radius: 0.65rem;
    overflow: hidden;
    background: #e8eef7;
}

.cursos-gallery__figure {
    margin: 0;
}

.cursos-gallery__image {
    display: block;
    width: 100%;
    height: clamp(26rem, 58vw, 44rem);
    object-fit: cover;
    object-position: center;
}

.cursos-gallery__caption {
    margin: 0;
    padding: 0.95rem 1.15rem 1.1rem;
    background: #fff;
    border-top: 1px solid var(--eq-border, #e0e5ec);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--eq-text, #212832);
}

.cursos-gallery__carousel .carousel-control-prev,
.cursos-gallery__carousel .carousel-control-next {
    width: 3rem;
    opacity: 0.9;
}

.cursos-gallery__carousel .carousel-control-prev-icon,
.cursos-gallery__carousel .carousel-control-next-icon {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.cursos-gallery__carousel .carousel-indicators {
    margin-bottom: 4.6rem;
}

.cursos-gallery__carousel .carousel-indicators [data-bs-target] {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background-color: #fff;
}

.home-page {
    color: var(--eq-text, #212832);
    background: var(--eq-bg-soft, #f2f6fc);
}

.home-shell {
    width: min(1140px, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 2rem 0 3.25rem;
}

.home-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.5rem 1.75rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.75rem 1.85rem;
    background: var(--eq-bg, #fff);
    border: 1px solid var(--eq-border, #e0e5ec);
    border-radius: 0.75rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.05);
    animation: svc-fade-up 0.45s ease both;
}

.home-hero__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 7.5rem;
    height: 7.5rem;
    padding: 0.65rem;
    border-radius: 0.75rem;
    background: rgba(0, 97, 242, 0.05);
}

.home-hero__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-hero__copy {
    min-width: 0;
}

.home-hero__title {
    margin-bottom: 0.75rem;
    font-size: clamp(2.1rem, 4vw, 2.85rem);
}

.home-hero__lead {
    margin: 0;
    max-width: none;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--eq-text-muted, #69707a);
}

.home-kpi {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 1.75rem 2.25rem;
    align-items: center;
    margin: 1.5rem 0 0;
    padding: 1.6rem 1.75rem;
    background: var(--eq-bg, #fff);
    border: 1px solid var(--eq-border, #e0e5ec);
    border-radius: 0.75rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.05);
    animation: svc-fade-up 0.5s ease 0.08s both;
}

.home-kpi__title {
    margin-bottom: 0.55rem;
}

.home-kpi__lead {
    margin: 0 0 1rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--eq-text-muted, #69707a);
}

.home-kpi__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.home-kpi__toggle-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--eq-text-muted, #69707a);
    transition: color 0.15s ease;
}

.home-kpi__toggle-label.is-active {
    color: var(--eq-text, #212832);
}

.home-kpi__switch {
    position: relative;
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}

.home-kpi__switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.home-kpi__switch-track {
    display: block;
    width: 2.75rem;
    height: 1.45rem;
    border-radius: 999px;
    background: #d7dee8;
    transition: background 0.18s ease;
}

.home-kpi__switch-thumb {
    position: absolute;
    top: 0.18rem;
    left: 0.18rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(33, 40, 50, 0.25);
    transition: transform 0.18s ease;
}

.home-kpi__switch input:checked + .home-kpi__switch-track {
    background: var(--eq-primary, #0061f2);
}

.home-kpi__switch input:checked + .home-kpi__switch-track .home-kpi__switch-thumb {
    transform: translateX(1.3rem);
}

.home-kpi__switch input:focus-visible + .home-kpi__switch-track {
    outline: 2px solid rgba(0, 97, 242, 0.45);
    outline-offset: 2px;
}

.home-kpi__social {
    margin-top: 1rem;
}

.home-kpi__bars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.home-kpi__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.home-kpi__label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--eq-text, #212832);
}

.home-kpi__value {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    font-variant-numeric: tabular-nums;
}

.home-kpi__value strong {
    font-size: 1.05rem;
    color: var(--eq-text, #212832);
}

.home-kpi__pct {
    font-size: 0.78rem;
    color: var(--eq-text-muted, #69707a);
}

.home-kpi__track {
    height: 0.85rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef7;
}

.home-kpi__fill {
    display: block;
    height: 100%;
    width: var(--bar, 0%);
    min-width: 0.35rem;
    border-radius: inherit;
    background: linear-gradient(90deg, #0061f2 0%, #3d8bfd 55%, #a67c2d 100%);
    transform-origin: left center;
    animation: home-kpi-grow 0.85s ease both;
    animation-delay: calc(0.1s + (var(--delay, 0) * 0.06s));
}

@keyframes home-kpi-grow {
    from {
        transform: scaleX(0.08);
        opacity: 0.35;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.home-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

.home-nav-card {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 1.15rem;
    align-items: stretch;
    min-height: 10.5rem;
    padding: 1.25rem 1.35rem 1.25rem 1.15rem;
    background: var(--eq-bg, #fff);
    border: 1px solid var(--eq-border, #e0e5ec);
    border-radius: 0.75rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.05);
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    animation: svc-fade-up 0.45s ease both;
}

.home-nav-card:nth-child(2) { animation-delay: 0.05s; }
.home-nav-card:nth-child(3) { animation-delay: 0.1s; }
.home-nav-card:nth-child(4) { animation-delay: 0.15s; }
.home-nav-card:nth-child(5) { animation-delay: 0.2s; }

a.home-nav-card:hover {
    color: inherit;
    text-decoration: none;
    border-color: rgba(0, 97, 242, 0.35);
    box-shadow: 0 0.35rem 1.5rem rgba(33, 40, 50, 0.08);
    transform: translateY(-2px);
}

.home-nav-card__icon {
    grid-column: 1;
    grid-row: 1 / span 3;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    min-height: 100%;
    border-radius: 0.65rem;
    background: rgba(0, 97, 242, 0.08);
    color: var(--eq-primary, #0061f2);
}

.home-nav-card__icon svg {
    width: 2.35rem;
    height: 2.35rem;
    stroke-width: 1.6;
}

.home-nav-card__label {
    grid-column: 2;
    margin: 0 0 0.45rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--eq-text, #212832);
}

.home-nav-card__text {
    grid-column: 2;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--eq-text-muted, #69707a);
}

.home-nav-card__cta {
    grid-column: 2;
    align-self: end;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--eq-primary, #0061f2);
}

@media (max-width: 900px) {
    .cursos-nav-grid,
    .home-nav-grid {
        grid-template-columns: 1fr;
    }

    .cursos-kpi,
    .home-kpi {
        grid-template-columns: 1fr;
    }

    .home-hero {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .home-hero__logo {
        width: 5.5rem;
        height: 5.5rem;
    }

    .equipo-keywords {
        display: none;
    }
}
