.medidas-hero {
    padding-bottom: 1rem;
}

.medidas-hero p {
    max-width: 760px;
}

.medidas-section {
    padding-top: 1rem;
}

.medidas-intro,
.medidas-card,
.medidas-note {
    border: 1px solid rgba(190, 148, 74, 0.2);
}

.medidas-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.medidas-intro h2,
.medidas-card h2 {
    margin: .25rem 0 .55rem;
}

.medidas-intro p,
.medidas-card p,
.medidas-note p {
    margin: 0;
}

.medidas-kicker,
.medidas-step,
.resultado-label {
    display: inline-flex;
    color: #c69b55;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.medidas-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: flex-end;
}

.medidas-help-btn {
    white-space: nowrap;
}

.medidas-help-btn:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.medidas-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 1.5rem;
    align-items: start;
}

.medidas-card {
    padding: 1.5rem;
}

.medidas-card-highlight {
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.medidas-card-heading {
    margin-bottom: 1.1rem;
}

.medidas-form {
    display: grid;
    gap: 1rem;
}

.medidas-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
}

.medidas-form-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.medidas-form label {
    display: grid;
    gap: .42rem;
    color: inherit;
    font-weight: 700;
}

.medidas-form small,
.optional {
    color: rgba(255, 255, 255, .62);
    font-size: .78rem;
    font-weight: 500;
}

.medidas-form input,
.medidas-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .055);
    color: #fff;
    font: inherit;
    outline: none;
    padding: .82rem .9rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.medidas-form textarea {
    min-height: 104px;
    resize: vertical;
}

.medidas-form input:focus,
.medidas-form textarea:focus {
    border-color: rgba(198, 155, 85, .8);
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 3px rgba(198, 155, 85, .14);
}

.input-unit {
    position: relative;
}

.input-unit input {
    padding-right: 3rem;
}

.input-unit span {
    position: absolute;
    top: 50%;
    right: .9rem;
    color: rgba(255, 255, 255, .65);
    font-size: .82rem;
    font-weight: 800;
    transform: translateY(-50%);
}

.form-feedback,
.medidas-notice,
.resultado-talla {
    border-radius: 12px;
    padding: .9rem 1rem;
}

.form-feedback {
    border: 1px solid rgba(255, 112, 112, .42);
    background: rgba(152, 34, 34, .2);
    color: #ffd0d0;
    font-size: .9rem;
}

.medidas-notice {
    border: 1px solid rgba(198, 155, 85, .35);
    background: rgba(198, 155, 85, .1);
    color: rgba(255, 255, 255, .84);
    font-size: .9rem;
    line-height: 1.55;
}

.resultado-talla {
    display: grid;
    gap: .62rem;
    margin-top: 1rem;
    border: 1px solid rgba(198, 155, 85, .48);
    background: linear-gradient(145deg, rgba(198, 155, 85, .15), rgba(255, 255, 255, .04));
}

.resultado-talla[hidden] {
    display: none;
}

.resultado-talla h3,
.resultado-talla p {
    margin: 0;
}

.medidas-note {
    display: flex;
    gap: .45rem;
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    color: rgba(255, 255, 255, .84);
    font-size: .92rem;
    line-height: 1.55;
}

.medidas-note strong {
    color: #c69b55;
}

.medidas-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.medidas-modal.is-open {
    display: flex;
}

.medidas-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(5px);
}

.medidas-modal-content {
    position: relative;
    z-index: 1;
    width: min(92vw, 760px);
    max-height: 92vh;
    overflow: auto;
    border: 1px solid rgba(198, 155, 85, .42);
    border-radius: 18px;
    background: #111;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .58);
    padding: 1rem;
}

.medidas-modal-content h2 {
    margin: 0 3rem 1rem 0;
    font-size: 1.25rem;
}

.medidas-modal-video {
    width: min(92vw, 455px);
}

.medidas-modal-video video,
.medidas-modal-image img {
    display: block;
    width: 100%;
    max-height: 78vh;
    border-radius: 12px;
    object-fit: contain;
    background: #000;
}

.medidas-modal-close {
    position: absolute;
    top: .72rem;
    right: .75rem;
    width: 2.3rem;
    height: 2.3rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
}

.medidas-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .medidas-intro,
    .medidas-note {
        display: grid;
    }

    .medidas-help-actions {
        justify-content: flex-start;
    }

    .medidas-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .medidas-intro,
    .medidas-card {
        padding: 1.1rem;
    }

    .medidas-help-actions,
    .medidas-help-btn {
        width: 100%;
    }

    .medidas-form-grid,
    .medidas-form-grid-two {
        grid-template-columns: 1fr;
    }

    .medidas-note {
        gap: .15rem;
    }
}
