/* =========================================
   SUBPÁGINA: COTIZAR UN PROYECTO (/contact/cotizar/)
   ========================================= */
.quote-page {
    padding: 150px 5vw 12vh 5vw;
    background-color: #ffffff;
    color: var(--nc-blue);
}

.quote-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6vw;
    align-items: start;
}

/* =========================================
   COLUMNA DE TEXTO
   ========================================= */
.quote-intro {
    position: sticky;
    top: 120px;
}

.quote-intro .label-accent {
    display: block;
    margin-bottom: 20px;
}

.quote-title {
    font-size: clamp(2.6rem, 4.5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 25px;
}

/* Recuadro resaltado (mismo estilo que el hero del inicio) */
.quote-title .highlight-nc-wrapper {
    position: relative;
    display: inline-block;
    isolation: isolate;
    padding: 0 0.15em;
}

.quote-title .highlight-bg {
    position: absolute;
    inset: 0;
    background-color: var(--nc-blue);
    z-index: -1;
    transform-origin: left;
}

.quote-title .highlight-text {
    color: var(--color-neutral-50);
}

.quote-lead {
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--nc-blue-soft);
    max-width: 30rem;
}

/* Beneficios con check */
.quote-perks {
    list-style: none;
    display: grid;
    gap: 0.8rem;
    margin-top: 35px;
}

.quote-perks li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.quote-perks li::before {
    content: '';
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: var(--nc-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 1rem no-repeat;
}

/* Contacto directo (alternativa al formulario) */
.quote-contact {
    max-width: 28rem;
    margin-top: 40px;
    padding: 1.4rem 1.5rem;
    border-radius: 1.5rem;
    background-color: var(--color-neutral-50);
}

.quote-contact-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.quote-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.quote-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background-color: #ffffff;
    color: var(--nc-blue);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px var(--color-neutral-200);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.quote-contact-btn svg { width: 1.15rem; height: 1.15rem; }
.quote-contact-btn:hover { box-shadow: inset 0 0 0 1.5px var(--nc-blue); }
.quote-contact-btn.is-wa { background-color: var(--nc-blue); color: #ffffff; box-shadow: none; }
.quote-contact-btn.is-wa:hover { background-color: #25D366; }

.quote-contact-meta {
    margin-top: 1rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--nc-blue-soft);
}

/* =========================================
   FORMULARIO (tarjeta doble)
   ========================================= */
.quote-card {
    border-radius: 2rem;
    background-color: var(--color-neutral-100);
    padding: 0.6rem;
}

.quote-form {
    border-radius: 1.6rem;
    background-color: #ffffff;
    padding: 2rem;
}

.quote-fields {
    display: grid;
    gap: 1.25rem;
}

.quote-field label,
.quote-field .field-label {
    display: block;
    padding-left: 1.25rem;
    font-size: 1rem;
}

.required { color: var(--nc-blue); font-weight: 600; }

.field-hint {
    margin-top: 0.4rem;
    padding-left: 1.25rem;
    font-size: 0.82rem;
    color: var(--nc-blue-soft);
}

/* Logos de clientes junto al formulario */
.quote-brands {
    max-width: 28rem;
    margin-top: 30px;
}

.quote-brands ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
}

.quote-brands img {
    max-width: 100%;
    max-height: 2.5rem;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: var(--nc-blue-filter);
    opacity: 0.6;
}
.optional { font-size: 0.85rem; color: var(--nc-blue-soft); }

.quote-input {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.9rem 1.25rem;
    border: 0;
    border-radius: 1rem;
    background-color: var(--color-neutral-100);
    color: var(--nc-blue);
    font-family: inherit;
    font-size: 1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.quote-input::placeholder { color: var(--color-neutral-400); }

.quote-input:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px var(--nc-blue);
}

textarea.quote-input { resize: vertical; min-height: 150px; }

/* Select con flecha propia */
.select-wrap { position: relative; }

.select-wrap select {
    appearance: none;
    padding-right: 3rem;
    cursor: pointer;
}

.select-wrap select:invalid { color: var(--color-neutral-400); }

.select-wrap svg {
    position: absolute;
    right: 1.25rem;
    top: calc(50% + 0.25rem);
    width: 1.25rem;
    height: 1.25rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--nc-blue-soft);
}

/* Adjuntar archivo */
.dropzone {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.6rem;
    border-radius: 1rem;
    background-color: var(--color-neutral-100);
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.dropzone:hover { background-color: var(--color-neutral-200); }
.dropzone:focus-within,
.dropzone.dragover { box-shadow: 0 0 0 2px var(--nc-blue); background-color: #ffffff; }

.dropzone-btn {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    background-color: var(--nc-blue);
    color: #ffffff;
    font-size: 0.85rem;
}

.dropzone-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
    color: var(--nc-blue-soft);
}

.dropzone-name.has-file { color: var(--nc-blue); }

.file-remove {
    flex-shrink: 0;
    padding: 0.4rem 0.75rem;
    border: 0;
    border-radius: 0.6rem;
    background: transparent;
    color: var(--nc-blue);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.file-remove:hover { background-color: #ffffff; }

/* Casilla de privacidad */
.quote-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--nc-blue-soft);
    cursor: pointer;
}

.quote-consent input {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    accent-color: var(--nc-blue);
}

.quote-consent a { color: var(--nc-blue); text-underline-offset: 3px; }

/* Errores */
.error-msg {
    display: none;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: #b42318;
}

.error-msg.visible { display: flex; }
.error-msg svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.field-error,
.quote-input.field-error:focus { box-shadow: 0 0 0 2px #b42318; }

/* Envío */
.quote-submit {
    padding-top: 0.5rem;
    text-align: center;
}

.quote-submit .btn-dark {
    justify-content: center;
    min-width: 220px;
    padding: 1rem 2.5rem;
    border: 0;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.quote-submit .btn-dark:hover { transform: translateY(-2px); }
.quote-submit .btn-dark:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.spinner {
    width: 1.1rem;
    height: 1.1rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.quote-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--nc-blue-soft);
}

.quote-success {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background-color: #ecfdf3;
    color: #05603a;
    box-shadow: inset 0 0 0 1px #abefc6;
}

.quote-success p:first-child { font-weight: 700; }
.quote-success p:last-child { font-size: 0.9rem; }

[hidden] { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .quote-container { grid-template-columns: 1fr; gap: 50px; }
    .quote-intro { position: static; }
}

@media (max-width: 576px) {
    .quote-page { padding: 120px 5vw 10vh 5vw; }
    .quote-form { padding: 1.25rem; }
    .quote-card { border-radius: 1.6rem; padding: 0.4rem; }
    .quote-submit .btn-dark { width: 100%; }
}
