.gimsa-intake-root .medium-step .visit-medium-picker legend {
    color: #1d1d1f;
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -.045em;
}

.gimsa-intake-root .medium-step .medium-intro {
    margin: 10px 0 25px;
    color: #6e6e73;
    font-size: 14px;
}

.gimsa-intake-root .medium-tile-grid { gap: 10px; }

.gimsa-intake-root .medium-tile-face {
    min-height: 68px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    padding: 11px 14px;
    border: 1px solid #e5e5ea;
    border-radius: 15px;
    background: #f8f8fa;
    box-shadow: none;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.gimsa-intake-root .medium-tile-icon,
.gimsa-intake-root .medium-tile-social .medium-tile-icon,
.gimsa-intake-root .medium-tile--referido .medium-tile-icon,
.gimsa-intake-root .medium-tile-more .medium-tile-icon {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    margin: 0;
    color: #42444a;
}

.gimsa-intake-root .medium-tile-icon .medium-line-icon { width: 23px; height: 23px; stroke-width: 1.65; }
.gimsa-intake-root .medium-tile-icon .bx { font-size: 23px; }
.gimsa-intake-root .medium-tile-icon img { display: block; width: 29px; height: 23px; object-fit: contain; }
.gimsa-intake-root .medium-tile-copy { min-width: 0; flex: 1; display: grid; gap: 2px; }
.gimsa-intake-root .medium-tile-copy b { color: #252529; font-size: 13px; font-weight: 650; line-height: 1.22; }
.gimsa-intake-root .medium-tile-copy small { color: #6e6e73; font-size: 10px; line-height: 1.2; }

.gimsa-intake-root .medium-tile-check {
    position: static;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    background: #007aff;
    font-size: 15px;
}

.gimsa-intake-root .medium-tile-chevron { flex: 0 0 auto; color: #a7a7ad; font-size: 20px; }
.gimsa-intake-root .medium-tile-more .medium-tile-face { border-style: solid; }

.gimsa-intake-root .medium-tile input:checked + .medium-tile-face,
.gimsa-intake-root .medium-tile-social.is-selected .medium-tile-face,
.gimsa-intake-root .medium-tile-more.is-selected .medium-tile-face {
    border-color: #007aff;
    background: #f0f6ff;
    box-shadow: none;
}

.gimsa-intake-root .medium-tile input:checked + .medium-tile-face .medium-tile-icon,
.gimsa-intake-root .medium-tile-social.is-selected .medium-tile-icon,
.gimsa-intake-root .medium-tile-more.is-selected .medium-tile-icon { color: #007aff; }

@media (hover: hover) {
    .gimsa-intake-root .medium-tile:hover .medium-tile-face { border-color: #c9c9cf; background: #fff; }
    .gimsa-intake-root .medium-tile:has(input:checked):hover .medium-tile-face,
    .gimsa-intake-root .medium-tile-social.is-selected:hover .medium-tile-face,
    .gimsa-intake-root .medium-tile-more.is-selected:hover .medium-tile-face { border-color: #007aff; background: #f0f6ff; }
}

.gimsa-intake-root .medium-sheet { border-color: #e5e5ea; border-radius: 22px; box-shadow: 0 24px 68px rgba(0, 0, 0, .16); }
.gimsa-intake-root .medium-sheet-grabber { background: #d1d1d6; }
.gimsa-intake-root .medium-sheet-head { border-bottom-color: #eeeef0; }
.gimsa-intake-root .medium-sheet-head span { color: #6e6e73; font-size: 10px; letter-spacing: .06em; }
.gimsa-intake-root .medium-sheet-head h3 { color: #1d1d1f; font-size: 24px; font-weight: 700; }
.gimsa-intake-root .medium-sheet-head p { color: #6e6e73; font-size: 12px; }
.gimsa-intake-root .medium-sheet-close { border: 0; background: #f2f2f7; color: #6e6e73; }
.gimsa-intake-root .medium-sheet-close:hover { background: #e8e8ed; }
.gimsa-intake-root .medium-sheet-options { gap: 7px; }
.gimsa-intake-root .medium-sheet-option > .medium-sheet-row { min-height: 58px; border: 1px solid #e5e5ea; border-radius: 13px; background: #fafafb; }
.gimsa-intake-root .medium-sheet-option-icon { color: #42444a; font-size: 23px; }
.gimsa-intake-root .medium-sheet-option b { color: #252529; font-size: 14px; font-weight: 600; }
.gimsa-intake-root .medium-sheet-option-check { border-color: #c7c7cc; }
.gimsa-intake-root .medium-sheet-option input:checked + .medium-sheet-row { border-color: #007aff; background: #f0f6ff; }
.gimsa-intake-root .medium-sheet-option input:checked + .medium-sheet-row .medium-sheet-option-check { border-color: #007aff; background: #007aff; }

@media (max-width: 600px) {
    .gimsa-intake-root .medium-step .medium-intro { margin-bottom: 22px; }
    .gimsa-intake-root .medium-tile-grid { gap: 9px; }
    .gimsa-intake-root .medium-tile-face { min-height: 66px; padding: 10px 11px; gap: 9px; }
    .gimsa-intake-root .medium-tile-copy b { font-size: 12px; }
    .gimsa-intake-root .medium-sheet { border-radius: 22px 22px 0 0; }
}

/* ===== Medio de contacto: tarjetas 100% táctiles ===== */
.gimsa-intake-root .medium-step .medium-tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gimsa-intake-root .medium-step .medium-tile,
.gimsa-intake-root .medium-step .medium-tile-social { -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; }
.gimsa-intake-root .medium-step .medium-tile-face {
    position: relative;
    overflow: hidden;
    min-height: 118px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 10px 15px;
    border: 1.5px solid #dde6ee;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 50, 90, .06);
    text-align: center;
    transition: transform .16s cubic-bezier(.3, .7, .4, 1.4), background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.gimsa-intake-root .medium-step .medium-tile-face::after {
    content: "";
    position: absolute;
    inset: 50%;
    border-radius: 50%;
    background: rgba(11, 95, 173, .14);
    opacity: 0;
    transition: inset .4s ease, opacity .4s ease;
    pointer-events: none;
}
.gimsa-intake-root .medium-step .medium-tile:active .medium-tile-face,
.gimsa-intake-root .medium-step .medium-tile-social:active .medium-tile-face { transform: scale(.94); }
.gimsa-intake-root .medium-step .medium-tile:active .medium-tile-face::after,
.gimsa-intake-root .medium-step .medium-tile-social:active .medium-tile-face::after { inset: -20%; opacity: 1; transition: 0s; }

.gimsa-intake-root .medium-step .medium-tile-icon,
.gimsa-intake-root .medium-step .medium-tile-social .medium-tile-icon,
.gimsa-intake-root .medium-step .medium-tile--referido .medium-tile-icon {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    /* Icono sin fondo ni recuadro: solo el trazo. */
    border-radius: 0;
    background: transparent;
    color: #0b5fad;
    transition: color .2s ease, transform .2s ease;
}
.gimsa-intake-root .medium-step .medium-tile-icon .medium-line-icon { width: 26px; height: 26px; stroke-width: 1.8; }
.gimsa-intake-root .medium-step .medium-tile-copy { flex: 0 0 auto; justify-items: center; }
.gimsa-intake-root .medium-step .medium-tile-copy b { color: #163a5e; font-size: 14px; font-weight: 700; line-height: 1.2; }
.gimsa-intake-root .medium-step .medium-tile-copy small { color: #5f7488; font-size: 11px; font-weight: 600; }

.gimsa-intake-root .medium-step .medium-tile-check {
    position: absolute;
    top: 9px;
    right: 9px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #0b5fad;
    font-size: 18px;
    opacity: 0;
    transform: scale(.4);
    transition: opacity .18s ease, transform .26s cubic-bezier(.3, .7, .4, 1.6);
}
.gimsa-intake-root .medium-step .medium-tile-chevron { position: absolute; top: 9px; right: 8px; color: #9db0c2; font-size: 20px; }

.gimsa-intake-root .medium-step .medium-tile input:checked + .medium-tile-face,
.gimsa-intake-root .medium-step .medium-tile-social.is-selected .medium-tile-face {
    border-color: transparent;
    background: linear-gradient(160deg, #1477d6, #0a4f99);
    box-shadow: 0 12px 26px rgba(11, 95, 173, .32);
    animation: medium-tile-pop .32s cubic-bezier(.3, .7, .4, 1.5);
}
.gimsa-intake-root .medium-step .medium-tile input:checked + .medium-tile-face .medium-tile-icon,
.gimsa-intake-root .medium-step .medium-tile-social.is-selected .medium-tile-icon { background: transparent; color: #fff; transform: scale(1.06); }
.gimsa-intake-root .medium-step .medium-tile input:checked + .medium-tile-face .medium-tile-copy b,
.gimsa-intake-root .medium-step .medium-tile-social.is-selected .medium-tile-copy b { color: #fff; }
.gimsa-intake-root .medium-step .medium-tile-social.is-selected .medium-tile-copy small { color: rgba(255, 255, 255, .85); }
.gimsa-intake-root .medium-step .medium-tile input:checked + .medium-tile-face .medium-tile-check,
.gimsa-intake-root .medium-step .medium-tile-social.is-selected .medium-tile-check { opacity: 1; transform: scale(1); }

@media (hover: hover) {
    .gimsa-intake-root .medium-step .medium-tile:hover .medium-tile-face { border-color: #b8d2ea; background: #fbfdff; }
    .gimsa-intake-root .medium-step .medium-tile:has(input:checked):hover .medium-tile-face,
    .gimsa-intake-root .medium-step .medium-tile-social.is-selected:hover .medium-tile-face { border-color: transparent; background: linear-gradient(160deg, #1477d6, #0a4f99); }
}

/* Opciones de redes sociales: renglones grandes para el dedo. */
.gimsa-intake-root .medium-sheet-option { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.gimsa-intake-root .medium-sheet-option > .medium-sheet-row { min-height: 66px; padding-inline: 16px; border: 1.5px solid #dde6ee; border-radius: 16px; background: #fff; transition: transform .14s ease, background .2s ease, border-color .2s ease; }
.gimsa-intake-root .medium-sheet-option:active > .medium-sheet-row { transform: scale(.97); background: #f1f7fd; }
.gimsa-intake-root .medium-sheet-option-icon { font-size: 26px; }
.gimsa-intake-root .medium-sheet-option b { font-size: 15px; }
.gimsa-intake-root .medium-sheet-option input:checked + .medium-sheet-row { border-color: #0b5fad; background: #eaf4ff; }

@keyframes medium-tile-pop { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }

@media (max-width: 600px) {
    .gimsa-intake-root .medium-step .medium-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gimsa-intake-root .medium-step .medium-tile-face { min-height: 112px; padding: 16px 8px 13px; border-radius: 18px; }
    .gimsa-intake-root .medium-step .medium-tile-copy b { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .gimsa-intake-root .medium-step .medium-tile-face,
    .gimsa-intake-root .medium-step .medium-tile-check,
    .gimsa-intake-root .medium-sheet-option > .medium-sheet-row { transition: none; animation: none; }
}

/* Tableta y pantallas anchas: tarjetas horizontales, para ver las opciones completas sin desplazarse. */
@media (min-width: 761px) {
    .gimsa-intake-root .medium-step .medium-tile-grid { gap: 10px; }
    .gimsa-intake-root .medium-step .medium-tile-face {
        min-height: 66px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 9px 38px 9px 12px;
        border-radius: 17px;
        text-align: left;
    }
    .gimsa-intake-root .medium-step .medium-tile-icon,
    .gimsa-intake-root .medium-step .medium-tile-social .medium-tile-icon,
    .gimsa-intake-root .medium-step .medium-tile--referido .medium-tile-icon { width: 34px; height: 34px; flex: 0 0 34px; margin: 0; }
    .gimsa-intake-root .medium-step .medium-tile-copy { min-width: 0; flex: 1 1 auto; justify-items: start; }
    .gimsa-intake-root .medium-step .medium-tile-check { top: calc(50% - 12px); right: 9px; }
    .gimsa-intake-root .medium-step .medium-tile-chevron { top: calc(50% - 10px); right: 9px; }
}
