/* base-data.com.ar */
:root {
    --navy: #0E1A33;
    --navy-2: #22304F;
    --ink: #0E1726;
    --muted: #4A5568;
    --label: #3D4A5E;
    --line: #D9DEE6;
    --input: #C3CBD8;
    --gris: #F3F5F8;
    --accent: #1D4ED8;
    --accent-dk: #1E3A8A;
    --soft: #C9D5EC;
    --light: #9FC2FF;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter,system-ui,sans-serif;
    color: var(--ink);
    background: #fff
}

h1, h2, h3 {
    font-family: 'Space Grotesk',sans-serif;
    margin: 0
}

a {
    color: var(--accent)
}

    a:hover {
        color: var(--accent-dk)
    }

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff !important;
    text-decoration: none;
    font: inherit;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    min-height: 44px
}

    .btn:hover {
        background: var(--accent-dk)
    }

.btn-sm {
    padding: 10px 18px;
    border-radius: 8px
}

.btn-lg {
    width: 100%;
    padding: 15px 20px;
    font-size: 17px;
    min-height: 52px
}

/* Header */
.top {
    background: var(--navy);
    border-bottom: 1px solid var(--navy-2)
}

.top-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px
}

.logo {
    font-family: 'Space Grotesk',sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #fff;
    text-decoration: none
}

    .logo span {
        color: #7FB0FF
    }

.menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    font-size: 15px
}

    .menu a:not(.btn) {
        color: #D6E0F5;
        text-decoration: none
    }

/* Hero */
.hero {
    background: var(--navy);
    color: #fff
}

.hero-in {
    padding-top: 64px;
    padding-bottom: 88px;
    display: flex;
    flex-direction: column;
    gap: 44px
}

.hero-txt {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 22px
}

.tag {
    align-self: flex-start;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--light);
    border: 1px solid #34507F;
    border-radius: 999px;
    padding: 6px 14px
}

.hero h1 {
    font-weight: 700;
    font-size: clamp(36px,5vw,58px);
    line-height: 1.05;
    letter-spacing: -1.5px
}

.hero-txt p {
    margin: 0;
    font-size: 19px;
    line-height: 1.55;
    color: var(--soft)
}

/* Tarjeta buscador */
.card {
    background: #fff;
    color: var(--ink);
    border-radius: 16px;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.35)
}

.col-filtros {
    flex: 999 1 560px;
    min-width: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 26px
}

.col-resumen {
    flex: 1 1 340px;
    min-width: 0;
    background: var(--gris);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 22px
}

.card h2 {
    font-size: 26px
}

.sub {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--muted)
}

fieldset {
    border: none;
    margin: 0;
    padding: 0;
    min-width: 0
}

legend {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--label);
    padding: 0 0 12px
}

.grid2 {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px
}

.fila2 {
    display: flex;
    flex-wrap: wrap;
    gap: 28px
}

    .fila2 > fieldset {
        flex: 1 1 220px
    }

.campo {
    display: flex;
    flex-direction: column;
    gap: 6px
}

    .campo label {
        font-size: 14px;
        font-weight: 600
    }

    .campo select, .campo input {
        font: inherit;
        padding: 11px 12px;
        border: 1px solid var(--input);
        border-radius: 8px;
        background: #fff;
        min-height: 44px;
        width: 100%
    }

        .campo select:disabled {
            background: #EEF1F5;
            color: #6B7585
        }

select:focus, input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px
}

/* asp:CheckBox renderiza <span class="chip"><input/><label/></span> */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--input);
    border-radius: 8px;
    background: #fff;
    font-size: 15px
}

    .chip:has(input:checked) {
        border-color: var(--accent);
        background: #EEF3FC
    }

    .chip input, .campos input {
        width: 20px;
        height: 20px;
        accent-color: var(--accent);
        margin: 0
    }

    .chip label {
        cursor: pointer
    }

.campos {
    gap: 4px 12px
}

    .campos > span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        font-size: 15px
    }

.disponibles {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px
}

    .disponibles .mini {
        width: 100%;
        font-size: 13px;
        color: var(--label);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .5px
    }

    .disponibles .num {
        font-family: 'Space Grotesk',sans-serif;
        font-size: 34px;
        font-weight: 700
    }

    .disponibles .mini-reg {
        font-size: 18px;
        font-weight: 600
    }

.total {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    color: var(--muted)
}

    .total strong {
        font-family: 'Space Grotesk',sans-serif;
        font-size: 30px;
        color: var(--ink)
    }

.msg {
    display: block;
    background: #FDECEC;
    color: #9B1C1C;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px
}

.nota {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    text-align: center
}

.cargando {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--navy);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3)
}

/* Secciones */
.sec {
    padding: 88px 0
}

    .sec h2 {
        font-size: clamp(30px,3.5vw,42px);
        font-weight: 700;
        letter-spacing: -1px;
        margin-bottom: 16px
    }

.gris {
    background: var(--gris)
}

.lead {
    margin: 0 0 32px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 680px
}

.items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 16px
}

    .items li {
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 24px;
        font-weight: 600;
        font-size: 18px
    }

.pasos {
    list-style: none;
    counter-reset: p;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 20px
}

    .pasos li {
        counter-increment: p;
        background: #fff;
        border-radius: 12px;
        padding: 28px;
        display: flex;
        flex-direction: column;
        gap: 10px
    }

        .pasos li::before {
            content: counter(p);
            font-family: 'Space Grotesk',sans-serif;
            font-size: 36px;
            font-weight: 700;
            color: var(--accent)
        }

    .pasos strong {
        font-size: 19px
    }

    .pasos span {
        font-size: 16px;
        line-height: 1.5;
        color: var(--muted)
    }

.dos {
    display: flex;
    flex-wrap: wrap;
    gap: 24px
}

.box {
    flex: 1 1 360px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

    .box h2 {
        font-size: 30px;
        margin-bottom: 8px
    }

    .box h3 {
        font-family: Inter,sans-serif;
        font-size: 18px;
        margin-top: 8px
    }

    .box p {
        margin: 0;
        font-size: 16px;
        line-height: 1.6;
        color: var(--muted)
    }

    .box.oscuro {
        background: var(--navy);
        border-color: var(--navy);
        color: #fff
    }

        .box.oscuro p {
            color: var(--soft)
        }

        .box.oscuro a {
            color: var(--light);
            font-weight: 600
        }

.angosto {
    max-width: 860px
}

details {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 12px
}

summary {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer
}

details p {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--muted)
}

.pie {
    background: var(--navy);
    color: var(--soft)
}

.pie-in {
    padding-top: 40px;
    padding-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    font-size: 15px
}

.pie nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px
}

.pie a {
    color: var(--soft)
}

@media (max-width:640px) {
    .grid3 {
        grid-template-columns: 1fr
    }

    .col-filtros, .col-resumen {
        padding: 24px
    }
}

/* ===== Paso 1: Contar registros (columna izquierda) ===== */
.conteo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line)
}

.btn-contar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 32px;
    font: inherit;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(180deg,#2563EB,#1D4ED8);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(29,78,216,.35);
    transition: transform .1s, box-shadow .2s
}

    .btn-contar:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(29,78,216,.45)
    }

    .btn-contar:active:not(:disabled) {
        transform: translateY(0)
    }

    .btn-contar:disabled {
        background: #C9D3E6;
        color: #5B6678;
        box-shadow: none;
        cursor: default
    }

.conteo-res {
    display: flex;
    align-items: baseline;
    gap: 8px
}

.conteo-num {
    font-family: 'Space Grotesk',sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--ink)
}

.conteo-txt {
    font-size: 16px;
    font-weight: 600;
    color: var(--label)
}

.conteo-aviso {
    font-size: 14px;
    color: var(--muted)
}

.card[data-conteo="sin-contar"] .conteo-res {
    display: none
}

.card[data-conteo="contado"] .conteo-aviso {
    display: none
}

/* ===== Paso 2: cantidad + calcular precio (columna derecha) ===== */
.ayuda {
    font-size: 13px;
    color: var(--muted)
}

.campo input:disabled {
    background: #EEF1F5;
    color: #6B7585
}

.btn-calcular {
    width: 100%;
    min-height: 50px;
    font: inherit;
    font-weight: 600;
    font-size: 16px;
    background: #fff;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 10px;
    cursor: pointer
}

    .btn-calcular:hover:not(:disabled) {
        background: #EEF3FC
    }

    .btn-calcular:disabled {
        border-color: #C9D3E6;
        color: #7A8597;
        background: #fff;
        cursor: default
    }

.precio {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.precio-fila {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: var(--muted)
}

.precio-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid var(--line);
    padding-top: 10px
}

    .precio-total span {
        font-weight: 600;
        color: var(--label)
    }

        .precio-total span:last-child {
            font-family: 'Space Grotesk',sans-serif;
            font-size: 28px;
            font-weight: 700;
            color: var(--ink)
        }

/* ===== Paso 3: continuar ===== */
.btn:disabled {
    background: #C9D3E6;
    color: #5B6678 !important;
    cursor: default
}

/* ===== Ventana de espera ===== */
.espera {
    position: fixed;
    inset: 0;
    background: rgba(14,26,51,.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px
}

    .espera.visible {
        display: flex
    }

.espera-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,.35)
}

.espera-txt {
    font-family: 'Space Grotesk',sans-serif;
    font-size: 20px;
    color: var(--ink)
}

.espera-sub {
    font-size: 14px;
    color: var(--muted)
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #D9E3F7;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: gira .9s linear infinite
}

@keyframes gira {
    to {
        transform: rotate(360deg)
    }
}
