/* Portada (spec 002, tarea 22). Origen: módulo de código publicado de "Inicio". */

/* Hero Section Styles */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-bottom: 4rem;
    text-align: center;
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: 1290px;
    height: 100%;
    object-fit: contain;
}

/* Overlay gradient for the hero image */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(0, 34, 29, 0.5) 0%,
            rgba(0, 34, 29, 0.3) 40%,
            rgba(0, 34, 29, 0.1) 100%);
    pointer-events: none;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 35%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    max-width: 339px;
    z-index: 2;
}

.hero-text h1 {
    color: var(--color-white, #FFFFFF);
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Wellness Text and Test Button Styles */
.wellness-text {
    width: 328px;
    height: 61px;
    font-weight: 400;
    font-size: 35px;
    line-height: 100%;
    text-align: center;
    color: #FFFFFF;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wellness-test-btn {
    width: min(90%, 330px);
    height: 49px;
    background-color: #DEFA5C;
    color: #163C37;
    border-radius: 20px;
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    border: none;
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    margin: 0 auto 12px;
    display: block;
}

.wellness-test-btn:hover {
    background-color: #c8e250;
    transform: translateY(-2px);
}

/* Options Section Styles */
.options-section {
    padding: 2rem 0 4rem;
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
}

.options-title {
    text-align: center;
    color: var(--color-green-medium, #DEFA5C);
    font-size: 1.8rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    font-weight: 600;
}

.options-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Option Card Styles */
.option-card {
    flex: 1;
    min-width: 300px;
    max-width: 300px;
    background-color: rgba(0, 34, 29, 0.7);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.option-image {
    height: 200px;
    overflow: hidden;
}

.option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.option-content {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.option-content h3 {
    color: var(--color-green-medium, #DEFA5C);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.option-content p {
    color: var(--color-white, #FFFFFF);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.option-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-top: auto;
}

.option-btn:hover {
    transform: scale(1.1);
}

.option-btn img {
    height: 40px;
}

@media (max-width: 1024px), (max-device-width: 1024px) {
    .hero-section {
        height: 78vh;
        min-height: 560px;
        margin-bottom: 2.5rem;
        align-items: center;
    }

    .hero-img {
        max-width: none;
        object-fit: cover;
    }

    .hero-section::after {
        background: linear-gradient(180deg,
                rgba(0, 34, 29, 0.15) 0%,
                rgba(0, 34, 29, 0.45) 48%,
                rgba(0, 34, 29, 0.72) 100%);
    }

    .hero-text {
        top: auto;
        bottom: 8%;
        left: 50%;
        transform: translateX(-50%);
        width: min(88%, 460px);
        max-width: none;
    }

    .hero-text h1 {
        font-size: 2.25rem;
    }

    .wellness-text {
        width: 100%;
        height: auto;
        min-height: 52px;
        font-size: 1.75rem;
        line-height: 1.15;
        margin: 16px auto;
    }

    .options-section {
        width: min(92%, 760px);
        padding: 1rem 0 3rem;
    }

    .options-title {
        font-size: 1.55rem;
        margin-bottom: 2rem;
    }

    .options-container {
        gap: 1.5rem;
    }

    .options-container a {
        display: block;
        width: min(100%, 320px);
    }

    .option-card {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .option-card > img {
        display: block;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 600px), (max-device-width: 600px) {
    .hero-section {
        height: 72vh;
        min-height: 500px;
        margin-bottom: 2rem;
    }

    .hero-text {
        bottom: 7%;
        width: min(90%, 340px);
    }

    .hero-text h1 {
        font-size: 1.65rem;
        line-height: 1.18;
    }

    .wellness-text {
        font-size: 1.35rem;
        min-height: auto;
    }

    .wellness-test-btn {
        width: min(100%, 290px);
        height: 46px;
        font-size: 1rem;
        border-radius: 16px;
    }

    .options-section {
        width: 90%;
        padding-bottom: 2.5rem;
    }

    .options-title {
        font-size: 1.25rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .options-container {
        gap: 1.25rem;
    }

    .options-container a {
        width: 100%;
    }
}

/* Los botones con onclick pasaron a ser enlaces <a>: mismo aspecto que el <button> original. */
a.wellness-test-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
