/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0
*/

/* =========================
   TARIFAS
========================= */
/* Contenedores de los shortcodes */
.repair-pricing,
.repair-pricing-selector {
    width: 100%;
}

/* Tipografía de la web (Nunito, fuente global de Elementor); botones y selects no la heredan solos */
.repair-pricing,
.repair-pricing-selector,
.faults-table-wrapper,
.faults-tabs-select,
.tibletech-funnel {
    font-family: var(--e-global-typography-text-font-family, "Nunito"), sans-serif;
}
.repair-pricing button,
.repair-pricing select,
.repair-pricing-selector button,
.faults-table,
.faults-tabs-select select,
.tibletech-funnel button,
.tibletech-funnel input {
    font-family: inherit;
}

/* Campos */
.repair-pricing .pricing-field,
.repair-pricing-selector .pricing-field {
    margin-bottom: 22px;
}

/* Labels */
.repair-pricing .pricing-label,
.repair-pricing .replacement-container label,
.repair-pricing-selector .replacement-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}
.repair-pricing-selector .pricing-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgb(110, 124, 140);
}

/* Tabla de aparatos */
.repair-pricing .appliance-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}
.repair-pricing-selector .appliance-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

/* Botones de aparatos (mismo estado de selección que la calculadora: el elegido destacado, los demás en blanco) */
.repair-pricing .appliance-button {
    padding: 10px 15px;
    background: #fff;
    border: 2px solid rgb(230, 235, 242);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    color: rgb(94, 94, 94);
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}
.repair-pricing .appliance-button:hover {
    background: #ffffff;
    color: rgb(94, 94, 94);
    border-color: #2f91ff;
}
.repair-pricing .appliance-button.active {
    background: rgb(242, 248, 255);
    color: #2f91ff;
    border-color: #2f91ff;
    box-shadow: rgba(47, 145, 255, 0.14) 0px 8px 20px;
}

/* Selectores de botones de los aparatos */
.repair-pricing-selector .appliance-button {
    padding: 10px 15px;
    background: #fff;
    border: 2px solid rgb(230, 235, 242);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    color: rgb(94, 94, 94);
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

/* Iconos de aparatos */
.repair-pricing-selector .appliance-icon {
    display: block;
    padding: 10px;
    background-color: rgb(234, 243, 255);
    width: 40px;
    height: 40px;
    border-radius: 11px;
}
.repair-pricing-selector .appliance-button-with-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 10px;
    border-radius: 14px;
    justify-content: center;
}
.repair-pricing-selector .appliance-button.active .appliance-icon {
    background-color: #2f91ff;
}
.repair-pricing-selector .appliance-button.active .appliance-icon img {
    filter: brightness(0) invert(1);
}

.repair-pricing-selector .appliance-button:hover {
    background: #ffffff;
    border-color: #2f91ff;
    color: rgb(94, 94, 94);
}

.repair-pricing-selector .appliance-button.active {
    background: rgb(242, 248, 255);
    color: #2f91ff;
    border-color: #2f91ff;
    box-shadow: rgba(47, 145, 255, 0.14) 0px 8px 20px;
}

/* Selector */
.repair-pricing .replacement-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #ffffff;
    font-size: 15px;
}

/* Precio */
.repair-pricing .price-container {
    margin-top: 20px;
    padding: 20px;
    border-radius: 5px;
    background: #fff;
}
.repair-pricing .price-label {
    font-weight: 600;
    margin-right: 8px;
}
.repair-pricing .price-value {
    font-size: 24px;
    font-weight: 700;
}

/* Selector de precio */
.repair-pricing-selector .price-container {
    padding: 10px;
    border-radius: 5px;
    background: #fff;
}
.repair-pricing-selector .price-label {
    font-weight: 600;
    margin-right: 8px;
}
.repair-pricing-selector .price-value {
    font-size: 24px;
    font-weight: 700;
}

/* Tabla de averías */
.faults-table-wrapper {
    width: 100%;
    overflow-x: auto;
}
.faults-table {
    width: 100%;
    border-collapse: collapse;
}
.faults-table th,
.faults-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
    vertical-align: top;
}
.faults-table th {
    font-weight: 700;
    background: #f5f5f5;
}
.faults-table td {
    font-size: 15px;
}
.faults-table .fault-price {
    font-weight: 700;
    white-space: nowrap;
}
.faults-table-note {
    margin: 12px 0 0;
    color: #6d7785;
    font-size: 13px;
    line-height: 1.5;
}

/* Llamada a la acción tras los resultados de la calculadora y de los recambios */
.repair-pricing .pricing-cta,
.repair-pricing-selector .pricing-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid #d6e8ff;
    border-radius: 14px;
    background: #f2f8ff;
}
.repair-pricing .pricing-cta p,
.repair-pricing-selector .pricing-cta p {
    margin: 0;
    color: #17202b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}
.repair-pricing .pricing-cta-button,
.repair-pricing-selector .pricing-cta-button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    background: #2f91ff;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.repair-pricing .pricing-cta-button:hover,
.repair-pricing-selector .pricing-cta-button:hover {
    background: #187ee9;
    color: #fff;
}

/* Desplegable «Elige el aparato» que sustituye a las pestañas de las tablas en móvil (tibletech.js) */
.faults-tabs-select {
    display: none;
    margin-bottom: 16px;
}
.faults-tabs-select label {
    display: block;
    margin-bottom: 8px;
    color: #303b49;
    font-size: 14px;
    font-weight: 700;
}
.faults-tabs-select select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.6px solid rgb(213, 222, 233);
    border-radius: 11px;
    background: #fff;
    color: #17202b;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 767px) {
    .repair-pricing .appliance-tabs, .repair-pricing-selector .appliance-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    .repair-pricing-selector .appliance-tabs.symptoms-tabs {
        grid-template-columns: repeat(1, 1fr);
    }
    .repair-pricing-selector button {
        white-space: normal;
    }
    .repair-pricing-selector button, input {
        overflow: auto;
    }
    .faults-table thead {
        display: none;
    }
    .faults-table, .faults-table tbody, .faults-table tr, .faults-table td {
        display: block;
        width: 100%;
    }
    .faults-table tr {
        margin-bottom: 20px;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        overflow: hidden;
    }
    .faults-table td {
        border-bottom: 1px solid #e5e5e5;
        padding: 12px 15px;
    }
    .faults-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 5px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
    }
    .faults-tabs-select {
        display: block;
    }
    .e-n-tabs.has-faults-tabs-select .e-n-tab-title {
        display: none !important;
    }
}

/* =========================
   FUNNEL
========================= */
.tibletech-funnel {
    background: #fff;
    width: 100%;
    border: 1px solid #e6ebf2;
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(28, 60, 120, 0.10);
    padding: clamp(22px, 4vw, 32px);
}
.tibletech-funnel *, .tibletech-funnel *::before, .tibletech-funnel *::after {
    box-sizing: border-box;
}
.tibletech-funnel .funnel-step {
    display: none;
    width: 100%;
}
.tibletech-funnel .funnel-step.is-active {
    display: block;
}
.tibletech-funnel .funnel-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
}

.tibletech-funnel .funnel-header {
    gap: 12px;
    margin-bottom: 28px;
}
.tibletech-funnel .funnel-header-content {
    flex: 1;
}
.tibletech-funnel .funnel-step-number {
    display: block;
    margin-bottom: 8px;
    color: #6d7785;
    font-size: 13px;
    font-weight: 600;
}
.tibletech-funnel .funnel-progress {
    width: 100%;
    height: 6px;
    overflow: hidden;
    background: #edf1f6;
    border-radius: 20px;
}
.tibletech-funnel .funnel-progress span {
    display: block;
    height: 100%;
    background: #2f91ff;
    border-radius: inherit;
    transition: width .3s ease;
}
.tibletech-funnel .funnel-back {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    background: #fff;
    color: #202a36;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

/* Títulos */
.tibletech-funnel h2 {
    margin: 0 0 8px;
    color: #17202b;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 700;
}
.tibletech-funnel .funnel-subtitle {
    margin: 0 0 26px;
    color: #6d7785;
    font-size: 15px;
    line-height: 1.5;
}

/* Campos */
.tibletech-funnel .funnel-field {
    margin-top: 18px;
}
.tibletech-funnel label {
    display: block;
    margin-bottom: 8px;
    color: #303b49;
    font-size: 14px;
    font-weight: 600;
}
.tibletech-funnel input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.6px solid rgb(213, 222, 233) !important;
    border-radius: 11px !important;
    outline: none;
    background: #fff;
    color: #17202b;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.tibletech-funnel input:focus {
    border-color: #2f91ff;
    box-shadow: 0 0 0 3px rgba(47, 145, 255, .12);
}
.tibletech-funnel input[readonly] {
    background: #f7f9fc;
    cursor: not-allowed;
}
.tibletech-funnel .funnel-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px 12px;
}
.tibletech-funnel .funnel-field-full {
    grid-column: 1 / -1;
}
/* Botones */
.tibletech-funnel .funnel-next, .tibletech-funnel .funnel-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 26px;
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    background: #2f91ff;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition:
        transform .15s ease,
        background .2s ease,
        opacity .2s ease;
}
.tibletech-funnel .funnel-next:hover, .tibletech-funnel .funnel-submit:not(:disabled):hover {
    background: #187ee9;
    transform: translateY(-1px);
}
.tibletech-funnel .funnel-submit:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* Opciones */
.tibletech-funnel .funnel-options {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}
.tibletech-funnel .funnel-options-2 {
    grid-template-columns: 1fr 1fr;
}
.tibletech-funnel .funnel-options-3 {
    grid-template-columns: repeat(3, 1fr);
}
.tibletech-funnel .funnel-option {
    min-height: 50px;
    padding: 12px 8px;
    border: 1px solid #dfe5ed;
    border-radius: 11px;
    background: #fff;
    color: #283341;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease,
        transform .15s ease;
}
.tibletech-funnel .funnel-option:hover {
    border-color: #2f91ff;
    transform: translateY(-1px);
}
.tibletech-funnel .funnel-option.is-selected {
    border-color: #2f91ff;
    background: #edf7ff;
    color: #187ee9;
}

/* Opciones de productos */
.tibletech-funnel .funnel-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}
.tibletech-funnel .funnel-product-option {
    position: relative;
    width: 100%;
    padding: 18px;
    border: 1px solid #dfe5ed;
    border-radius: 14px;
    background: #fff;
    color: #26313e;
    text-align: left;
    cursor: pointer;
    white-space: normal;
    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease,
        transform .15s ease;
}
.tibletech-funnel .funnel-product-option:hover {
    border-color: #2f91ff;
    background-color: #80808017;
    transform: translateY(-1px);
}

.funnel-header button:hover {
    background-color: unset;
    color: inherit;
    border-color: #2f91ff;
}

.tibletech-funnel .funnel-product-option.is-selected {
    border-color: #2f91ff;
    background: #f5faff;
    box-shadow: 0 0 0 2px rgba(47, 145, 255, .10);
}
.tibletech-funnel .product-option-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}
.tibletech-funnel .product-option-top strong {
    color: #18222e;
    font-size: 16px;
    line-height: 1.3;
}
.tibletech-funnel .product-price {
    flex: 0 0 auto;
    color: #187ee9;
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}
.tibletech-funnel .funnel-product-option p {
    margin: 10px 0 0;
    color: #697584;
    font-size: 13px;
    line-height: 1.5;
}
.tibletech-funnel .funnel-product-option small {
    display: block;
    margin-top: 6px;
    color: #697584;
    font-size: 12px;
}
.tibletech-funnel .product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.tibletech-funnel .product-badges span {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #d6e8ff;
    border-radius: 999px;
    background: #f2f8ff;
    color: #187ee9;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.tibletech-funnel .recommended-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 8px;
    border-radius: 5px;
    background: #2f91ff;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
}

/* Campos opcionales */
.tibletech-funnel .funnel-optional {
    color: #6d7785;
    font-weight: 500;
}

/* Política de privacidad */
.tibletech-funnel .funnel-privacy {
    margin-top: 22px;
}
.tibletech-funnel .funnel-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-weight: 500;
    line-height: 1.45;
    cursor: pointer;
}
.tibletech-funnel .funnel-checkbox input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    padding: 0;
    border: 0 !important;
    accent-color: #2f91ff;
    cursor: pointer;
}
.tibletech-funnel .funnel-checkbox a {
    color: #187ee9;
    text-decoration: underline;
}

/* Errores: debajo del campo afectado */
.tibletech-funnel input.is-invalid {
    border-color: #d93025 !important;
}
.tibletech-funnel input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(217, 48, 37, .12);
}
.tibletech-funnel .funnel-checkbox input[type="checkbox"].is-invalid {
    outline: 2px solid #d93025;
    outline-offset: 1px;
}
.tibletech-funnel .funnel-options.is-invalid .funnel-option,
.tibletech-funnel .funnel-products.is-invalid .funnel-product-option {
    border-color: #d93025;
}
.tibletech-funnel .funnel-field-error {
    margin-top: 6px;
    color: #c62828;
    font-size: 13px;
    line-height: 1.4;
}

/* Errores generales (respuesta del servidor), encima del botón */
.tibletech-funnel .funnel-form-error {
    margin-top: 18px;
    padding: 11px 13px;
    border-radius: 9px;
    background: #fff1f1;
    color: #c62828;
    font-size: 13px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 480px) {
    .tibletech-funnel .funnel-card {
        border-radius: 16px;
        padding: 22px 18px;
    }
    .tibletech-funnel h2 {
        font-size: 24px;
    }
    .tibletech-funnel .funnel-options-3 {
        grid-template-columns: 1fr 1fr;
    }
    .tibletech-funnel .funnel-form-grid {
        grid-template-columns: 1fr;
    }
    .tibletech-funnel .funnel-field-full {
        grid-column: auto;
    }
    .tibletech-funnel .product-option-top {
        flex-direction: column;
        gap: 5px;
    }
}

/* =========================
   VENTANA «SIN COBERTURA»
   (tibletechShowNoCoverage en tibletech.js). Selectores con
   .tibletech-modal delante para ganar a los estilos de botón del tema padre.
========================= */
.tibletech-modal {
    width: calc(100% - 32px);
    max-width: 440px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #fff;
    color: #17202b;
    box-shadow: 0 24px 64px rgba(16, 32, 64, .25);
}
.tibletech-modal::backdrop {
    background: rgba(16, 24, 40, .55);
}
.tibletech-modal-box {
    position: relative;
    padding: 36px 28px 28px;
    text-align: center;
}
.tibletech-modal h2 {
    margin: 0 0 14px;
    padding: 0 16px;
    color: #17202b;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}
.tibletech-modal-text p {
    margin: 0 0 12px;
    color: #4a5563;
    font-size: 15px;
    line-height: 1.55;
}
.tibletech-modal-text a {
    color: #187ee9;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.tibletech-modal-text a:hover {
    text-decoration: underline;
}
.tibletech-modal .tibletech-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    background: #fff;
    color: #202a36;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.tibletech-modal .tibletech-modal-close:hover,
.tibletech-modal .tibletech-modal-close:focus {
    border-color: #2f91ff;
    background: #fff;
    color: #187ee9;
}
.tibletech-modal .tibletech-modal-close:focus:not(:focus-visible) {
    outline: none;
}
.tibletech-modal .tibletech-modal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 18px;
    padding: 12px 20px;
    border-radius: 12px;
    background: #2f91ff;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, transform .15s ease;
}
.tibletech-modal .tibletech-modal-button:hover {
    background: #187ee9;
    color: #fff;
    transform: translateY(-1px);
}