/* ==========================================================
   DR. PEDRO HURTADO
   SECCIÓN ÍNDICE DE MASA CORPORAL
   ========================================================== */

.dr__imc--ph {
    position: relative;
    isolation: isolate;

    width: 100%;
    padding: 55px clamp(20px, 4vw, 70px) 115px;

    overflow: hidden;

    color: #FFFFFF;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgb(114 170 255 / 15%),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #21618C,
            #2C8BC1
        );
}

.dr-imc__container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1600px;

    margin: 0 auto;
}

/* ==========================================================
   ENCABEZADO
   ========================================================== */

.dr-imc__header {
    max-width: 1600px;
    margin: 0 auto 40px;

    text-align: center;
}

.dr-imc__header h2 {
    margin: 0 0 4px;

    color: #FFFFFF;

    font-size: clamp(27px, 2vw, 34px);
    font-weight: 600;

    line-height: 1.05;
}

.dr-imc__header h2 span {
    color: #BDE7FF;
}

.dr-imc__header p {
    max-width: 100%;

    margin: 0 auto;

    color: rgb(255 255 255 / 88%);

    font-size: 16px;
    line-height: 1.5;
}

/* ==========================================================
   DOS COLUMNAS
   ========================================================== */

.dr-imc__content {
    display: grid;

    grid-template-columns:
        minmax(0, 0.50fr)
        minmax(0, 1.50fr);

    align-items: stretch;

    gap: clamp(30px, 5vw, 75px);
}

/* ==========================================================
   TARJETA CALCULADORA
   ========================================================== */

.dr-imc__calculator {
    position: relative;

    padding: clamp(24px, 3vw, 40px);

    color: #344F66;

    background: #FFFFFF;

    border: 1px solid rgb(255 255 255 / 80%);
    border-radius: 19px;

    box-shadow:
        0 20px 45px rgb(12 44 68 / 20%),
        inset 0 1px 0 #FFFFFF;
}

.dr-imc__calculator-heading {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-bottom: 25px;
}

.dr-imc__calculator-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 53px;

    width: 53px;
    height: 53px;

    color: #FFFFFF;

    background: linear-gradient(
        135deg,
        #3299DC,
        #21618C
    );

    border-radius: 14px;

    font-size: 23px;

    box-shadow: 0 6px 15px rgb(33 97 140 / 20%);
}

.dr-imc__calculator-heading h3 {
    margin: 0 0 5px;

    color: #173F5F;

    font-size: 25px;
    font-weight: 800;
}

.dr-imc__calculator-heading p {
    margin: 0;

    color: #71879A;

    font-size: 14px;
}

/* Campos */

.dr-imc__form {
    display: flex;
    flex-direction: column;

    gap: 16px;
}

.dr-imc__field label {
    display: block;

    margin-bottom: 6px;

    color: #294B66;

    font-size: 14px;
    font-weight: 800;
}

.dr-imc__input-wrapper {
    display: flex;
    align-items: center;

    gap: 12px;

    min-height: 55px;

    padding: 0 16px;

    background: #F5F9FC;

    border: 1px solid #D9E6EF;
    border-radius: 10px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.dr-imc__input-wrapper:focus-within {
    background: #FFFFFF;

    border-color: #3299DC;

    box-shadow: 0 0 0 4px rgb(50 153 220 / 12%);
}

.dr-imc__input-wrapper > i {
    color: #3299DC;
    font-size: 18px;
}

.dr-imc__input-wrapper input {
    width: 100%;
    min-width: 0;
    height: 50px;

    padding: 0;

    color: #173F5F;
    background: transparent;

    border: 0;
    outline: none;

    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
}

.dr-imc__input-wrapper input::placeholder {
    color: #A3B1BD;
    font-size: 12px;
    font-weight: 400;
}

.dr-imc__input-wrapper input::-webkit-inner-spin-button,
.dr-imc__input-wrapper input::-webkit-outer-spin-button {
    margin: 0;
}

.dr-imc__input-wrapper input[type="number"] {
    -moz-appearance: textfield;
}

.dr-imc__input-wrapper > span {
    color: #71879A;
    font-size: 16px;
    font-weight: 800;
}

/* Botón */

.dr-imc__calculate-button {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    width: 100%;
    min-height: 55px;

    margin-top: 5px;
    padding: 12px 22px;

    color: #FFFFFF;

    background: linear-gradient(
        110deg,
        #3299DC,
        #21618C
    );

    border: 0;
    border-radius: 9px;

    font-family: inherit;
    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    box-shadow: 0 7px 17px rgb(33 97 140 / 22%);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.dr-imc__calculate-button:hover {
    transform: translateY(-3px);

    filter: brightness(1.08);

    box-shadow: 0 12px 23px rgb(23 63 95 / 28%);
}

.dr-imc__calculate-button:active {
    transform: translateY(0);
}

.dr-imc__calculate-button:focus-visible {
    outline: 3px solid #72A8CF;
    outline-offset: 4px;
}

.dr-imc__form-note {
    display: flex;
    align-items: center;

    gap: 10px;

    margin: 0;

    color: #8193A1;

    font-size: 12px;
    line-height: 1.4;
}

.dr-imc__form-note i {
    color: #3299DC;
    font-size: 18px;
}

/* ==========================================================
   INFORMACIÓN MÉDICA
   ========================================================== */

.dr-imc__information {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 10px 0;
}

.dr-imc__information-label {
    margin-bottom: 10px;
}

.dr-imc__information h3 {
    margin: 0 0 20px;

    color: #FFFFFF;

    font-size: clamp(22px, 2.1vw, 28px);
    font-weight: 700;

    line-height: 1.2;
}

.dr-imc__information > p {
    margin: 0 0 12px;

    color: rgb(255 255 255 / 92%);

    font-size: 16px;
    line-height: 1.3;

    text-align: justify;
}

/* Fórmula */

.dr-imc__formula {
    display: flex;
    flex-direction: column;

    gap: 9px;

    margin-top: 14px;
    padding: 20px 25px;

    background: var(--blue-dark);

    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 9px;
}

.dr-imc__formula span {
    color: #BDE7FF;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.dr-imc__formula strong {
    color: #FFFFFF;
    font-size: 17px;
}

/* ==========================================================
   CLASIFICACIÓN
   ========================================================== */

.dr-imc__classification {
    margin-top: 20px;
}

.dr-imc__classification-heading {
    margin-bottom: 22px;
    text-align: center;
}

.dr-imc__classification-heading h3 {
    margin: 10px 0;

    color: #FFFFFF;

    font-size: clamp(20px, 2.1vw, 22px);
}

.dr-imc__categories {
    display: grid;

    grid-template-columns: repeat(6, minmax(0, 1fr));

    gap: 10px;
}

/* Categorías */

.dr-imc__category {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 120px;

    padding: 17px 10px;

    color: #173F5F;
    background: #FFFFFF;

    border-radius: 11px;

    box-shadow: 0 8px 20px rgb(12 44 68 / 12%);

    text-align: center;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.dr-imc__category:hover {
    transform: translateY(-5px);

    box-shadow: 0 14px 25px rgb(12 44 68 / 20%);
}

.dr-imc__category-indicator {
    width: 42px;
    height: 5px;

    margin-bottom: 13px;

    background: var(--category-color);

    border-radius: 5px;
}

.dr-imc__category h4 {
    margin: 0 0 9px;

    font-size: 14px;
    font-weight: 800;
}

.dr-imc__category strong {
    color: var(--category-color);

    font-size: 14px;
    font-weight: 900;
}

.dr-imc__category small {
    margin-top: 6px;

    color: #8092A0;

    font-size: 12px;
}

.imc-range-card__silhouette {
    position: absolute;
    right: 0;
    display: block;
    width: auto;
    height: 105px;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.dr-imc__category:hover .imc-range-card__silhouette {
    transform: scale(1.08);
}

/* Ajustes para tablets */
@media (max-width: 768px) {
    .imc-range-card__silhouette {
        height: 95px;
    }
}

/* Ajustes para móviles */
@media (max-width: 480px) {
    .imc-range-card__silhouette {
        height: 85px;
        margin-bottom: 8px;
    }
}

/* Colores */

.dr-imc__category--underweight {
    --category-color: #3299DC;
}

.dr-imc__category--normal {
    --category-color: #36A66B;
}

.dr-imc__category--overweight {
    --category-color: #D9A600;
}

.dr-imc__category--obesity1 {
    --category-color: #E67E22;
}

.dr-imc__category--obesity2 {
    --category-color: #D83A3A;
}

.dr-imc__category--obesity3 {
    --category-color: #A71919;
}

/* ==========================================================
   ADVERTENCIA MÉDICA
   ========================================================== */

.dr-imc__disclaimer {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    margin-top: 35px;
    padding: 17px 20px;

    color: rgb(255 255 255 / 88%);

    background: rgb(12 44 68 / 18%);

    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 9px;
}

.dr-imc__disclaimer i {
    flex-shrink: 0;

    margin-top: 3px;

    color: #C7E9FC;
}

.dr-imc__disclaimer p {
    margin: 0;

    font-size: 12px;
    line-height: 1.7;
}

/* ==========================================================
   TRANSICIÓN INFERIOR
   ========================================================== */

.dr-imc__bottom-wave {
    position: absolute;
    z-index: 1;

    left: -2%;
    bottom: -1px;

    width: 104%;
    height: 75px;

    background: #FFFFFF;

    clip-path: polygon(
        0 100%,
        0 65%,
        100% 0,
        100% 100%
    );

    pointer-events: none;
}

/* ==========================================================
   TABLETAS
   ========================================================== */

@media (max-width: 1050px) {

    .dr-imc__content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .dr-imc__categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 768px) {

    .dr__imc--ph {
        padding: 55px 25px 105px;
    }

    .dr-imc__content {
        grid-template-columns: 1fr;
    }

    .dr-imc__calculator {
        max-width: 650px;
        width: 100%;
        margin: 0 auto;
    }

    .dr-imc__information {
        padding: 15px 5px;
    }

    .dr-imc__information h3 {
        font-size: 28px;
    }

    .dr-imc__categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

/* ==========================================================
   MÓVILES
   ========================================================== */

@media (max-width: 480px) {

    .dr__imc--ph {
        padding: 45px 17px 90px;
    }

    .dr-imc__header {
        margin-bottom: 32px;
    }

    .dr-imc__header h2 {
        font-size: 28px;
    }

    .dr-imc__header p {
        font-size: 13px;
    }

    .dr-imc__calculator {
        padding: 22px 17px;
        border-radius: 14px;
    }

    .dr-imc__calculator-heading h3 {
        font-size: 20px;
    }

    .dr-imc__information h3 {
        font-size: 25px;
    }

    .dr-imc__information > p {
        font-size: 13px;
        text-align: left;
    }

    .dr-imc__categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dr-imc__category {
        min-height: 130px;
    }

    .dr-imc__category h4 {
        font-size: 12px;
    }

    .dr-imc__category strong {
        font-size: 12px;
    }

    .dr-imc__formula strong {
        font-size: 15px;
    }

}

/* ==========================================================
   ACCESIBILIDAD
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .dr__imc--ph *,
    .dr__imc--ph *::before,
    .dr__imc--ph *::after {
        transition: none !important;
        animation: none !important;
    }

}
