
/* =========================================================
   MODELO COLORES
========================================================= */

.modelo-colores {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 120px 0 100px;
    overflow: hidden;
    background-color: #ffffff;
    color: #000000;
}

/* =========================================================
   INTRO
========================================================= */

.modelo-colores__intro {
    position: relative;
    z-index: 3;
    width: min(90%, 900px);
    margin: 0 auto;
    text-align: center;
}

.modelo-colores__title {
    margin: 0;
    color: #000000;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
}

.modelo-colores__subtitle {
    max-width: 700px;
    margin: 24px auto 0;
    color: rgba(0, 0, 0, 0.75);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 300;
    line-height: 1.6;
}

/* =========================================================
   IMAGEN DEL MODELO
========================================================= */

.modelo-colores__visual {
    position: relative;
    width: min(90%, 1200px);
    height: 500px;
    margin: 30px auto 0;
}

.modelo-color__image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
}

.modelo-color__image[data-active="true"] {
    opacity: 1;
    visibility: visible;
}

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

/* =========================================================
   COLOR SELECCIONADO
========================================================= */

.modelo-colores__selected {
    position: relative;
    z-index: 3;
    margin-top: 10px;
    text-align: center;
}

.modelo-colores__selected-name {
    display: inline-block;
    color: #000000;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* =========================================================
   OPCIONES
========================================================= */

.modelo-colores__options {
    position: relative;
    z-index: 3;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    gap: 28px;

    width: min(90%, 900px);
    margin: 35px auto 0;
}

.modelo-color {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 90px;
    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;
    color: #000000;

    cursor: pointer;
}

.modelo-color__circle {
    display: block;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    border: 2px solid transparent;

    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.75);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.modelo-color__name {
    display: block;

    margin-top: 12px;

    color: rgba(0, 0, 0, 0.7);

    font-size: 0.85rem;
    font-weight: 300;

    text-align: center;

    transition:
        color 0.3s ease;
}

/* =========================================================
   COLOR ACTIVO
========================================================= */

.modelo-color[aria-pressed="true"] .modelo-color__circle {
    transform: scale(1.15);

    border-color: #000000;

    box-shadow:
        0 0 0 2px #000000,
        0 0 0 3px #000000;
}

.modelo-color[aria-pressed="true"] .modelo-color__name {
    color: #000000;
    font-weight: 500;
}

/* =========================================================
   HOVER
========================================================= */

.modelo-color:hover .modelo-color__circle {
    transform: scale(1.1);
}

.modelo-color:hover .modelo-color__name {
    color: #000000;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .modelo-colores {
        min-height: auto;
        padding: 80px 0 70px;
    }

    .modelo-colores__intro {
        width: 88%;
    }

    .modelo-colores__subtitle {
        margin-top: 16px;
        font-size: 1rem;
    }

    .modelo-colores__visual {
        width: 100%;
        height: 320px;
        margin-top: 20px;
    }

    .modelo-colores__selected {
        margin-top: 0;
    }

    .modelo-colores__options {
        width: 94%;
        gap: 14px;
        margin-top: 30px;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 5px 10px 10px;
        scrollbar-width: none;
    }

    .modelo-colores__options::-webkit-scrollbar {
        display: none;
    }

    .modelo-color {
        flex: 0 0 76px;
        width: 76px;
    }

    .modelo-color__circle {
        width: 38px;
        height: 38px;
    }

    .modelo-color__name {
        font-size: 0.78rem;
    }

}
