/* LAYOUT MOBILE FIRST */
/* --- HERO SLIDER --- */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-color: var(--color-black);
    overflow: hidden;
}

.hero__slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
}

.hero__slide--active {
    opacity: 1;
    visibility: visible;
}

.hero__content {
    color: var(--color-white);
}

.hero__subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-lila-light);
    display: block;
    margin-bottom: 10px;
}

.hero__title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero__controls {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
}

.hero__dots {
    display: flex;
    gap: 10px;
}

.hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: var(--transition-smooth);
}

.hero__dot--active {
    background-color: var(--color-white);
    width: 28px;
    border-radius: 6px;
}

/* --- ABOUT SECTION & STATS --- */
.about__title {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about__arrow svg {
    vertical-align: middle;
}

.about__text {
    font-size: 1rem;
    color: var(--color-text-dark);
    margin-bottom: 15px;
}

.about__stats {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
}

.stat-card {
    background-color: var(--color-white);
    padding: 20px;
    border: 1px solid var(--color-blue-light);
}

.stat-card__number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.stat-card__label {
    font-size: 0.85rem;
    color: var(--color-lila);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-card__label img {
    width: 25px;
}

/* --- NUESTRO ALCANCE (REACH) SECTION --- */
.reach {
    position: relative;
    color: var(--color-white);
    background-color: #292560;
    background-image: url("../images/our-reach-bg.jpg");
    background-size: cover;
    /* Mobile: se muestra la curva superior, como en la maqueta */
    background-position: 53% top;
    background-repeat: no-repeat;
    overflow: hidden;
}

.reach__grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.reach__title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.reach__subtitle {
    font-size: 0.85rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

/* Mapa + punto interactivo */
.reach__map {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.reach__map-img {
    width: 100%;
    height: auto;
}

/* Coordenadas del pin de Chile dentro de mapa-alcance.png (860x538) */
.reach__spot {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.reach__spot--chile {
    left: 28.6%;
    top: 77.23%;
}

.reach__pin {
    display: block;
    width: 28px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
}

.reach__pin:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.reach__tooltip {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translate(-50%, 6px);
    width: max-content;
    max-width: 260px;
    padding: 8px 22px 10px;
    background-color: var(--color-blue-light);
    color: var(--color-primary);
    border-radius: var(--radius-lg);
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

/* Flecha inferior del tooltip */
.reach__tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px 6px 0;
    border-style: solid;
    border-color: var(--color-blue-light) transparent transparent;
}

.reach__spot--open .reach__tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.reach__tooltip-title {
    font-size: 1rem;
    font-weight: 700;
}

.reach__tooltip-text {
    font-size: 0.9rem;
    font-weight: 400;
}

.reach__tooltip a:hover {
    color: var(--color-lila);
}

/* Divisores */
.reach__divider-v {
    display: none;
}

.reach__divider-h {
    width: 100%;
    max-width: 406px;
    height: auto;
    margin: 30px 0;
}

/* Columna de texto */
.reach__block-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.reach__text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* --- THERAPEUTICS SECTION --- */
.therapeutics {
    /* background-color: var(--color-primary); */
    background: #111424;
    background: -webkit-linear-gradient(180deg, rgba(17, 20, 36, 1) 0%, rgba(70, 76, 160, 1) 100%);
    background: -moz-linear-gradient(180deg, rgba(17, 20, 36, 1) 0%, rgba(70, 76, 160, 1) 100%);
    background: linear-gradient(180deg, rgba(17, 20, 36, 1) 0%, rgba(70, 76, 160, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#111424", endColorstr="#464CA0", GradientType=0);
    color: var(--color-white);
}

.therapeutics__title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.therapeutics__grid {
    display: flex;
    flex-direction: row;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.therapeutics-card {
    width: 300px;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.therapeutics-card__image-wrapper {
    height: 220px;
    overflow: hidden;
}

.therapeutics-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.therapeutics-card:hover .therapeutics-card__img {
    transform: scale(1.05);
}

.therapeutics-card__footer {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-white);
    position: relative;
}

.therapeutics-card__pleca {
    position: absolute;
    top: -39px;
    left: 0;
    width: 100%;
    height: 50px;
    display: block;
    pointer-events: none;
    overflow: hidden;
}

.therapeutics-card__name {
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.therapeutics-card__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-blue-light);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- AWARDS SECTION --- */
.awards__title {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.awards__subtitle {
    margin-bottom: 30px;
    font-size: 1rem;
    width: 100%;
}

.awards__grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.awards__image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 250px;
}

.awards__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.awards__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.awards__item {
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
}

.awards__item::before {
    content: "•";
    color: var(--color-lila);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -4px;
}

.awards__badges {
    display: flex;
    gap: 20px;
    justify-content: space-evenly;
}

.awards__badge-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
}

.awards__badge-placeholder img {
    width: 100px;
    max-width: 110px;
}

.awards__badge-txt {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* --- SUSTAINABILITY SECTION --- */
.sustainability.section {
    background-color: var(--color-white-light);
}

.sustainability__grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sustainability__image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 250px;
}

.sustainability__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sustainability__title {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.sustainability__text {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.sustainability__boxBtns {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0px;
    justify-content: center;
}

.sustainability__btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(41, 38, 98, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    max-width: 400px;
    margin: 35px auto 0;
}

.sustainability__btn:hover {
    background-color: var(--color-lila);
}


/* --- MEDIA QUERIES (RESPONSIVE TABLET / DESKTOP) --- */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hero {
        height: 70vh;
    }

    .hero__title {
        font-size: 3rem;
    }

    .about__stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .therapeutics__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .awards__grid,
    .sustainability__grid {
        flex-direction: row;
        align-items: center;
    }

    .awards__image-wrapper {
        flex: 1;
        height: 380px;
    }

    .sustainability__image-wrapper {
        flex: .5;
        height: 380px;
    }

    .awards__content,
    .sustainability__content {
        flex: 1;
    }

    .sustainability__boxBtns {
        align-items: center;
        flex-direction: row;
        gap: 12px;
        justify-content: space-around;
    }
}

/* // Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

    .about__grid {
        display: grid;
        grid-template-columns: 1.2s 1fr;
        grid-template-columns: 55% 40%;
        justify-content: space-between;
        align-items: center;
    }

    .about__stats {
        margin-top: 0;
        grid-template-columns: repeat(2, 1fr);
    }

    /* Nuestro alcance: mapa | divisor | texto */
    .reach {
        background-position: center;
    }

    .reach__grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 7px minmax(0, 406px);
        column-gap: 50px;
        align-items: center;
    }

    .reach__title {
        font-size: 2.4rem;
    }

    .reach__subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .reach__divider-v {
        display: block;
        width: 7px;
        height: 406px;
    }

    .reach__divider-h {
        margin: 35px 0;
    }
     .sustainability__boxBtns {
        align-items: center;
        flex-direction: row;
        gap: 12px;
        justify-content: space-around;
    }
}

/* // X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {}

/* // XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {}