.tehost-cotizador-wrap {
    width: 100%;
    padding: 40px 20px 60px;
    background: #f6f7f9;
    box-sizing: border-box;
}

.tehost-cotizador {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    color: #111827;
}

.tehost-cotizador-header {
    text-align: center;
    margin-bottom: 28px;
}

.tehost-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #f7e9e7;
    color: #8f1812;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.tehost-cotizador-header h2 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.2;
    color: #111827;
}

.tehost-cotizador-header p {
    margin: 0;
    color: #667085;
    font-size: 15px;
}

.tehost-card {
    margin-bottom: 24px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.05);
}

.tehost-card-header {
    margin-bottom: 22px;
}

.tehost-card-header h3 {
    margin: 0 0 5px;
    font-size: 22px;
    color: #111827;
}

.tehost-card-header p {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}

.tehost-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.tehost-field {
    display: flex;
    flex-direction: column;
}

.tehost-field label {
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #344054;
}

.tehost-field input {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.tehost-field input:hover {
    border-color: #98a2b3;
}

.tehost-field input:focus {
    border-color: #8f1812;
    box-shadow: 0 0 0 3px rgba(143, 24, 18, 0.12);
}

.tehost-field input:disabled {
    background: #f2f4f7;
    color: #667085;
    cursor: not-allowed;
}

.tehost-tabla-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.tehost-tabla-servicios {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: #ffffff;
}

.tehost-tabla-servicios thead th {
    padding: 14px 12px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    text-align: left;
    font-weight: 700;
    border-bottom: 1px solid #111827;
}

.tehost-tabla-servicios thead th:first-child {
    text-align: center;
}

.tehost-tabla-servicios tbody td {
    padding: 15px 12px;
    border-bottom: 1px solid #eaecf0;
    vertical-align: middle;
    font-size: 14px;
    color: #344054;
}

.tehost-tabla-servicios tbody tr:last-child td {
    border-bottom: 0;
}

.tehost-servicio-row {
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.tehost-servicio-row:hover {
    background: #fafafa;
}

.tehost-servicio-row.tehost-activo {
    background: #fff8f7;
    box-shadow: inset 4px 0 0 #8f1812;
}

.tehost-servicio-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tehost-servicio-info strong {
    color: #111827;
    font-size: 14px;
}

.tehost-servicio-info small {
    color: #667085;
    font-size: 12px;
    line-height: 1.4;
}

.tehost-check-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tehost-check-wrap input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tehost-check-custom {
    position: relative;
    width: 22px;
    height: 22px;
    border: 2px solid #b8c0cc;
    border-radius: 6px;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.tehost-check-wrap input:checked + .tehost-check-custom {
    background: #8f1812;
    border-color: #8f1812;
}

.tehost-check-wrap input:checked + .tehost-check-custom::after {
    content: "✓";
    position: absolute;
    left: 4px;
    top: -1px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.tehost-cantidad {
    width: 88px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.tehost-cantidad:focus {
    border-color: #8f1812;
    box-shadow: 0 0 0 3px rgba(143, 24, 18, 0.1);
}

.tehost-cantidad:disabled {
    background: #f2f4f7;
    color: #98a2b3;
}

.tehost-precio,
.tehost-linea-total {
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

.tehost-impuesto-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.tehost-card-resumen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.tehost-resumen {
    width: min(100%, 430px);
    margin-left: auto;
}

.tehost-resumen-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 9px 0;
    color: #475467;
    font-size: 14px;
}

.tehost-resumen-item strong {
    color: #111827;
}

.tehost-total-final {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #e4e7ec;
}

.tehost-total-final span,
.tehost-total-final strong {
    font-size: 20px;
    font-weight: 800;
    color: #8f1812;
}

.tehost-actions {
    display: flex;
    justify-content: flex-end;
    min-width: 220px;
}

.tehost-btn-cotizar {
    min-height: 50px;
    padding: 13px 24px;
    border: 0;
    border-radius: 10px;
    background: #8f1812;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(143, 24, 18, 0.18);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.tehost-btn-cotizar:hover {
    background: #74120e;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(143, 24, 18, 0.22);
}

.tehost-btn-cotizar:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.tehost-resultado-box {
    margin-top: 24px;
    padding: 32px;
    text-align: center;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.05);
}

.tehost-resultado-icono {
    width: 56px;
    height: 56px;
    line-height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #8f1812;
    color: #ffffff;
    font-size: 30px;
    font-weight: 700;
}

.tehost-resultado-box h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #111827;
}

.tehost-resultado-numero {
    margin: 0 0 10px;
    color: #8f1812;
    font-size: 19px;
    font-weight: 800;
}

.tehost-descargar-pdf,
.tehost-nueva-cotizacion {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.tehost-descargar-pdf {
    background: #8f1812;
    color: #ffffff !important;
    border: 1px solid #8f1812;
}

.tehost-nueva-cotizacion {
    margin-left: 8px;
    background: #ffffff;
    color: #8f1812;
    border: 1px solid #8f1812;
}

.tehost-descargar-pdf:hover,
.tehost-nueva-cotizacion:hover {
    opacity: 0.9;
}

/* TABLET */
@media (max-width: 900px) {

    .tehost-cotizador-wrap {
        padding: 30px 16px 50px;
    }

    .tehost-cotizador-header h2 {
        font-size: 29px;
    }

    .tehost-grid {
        grid-template-columns: 1fr;
    }

    .tehost-card {
        padding: 22px;
    }

    .tehost-card-resumen {
        flex-direction: column;
        align-items: stretch;
    }

    .tehost-resumen {
        width: 100%;
        margin-left: 0;
    }

    .tehost-actions {
        justify-content: stretch;
        min-width: 0;
    }

    .tehost-btn-cotizar {
        width: 100%;
    }
}

/* MÓVIL */

/* MÓVIL */
@media (max-width: 680px) {

    .tehost-cotizador-wrap {
        padding: 22px 14px 40px;
    }

    .tehost-cotizador {
        width: 100%;
    }

    .tehost-cotizador-header {
        text-align: left;
        margin-bottom: 22px;
        padding: 0 2px;
    }

    .tehost-cotizador-header h2 {
        font-size: 27px;
        line-height: 1.2;
    }

    .tehost-cotizador-header p {
        font-size: 14px;
        line-height: 1.5;
    }

    .tehost-card {
        padding: 20px 16px;
        margin-bottom: 18px;
        border-radius: 14px;
    }

    .tehost-card-header {
        margin-bottom: 18px;
    }

    .tehost-card-header h3 {
        font-size: 20px;
    }

    .tehost-card-header p {
        font-size: 13px;
        line-height: 1.45;
    }

    .tehost-grid {
        gap: 14px;
    }

    .tehost-field label {
        margin-bottom: 6px;
        font-size: 12px;
    }

    .tehost-field input {
        min-height: 46px;
        padding: 10px 12px;
        font-size: 15px;
        border-radius: 9px;
    }

    /*
     * Servicios
     */
    .tehost-tabla-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .tehost-tabla-servicios {
        display: block;
        min-width: 0;
        background: transparent;
    }

    .tehost-tabla-servicios thead {
        display: none;
    }

    .tehost-tabla-servicios tbody {
        display: block;
    }

    /*
     * Cada servicio es una tarjeta compacta.
     */
    .tehost-tabla-servicios tbody tr {
        position: relative;
        display: block;
        margin-bottom: 12px;
        padding: 14px 14px 12px;
        border: 1px solid #e1e5ea;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 3px 12px rgba(17, 24, 39, 0.035);
        overflow: hidden;
    }

    .tehost-tabla-servicios tbody tr:last-child {
        margin-bottom: 0;
    }

    .tehost-tabla-servicios tbody tr.tehost-activo {
        border-color: #d8aaa7;
        background: #fffafa;
        box-shadow:
            inset 4px 0 0 #8f1812,
            0 4px 14px rgba(17, 24, 39, 0.05);
    }

    /*
     * Quitamos el formato de tabla de escritorio.
     */
    .tehost-tabla-servicios tbody td {
        width: auto;
        padding: 0;
        border: 0;
        box-sizing: border-box;
    }

    .tehost-tabla-servicios tbody td::before {
        display: none;
    }

    /*
     * Checkbox arriba a la derecha.
     */
    .tehost-tabla-servicios tbody td[data-label="Seleccionar"] {
        position: absolute;
        top: 15px;
        right: 14px;
        z-index: 2;
    }

    /*
     * Nombre y descripción.
     */
    .tehost-tabla-servicios tbody td[data-label="Servicio"] {
        display: block;
        padding-right: 45px;
    }

    .tehost-servicio-info {
        display: block;
        text-align: left;
    }

    .tehost-servicio-info strong {
        display: block;
        margin-bottom: 4px;
        font-size: 16px;
        line-height: 1.3;
        color: #111827;
    }

    .tehost-servicio-info small {
        display: block;
        max-width: 90%;
        color: #667085;
        font-size: 12px;
        line-height: 1.45;
    }

    /*
     * Unidad no es necesaria como fila separada
     * mientras el servicio no esté seleccionado.
     */
    .tehost-tabla-servicios tbody td[data-label="Unidad"] {
        display: inline-block;
        margin-top: 10px;
        margin-right: 7px;
        padding: 4px 8px;
        border-radius: 999px;
        background: #f2f4f7;
        color: #667085;
        font-size: 11px;
    }

    /*
     * Precio e impuesto aparecen compactos debajo.
     */
    .tehost-tabla-servicios tbody td[data-label="Precio"] {
        display: inline-block;
        margin-top: 10px;
        margin-right: 5px;
        font-size: 13px;
    }

    .tehost-precio {
        font-size: 13px;
    }

    .tehost-tabla-servicios tbody td[data-label="Impuesto"] {
        display: inline-block;
        margin-top: 10px;
    }

    .tehost-impuesto-badge {
        padding: 4px 7px;
        font-size: 10px;
    }

    /*
     * Cantidad y total permanecen ocultos
     * hasta seleccionar el servicio.
     */
    .tehost-tabla-servicios tbody td[data-label="Cantidad"],
    .tehost-tabla-servicios tbody td[data-label="Total"] {
        display: none;
    }

    /*
     * Cuando está seleccionado, aparecen los detalles.
     */
    .tehost-servicio-row.tehost-activo td[data-label="Cantidad"],
    .tehost-servicio-row.tehost-activo td[data-label="Total"] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #eceff3;
    }

    .tehost-servicio-row.tehost-activo td[data-label="Cantidad"]::before {
        content: "Cantidad";
        display: block;
        color: #667085;
        font-size: 12px;
        font-weight: 700;
    }

    .tehost-servicio-row.tehost-activo td[data-label="Total"]::before {
        content: "Total";
        display: block;
        color: #667085;
        font-size: 12px;
        font-weight: 700;
    }

    .tehost-cantidad {
        width: 94px;
        min-height: 40px;
        padding: 7px 9px;
        font-size: 14px;
    }

    .tehost-linea-total {
        font-size: 16px;
        color: #8f1812;
    }

    /*
     * Resumen
     */
    .tehost-card-resumen {
        padding: 18px 16px;
    }

    .tehost-resumen-item {
        padding: 7px 0;
        font-size: 13px;
    }

    .tehost-total-final {
        margin-top: 5px;
        padding-top: 13px;
    }

    .tehost-total-final span,
    .tehost-total-final strong {
        font-size: 19px;
    }

    .tehost-actions {
        margin-top: 5px;
    }

    .tehost-btn-cotizar {
        width: 100%;
        min-height: 48px;
        border-radius: 9px;
    }

    /*
     * Resultado
     */
    .tehost-resultado-box {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .tehost-resultado-box h3 {
        font-size: 21px;
    }

    .tehost-descargar-pdf,
    .tehost-nueva-cotizacion {
        display: block;
        width: 100%;
        margin-left: 0;
        text-align: center;
    }

    .tehost-nueva-cotizacion {
        margin-top: 10px;
    }
}


/* ========================================
   BOTONES CORPORATIVOS TEHOST
======================================== */

.tehost-btn-cotizar,
.tehost-descargar-pdf {
    background: #8f1812 !important;
    border: 1px solid #8f1812 !important;
    color: #ffffff !important;
}

.tehost-btn-cotizar:hover,
.tehost-descargar-pdf:hover {
    background: #71130f !important;
    border-color: #71130f !important;
    color: #ffffff !important;
}

.tehost-nueva-cotizacion {
    background: #ffffff !important;
    color: #8f1812 !important;
    border: 1px solid #8f1812 !important;
}

.tehost-nueva-cotizacion:hover {
    background: #fff6f5 !important;
    color: #71130f !important;
    border-color: #71130f !important;
}