﻿/* ==========================================================================
   TASACIÓN - BASE / LAYOUT
   ========================================================================== */

.tasacion-page {
    margin-top: 10px;
    padding-top: 1.5rem !important;
    padding-bottom: 3rem !important;
}

    .tasacion-page > .container > .row.align-items-center {
        align-items: flex-start !important;
    }


/* ==========================================================================
   TASACIÓN - TIPOGRAFÍA / HERO
   ========================================================================== */

.tasacion-title {
    margin: 0 0 1rem;
    color: #0f172a;
    font-size: clamp(2rem, 2.1vw, 2.5rem);
    font-weight: 600;
    line-height: 1.23;
    letter-spacing: -0.03em;
}

.tasacion-lead {
    max-width: 560px;
    margin: 0 0 1.35rem;
    color: #334155;
    font-size: 1.6rem;
    line-height: 1.8;
}

.tasacion-note {
    font-size: 1.5rem;
    line-height: 1.9rem;
}


/* ==========================================================================
   TASACIÓN - CHECKLIST
   ========================================================================== */

.tasacion-checklist {
    margin: 0.25rem 0 1.6rem;
    padding-left: 0;
    list-style: none;
}

    .tasacion-checklist li {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        align-items: start;
        column-gap: 1.2rem;
        margin-bottom: 1.4rem;
        font-size: 1.7rem;
        line-height: 1.95;
    }

    .tasacion-checklist .tasacion-text {
        min-width: 0;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        hyphens: none !important;
    }

    .tasacion-checklist,
    .tasacion-checklist * {
        word-break: normal !important;
    }

.tasacion-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 30px;
    margin: 0;
    color: var(--baja-accent);
    background: var(--baja-accent-soft);
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 700;
}


/* ==========================================================================
   TASACIÓN - IMÁGENES
   ========================================================================== */

.object-fit-cover {
    object-fit: cover;
}

.tasacion-img {
    display: block;
    width: 100%;
    height: 100%;
}

.tasacion-heroimg,
.tasacion-miniimg,
.tasacion-squareimg {
    overflow: hidden;
    background: #f3f4f6;
}

.tasacion-heroimg {
    aspect-ratio: 16 / 9;
    border-radius: 1.25rem;
    box-shadow: 0 10px 60px rgba(16, 24, 40, 0.10);
}

.tasacion-miniimg {
    aspect-ratio: 4 / 3;
    border-radius: 1.1rem;
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
}

.tasacion-squareimg {
    aspect-ratio: 1 / 1;
    border-radius: 1.25rem;
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.10);
}

.img-hero-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

    .img-hero-wrapper img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 16px;
    }


/* ==========================================================================
   TASACIÓN - TARJETAS INFORMATIVAS
   ========================================================================== */

.tasacion-info {
    --card-bg: #ffffff;
    --card-border: #e9ecef;
    --card-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    --title-color: var(--azul-elegante);
    --text-color: #4b5563;
}

.tasacion-card {
    padding: 1.75rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

    .tasacion-card:hover {
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
        transform: translateY(-4px);
    }

.tasacion-title-h2 {
    margin-bottom: 0.75rem;
    color: var(--baja-accent);
    font-size: clamp(1.6rem, 1.8vw, 2.1rem);
    font-weight: 700;
}

.tasacion-card p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.tasacion-list {
    margin-bottom: 0;
    padding-left: 1.1rem;
    color: var(--text-color);
}

    .tasacion-list li {
        margin-bottom: 0.4rem;
        line-height: 1.55;
    }

        .tasacion-list li:last-child {
            margin-bottom: 0;
        }


/* ==========================================================================
   TASACIÓN - PANEL / FORMULARIO
   ========================================================================== */

.tasacion-panel {
    padding: 2rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.tasacion-panel-h2 {
    color: var(--baja-accent);
    letter-spacing: -0.2px;
}

.tasacion-panel .form-label {
    margin-bottom: 0.35rem;
    color: #263238;
    font-weight: 600;
}

.tasacion-panel .form-control,
.tasacion-panel .form-select {
    padding: 0.85rem 1rem;
    background-color: #fbfcfd;
    border: 1px solid #e5e7eb;
    border-radius: 0.95rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tasacion-panel .form-control {
    font-size: clamp(1.3rem, 1.4vw, 1.7rem);
}

.tasacion-panel textarea.form-control {
    min-height: 120px;
    border-radius: 1rem;
    font-size: clamp(1.3rem, 1.4vw, 1.7rem);
}

.tasacion-panel .form-control:focus,
.tasacion-panel .form-select:focus {
    background: #fff;
    border-color: #0a6a82;
    outline: none;
    box-shadow: 0 0 0 0.20rem rgba(10, 106, 130, 0.18);
}

.tasacion-panel .form-control::placeholder,
.tasacion-panel textarea::placeholder {
    color: #94a3b8;
    font-style: italic;
    opacity: 1;
}


/* ==========================================================================
   TASACIÓN - SELECT PERSONALIZADO
   ========================================================================== */

.select-combo {
    padding: 0.9rem 3.2rem 0.9rem 1rem;
    color: #7c8081;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%230a6a82' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.75.75 0 0 1 1.06 0L8 10.293l5.293-5.647a.75.75 0 0 1 1.06 1.06l-6 6a.75.75 0 0 1-1.06 0l-6-6a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    background-size: 1.15rem;
    border-radius: 1rem;
    font-size: clamp(1.2rem, 1.3vw, 1.5rem);
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

    .select-combo:focus {
        border-color: #0a6a82;
        box-shadow: 0 0 0 0.20rem rgba(10, 106, 130, 0.18);
    }

.tasacion-panel select.form-select.select-combo {
    padding-right: 3.2rem;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%230a6a82' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.75.75 0 0 1 1.06 0L8 10.293l5.293-5.647a.75.75 0 0 1 1.06 1.06l-6 6a.75.75 0 0 1-1.06 0l-6-6a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    background-size: 1.15rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}


/* ==========================================================================
   TASACIÓN - BOTONES
   ========================================================================== */

.btn-whatsapp-cta {
    display: inline-flex;
    margin: 12px auto 6px;
    padding: 16px 34px;
    border-radius: 999px;
    font-size: 1.6rem;
    font-weight: 400;
}

.btn-pill {
    padding: 0.85rem 1.25rem;
    border-radius: 999px !important;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.btn-whatsapp {
    padding: 0.9rem 1.35rem;
    border-radius: 999px !important;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.18);
    font-weight: 700;
    transition: box-shadow 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

    .btn-whatsapp:hover {
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.18);
        filter: brightness(1.02);
    }

.btn-reset {
    padding: 0.9rem 1.2rem;
    border-radius: 999px !important;
    font-weight: 700;
}


/* ==========================================================================
   TASACIÓN - TIP / CONSEJO
   ========================================================================== */

.tasacion-tip {
    margin-top: 0.25rem;
    padding: 0.85rem 1rem;
    color: #2b4b57;
    background: #f6fbfd;
    border: 1px dashed rgba(10, 106, 130, 0.25);
    border-radius: 1rem;
}


/* ==========================================================================
   TASACIÓN - VALIDACIÓN
   ========================================================================== */

.form-control.is-invalid,
.form-select.is-invalid {
    background-color: #fed5d5;
    border-color: #dc3545;
}

    .form-control.is-invalid:focus,
    .form-control:focus.is-invalid,
    .form-select:focus.is-invalid {
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.18);
    }


/* ==========================================================================
   TASACIÓN - ALERTA WHATSAPP
   ========================================================================== */

.wa-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

    .wa-alert.show {
        opacity: 1;
        transform: translateY(0);
    }

.wa-icon {
    font-size: 18px;
    animation: fly 1s ease;
}

@keyframes fly {
    0% {
        opacity: 0;
        transform: translateX(-8px) rotate(-10deg);
    }

    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}


/* ==========================================================================
   TASACIÓN - OTROS
   ========================================================================== */

.tasacion-wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
}

#matricula {
    text-transform: uppercase;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (min-width: 992px) {
    .tasacion-page > .container > .row.align-items-center > .col-lg-6:first-child {
        padding-top: 0.25rem;
    }
}

@media (max-width: 1024px) {
    .ornamento::before {
        margin-right: 16px;
        letter-spacing: -5.7px;
        transform: scaleX(2.9);
    }
}
