/* ── Promo Banner ────────────────────────────────────────── */
.promo-banner-carousel {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid #e8e8e8;
    background: #e3f9e5;
}
.promo-carousel-inner {
    display: flex;
    transition: transform 0.55s ease-in-out;
}
.promo-slide {
    min-width: 100%;
    padding: 11px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.promo-content {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 900px;
    width: 100%;
}
.promo-icon-img {
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}
.promo-text { font-size: 13.5px; color: #333; line-height: 1.5; }
.promo-btn {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    margin-left: 6px;
    white-space: nowrap;
    transition: opacity .15s;
}
.promo-btn:hover { opacity: .86; }

/* ── Stepper ─────────────────────────────────────────────── */
.stepper-container {
    padding: 34px 24px 26px;
    display: flex;
    justify-content: center;
}
.stepper { display: flex; align-items: center; }

.step { display: flex; flex-direction: column; align-items: center; gap: 7px; }

.step-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #d0d0d0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #b0b0b0;
    transition: all .25s;
}
.step.active   .step-circle { background: var(--c-lib-tb-secondaryD300); border-color: var(--c-lib-tb-secondaryD300); color: white; }
.step.complete .step-circle { background: var(--c-lib-tb-primaryBase);   border-color: var(--c-lib-tb-primaryBase);   color: white; }

.step-label { font-size: 13px; color: #b0b0b0; font-weight: 500; white-space: nowrap; }
.step.active   .step-label { color: var(--c-lib-tb-primaryBase); font-weight: 700; }
.step.complete .step-label { color: var(--c-lib-tb-secondaryD300); font-weight: 600; }

.step-line {
    width: 110px;
    height: 2px;
    background: #ddd;
    margin-bottom: 26px;
    flex-shrink: 0;
}

/* ── Search Card ─────────────────────────────────────────── */
.search-card-container {
    padding: 0 24px 36px;
    display: flex;
    justify-content: center;
}
.search-card {
    background: white;
    border-radius: 8px;
    padding: 30px 36px 34px;
    width: 100%;
    max-width: 1050px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.09);
}
.search-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-lib-tb-primaryBase);
    margin-bottom: 22px;
}

/* ── Form Row ────────────────────────────────────────────── */
.search-form-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* ── Input Group ─────────────────────────────────────────── */
.input-group {
    position: relative;
    flex: 1;
    min-width: 0;
    margin-top: 8px; /* espacio para el label flotante por encima del borde */
}

.floating-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #aaa;
    pointer-events: none;
    transition: top .14s ease, font-size .14s ease, color .14s ease,
                transform .14s ease, background .14s ease, padding .14s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 50px);
    z-index: 2;
    line-height: 1;
    background: transparent;
}
.floating-label.active {
    top: 0;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--c-lib-tb-primaryBase);
    font-weight: 600;
    background: white;
    padding: 0 4px;
}
.input-group.is-disabled .floating-label { color: #bbb; }

.input-control {
    width: 100%;
    height: 58px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    padding: 0 44px 0 14px;
    font-size: 15px;
    font-family: 'Roboto Condensed', sans-serif;
    color: #1a1a1a;
    background: white;
    outline: none;
    transition: border-color .15s;
}
.input-control::placeholder { color: transparent; }
.input-control:focus::placeholder { color: #bbb; }
.input-control:focus { border-color: var(--c-lib-tb-primaryBase); }
.input-control.soft-bg { background: #f2f2f2; border-color: #ddd; }
.input-control:disabled { background: #f2f2f2; color: #aaa; cursor: default; border-color: #e0e0e0; }

.search-building-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-lib-tb-primaryBase);
    font-size: 17px;
    pointer-events: none;
    z-index: 3;
}
.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 15px;
    cursor: pointer;
    padding: 6px 7px;
    border-radius: 50%;
    line-height: 1;
    transition: color .12s, background .12s;
    z-index: 3;
}
.clear-btn:hover { color: var(--c-lib-tb-primaryBase); background: var(--c-lib-tb-tertiaryL400); }

/* ── Dropdown ────────────────────────────────────────────── */
.search-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.13);
    z-index: 400;
    max-height: 430px;
    overflow-y: auto;
    animation: dropIn .14s ease;
}
.search-dropdown-menu::-webkit-scrollbar { width: 5px; }
.search-dropdown-menu::-webkit-scrollbar-thumb { background: #d6c8eb; border-radius: 3px; }

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f2f2f2;
    transition: background .1s;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--c-lib-tb-tertiaryL400); }

.item-line {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 4px;
    line-height: 1.4;
}
.item-line:last-child { margin-bottom: 0; }

.item-icon { flex-shrink: 0; font-size: 13px; margin-top: 2px; width: 16px; text-align: center; }
.icon-purple { color: var(--c-lib-tb-primaryBase); }
.icon-gray   { color: #999; }

.item-text  { font-size: 13px; color: #555; }
.item-title { font-size: 14px; font-weight: 700; color: #1a1a1a; }

.dropdown-footer {
    padding: 10px 15px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
}
.no-encuentro-link {
    font-size: 13px;
    color: var(--c-lib-tb-primaryBase);
    text-decoration: none;
    font-weight: 600;
    transition: opacity .12s;
}
.no-encuentro-link:hover { opacity: .75; }

/* States */
.dd-loading {
    padding: 20px;
    text-align: center;
    color: var(--c-lib-tb-primaryBase);
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.dd-spinner {
    width: 17px; height: 17px;
    border: 2.5px solid #d6c8eb;
    border-top-color: var(--c-lib-tb-primaryBase);
    border-radius: 50%;
    animation: ddSpin .65s linear infinite;
    flex-shrink: 0;
}
@keyframes ddSpin { to { transform: rotate(360deg); } }
.dd-empty { padding: 20px; text-align: center; color: #aaa; font-size: 13.5px; }

/* ── Continuar ───────────────────────────────────────────── */
.btn-group { flex-shrink: 0; }

.btn-continuar {
    height: 58px;
    padding: 0 30px;
    border-radius: 29px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Roboto Condensed', sans-serif;
    cursor: not-allowed;
    background: #e0e0e0;
    color: #a8a8a8;
    transition: background .2s, color .2s, box-shadow .2s;
    white-space: nowrap;
}
.btn-continuar.active {
    background: var(--c-lib-tb-secondaryBase);
    color: var(--c-lib-tb-primaryBase);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(130,231,120,0.4);
}
.btn-continuar.active:hover { background: var(--c-lib-tb-secondaryD300); color: white; }
.btn-continuar.active:active { transform: translateY(1px); }

/* ── Info Cards ──────────────────────────────────────────── */
.info-cards-container {
    display: flex;
    gap: 18px;
    max-width: 1050px;
    margin: 0 auto 44px;
    padding: 0 24px;
}
.info-card {
    flex: 1;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    min-height: 160px;
}
.info-img-wrapper { flex-shrink: 0; }
.aprende-card .info-img-wrapper { width: 185px; overflow: hidden; }
.aprende-card .info-img-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }
.icon-illustration {
    width: 110px;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; background: white;
}

.info-text-wrapper {
    flex: 1;
    padding: 20px 22px;
    display: flex; flex-direction: column; justify-content: center;
    gap: 8px;
}
.bg-green-light { background: #e3f9e5; }

.info-text-wrapper h4 { font-size: 16px; font-weight: 700; color: #1a1a1a; line-height: 1.35; }
.bg-green-light h4    { color: #11682b; }
.info-text-wrapper p  { font-size: 13.5px; color: #555; line-height: 1.55; }
.bg-green-light p     { color: #2d7a40; }

.btn-ver-video {
    align-self: flex-start;
    background: var(--c-lib-tb-secondaryD300);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: 'Roboto Condensed', sans-serif;
    cursor: pointer;
    transition: opacity .15s;
    margin-top: 2px;
}
.btn-ver-video:hover { opacity: .85; }

.btn-saber-mas {
    align-self: flex-start;
    background: var(--c-lib-tb-primaryBase);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: 'Roboto Condensed', sans-serif;
    cursor: pointer;
    transition: opacity .15s;
    margin-top: 2px;
}
.btn-saber-mas:hover { opacity: .85; }

/* ── Medios de Pago ──────────────────────────────────────── */
.medios-pago-container {
    max-width: 1050px;
    margin: 0 auto 20px;
    padding: 0 24px;
    text-align: center;
}
.medios-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--c-lib-tb-primaryBase);
    margin-bottom: 18px;
}
.medios-icons-wrap { overflow: hidden; }
.medios-icons {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: nowrap;
    padding-bottom: 6px;
}
.medios-icons span {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: #444; font-weight: 600; white-space: nowrap;
}
.medios-icons i { color: var(--c-lib-tb-primaryBase); font-size: 19px; }
.medios-dup { display: none !important; }
.medios-disclaimer { font-size: 12px; color: #bbb; margin-top: 10px; font-style: italic; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 820px) {
    .search-card { padding: 22px 18px 26px; }
    .search-form-row { flex-direction: column; }
    .input-group { width: 100%; }
    .btn-group { width: 100%; }
    .btn-continuar { width: 100%; }
    .step-line { width: 60px; }
    .info-cards-container { flex-direction: column; }
    .aprende-card .info-img-wrapper { width: 130px; }
    .medios-dup { display: flex !important; }
    .medios-icons { flex-wrap: nowrap; animation: marquee 14s linear infinite; }
}
@media (max-width: 480px) {
    .search-card { padding: 18px 14px 22px; }
    .search-title { font-size: 20px; }
    .stepper-container { padding: 24px 16px 18px; }
    .step-line { width: 40px; }
    .input-control { font-size: 14px; }
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
