/* ============================================
   FORMULARIO DE CAPTACIÓN - ESTILOS
   ============================================ */
.wpcf7-form-control-wrap.checkbox-container {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    color: #666 !important;
}
.captacion-form-wrapper
{
    margin: 0 auto;
    font-family: 'Open Sans', sans-serif;
}

/* Variante específica para el formulario de Tasación */
.captacion-form-wrapper.tasacion-promocat-form
{
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.pmc-page-tasacion .pmc-tasacion-form-card
{
    max-width: 100%;
    margin: 0;
}

.pmc-page-tasacion .texto-vender-inmueble
{
    color: #6f1526;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.pmc-page-tasacion .texto-vender-inmueble em
{
    color: #8E2C3B;
    font-style: italic;
}

.pmc-page-tasacion .fs-md-1
{
    color: #374151;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.65;
    max-width: 34rem;
}

.pmc-page-tasacion .wp-block-cover
{
    min-height: clamp(520px, 72vh, 760px);
    padding-top: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

.pmc-page-tasacion .pmc-tasacion-form-card .section-title
{
    margin-bottom: 1.25rem;
}

.captacion-form-wrapper.tasacion-promocat-form #direccion-inmueble
{
    min-height: 90px;
    max-height: 140px;
    resize: vertical;
}

.captacion-form-wrapper .privacy-notice
{
    text-align: left;
    padding: 0.75rem 0.85rem;
    border-left: 0;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #f8f9fa;
}

.wpcf7 .privacy-notice
{
    text-align: left !important;
    padding: 0.75rem 0.85rem !important;
    border-left: 0 !important;
    border: 1px solid #e9ecef !important;
    border-radius: 10px !important;
    background: #f8f9fa !important;
}

.captacion-form-wrapper .privacy-notice .checkbox-container
{
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    color: #555 !important;
}
.captacion-form-wrapper .privacy-notice p
{
    font-size: 0.82rem !important;
}
.wpcf7 .privacy-notice .checkbox-container,
.wpcf7 .privacy-notice .wpcf7-form-control-wrap.checkbox-container
{
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    color: #555 !important;
}

.captacion-form-wrapper .privacy-notice .wpcf7-list-item
{
    margin: 0;
}

.captacion-form-wrapper .privacy-notice .wpcf7-list-item-label
{
    display: inline;
    font-size: 0.82rem;
    line-height: 1.35;
    color: #555;
}

.wpcf7 .privacy-notice .wpcf7-list-item-label
{
    display: inline !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    color: #555 !important;
}

.captacion-form-wrapper .privacy-notice a
{
    display: inline-block;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 600;
}

.wpcf7 .privacy-notice a
{
    display: inline-block !important;
    white-space: nowrap !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
}

/* Fallback global CF7 para bloques de aceptación (si no hay wrapper .privacy-notice) */
.wpcf7 .wpcf7-form-control-wrap.checkbox-container
{
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    color: #555 !important;
}

.wpcf7 .wpcf7-form-control-wrap.checkbox-container .wpcf7-list-item
{
    margin: 0 !important;
}

.wpcf7 .wpcf7-form-control-wrap.checkbox-container .wpcf7-list-item-label
{
    display: inline !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    color: #555 !important;
}

.wpcf7 .wpcf7-form-control-wrap.checkbox-container a
{
    display: inline-block !important;
    white-space: nowrap !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
}

/* Secciones del formulario */
.form-section
{
    margin-bottom: 2.5rem;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
}

.form-section:last-child
{
    margin-bottom: 0;
}

/* Títulos de sección */
.section-title
{
    font-size: 1.5rem;
    font-weight: 700;
    color: #8E2C3B;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.section-title::after
{
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #8E2C3B, transparent);
    border-radius: 2px;
}

/* CF7: eliminar br entre label e input y normalizar el p wrapper */
.captacion-form-wrapper p
{
    margin-bottom: 0;
}

.captacion-form-wrapper p br
{
    display: none;
}

/* Labels */
.form-label
{
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.form-label .required
{
    color: #dc3545;
    margin-left: 2px;
}

/* Inputs y selects */
.captacion-form-wrapper .form-control,
.captacion-form-wrapper .form-select
{
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.captacion-form-wrapper .form-control:focus,
.captacion-form-wrapper .form-select:focus
{
    color: #495057;
    background-color: #fff;
    border-color: #8E2C3B;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(176, 150, 83, 0.15);
}

.captacion-form-wrapper .form-control::placeholder
{
    color: #adb5bd;
    opacity: 1;
}

/* Textarea */
.captacion-form-wrapper textarea.form-control
{
    min-height: 120px;
    resize: vertical;
}

/* Select personalizado */
.captacion-form-wrapper .form-select
{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    appearance: none;
}

.captacion-form-wrapper .form-select:focus
{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23b09653' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

/* Botón de envío */
.captacion-form-wrapper .btn-submit,
.captacion-form-wrapper input[type="submit"]
{
    background: #8E2C3B;
    color: #fff;
    border: none;
    padding: 0.875rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(176, 150, 83, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Open Sans', sans-serif;
    min-width: 180px;
}

.captacion-form-wrapper .btn-submit:hover,
.captacion-form-wrapper input[type="submit"]:hover
{
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(176, 150, 83, 0.4);
}

.captacion-form-wrapper .btn-submit:active,
.captacion-form-wrapper input[type="submit"]:active
{
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(176, 150, 83, 0.3);
}

.submit-wrapper
{
    text-align: center;
    margin-top: 1.5rem;
}

/* Aviso de privacidad */
.privacy-notice
{
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.6;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #8E2C3B;
}

.privacy-notice a
{
    color: #8E2C3B;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.privacy-notice a:hover
{
    color: #9a8245;
    text-decoration: none;
}

/* Mensajes de validación CF7 */
.captacion-form-wrapper .wpcf7-not-valid-tip
{
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.captacion-form-wrapper .wpcf7-validation-errors,
.captacion-form-wrapper .wpcf7-mail-sent-ok
{
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.captacion-form-wrapper .wpcf7-validation-errors
{
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.captacion-form-wrapper .wpcf7-mail-sent-ok
{
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.captacion-form-wrapper .wpcf7-spinner
{
    margin-left: 0.5rem;
    display: block;
}

/* Campos con error */
.captacion-form-wrapper .wpcf7-not-valid
{
    border-color: #dc3545 !important;
}

.captacion-form-wrapper .wpcf7-not-valid:focus
{
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
}

/* ============================================================
   FORMULARIO PÁGINA CONTACTO — CF7 dentro de pmc-section-card
   ============================================================ */

.pmc-page-contact .wpcf7 form,
.pmc-page-contact .wpcf7-form
{
    width: 100%;
}

.pmc-page-contact .wpcf7 p
{
    margin-bottom: 1rem;
    font-size: 1rem;
}

.pmc-page-contact .wpcf7 p br
{
    display: none;
}

.pmc-page-contact .wpcf7 input[type="text"],
.pmc-page-contact .wpcf7 input[type="email"],
.pmc-page-contact .wpcf7 input[type="tel"],
.pmc-page-contact .wpcf7 textarea
{
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pmc-page-contact .wpcf7 input[type="text"]:focus,
.pmc-page-contact .wpcf7 input[type="email"]:focus,
.pmc-page-contact .wpcf7 input[type="tel"]:focus,
.pmc-page-contact .wpcf7 textarea:focus
{
    border-color: #8E2C3B;
    outline: none;
    box-shadow: 0 0 0 3px rgba(111, 21, 38, 0.1);
}

.pmc-page-contact .wpcf7 textarea
{
    min-height: 140px;
    resize: vertical;
}

.pmc-page-contact .wpcf7 input[type="submit"]
{
    background: #8E2C3B;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    width: 100%;
}

.pmc-page-contact .wpcf7 input[type="submit"]:hover
{
    background: #3a0a13;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 21, 38, 0.25);
}

/* Responsive */
@media (max-width: 768px)
{   
    .form-section
    {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .section-title
    {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .captacion-form-wrapper .btn-submit,
    .captacion-form-wrapper input[type="submit"]
    {
        width: 100%;
        padding: 1rem;
    }
    
    .captacion-form-wrapper .form-control,
    .captacion-form-wrapper .form-select
    {
        font-size: 0.95rem;
        padding: 0.65rem 0.875rem;
    }

    .pmc-page-contact .wpcf7 input[type="text"],
    .pmc-page-contact .wpcf7 input[type="email"],
    .pmc-page-contact .wpcf7 input[type="tel"],
    .pmc-page-contact .wpcf7 textarea
    {
        font-size: 0.95rem;
    }
}

/* Animación de carga */
.captacion-form-wrapper .wpcf7-submit:disabled
{
    opacity: 0.7;
    cursor: not-allowed;
}

/* Mejoras visuales adicionales */
.captacion-form-wrapper .row
{
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.captacion-form-wrapper .row > [class*="col-"]
{
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Estilo para el footer del formulario */
.form-footer
{
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid #e9ecef;
}

/* ============================================================
   CAPTACIÓN — tarjeta en banda granate y página comprar
   ============================================================ */

.pmc-cta-band .pmc-captacion-shell
{
    max-width: 720px;
    margin: 1.75rem auto 0;
    width: 100%;
}

.pmc-captacion-page-card,
.pmc-cta-band .pmc-captacion-card
{
    background: #ffffff;
    border-radius: 18px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
    color: #1f2937;
}

.pmc-captacion-page-card .section-title,
.pmc-cta-band .pmc-captacion-card .section-title
{
    color: #8E2C3B;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-align: center;
}

.pmc-captacion-page-card .captacion-form-wrapper,
.pmc-cta-band .captacion-form-wrapper
{
    margin: 0;
}

.pmc-captacion-page-card .captacion-form-wrapper .form-label,
.pmc-cta-band .captacion-form-wrapper .form-label
{
    color: #374151;
}

.pmc-page-sell .pmc-captacion-section
{
    padding-top: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.pmc-page-sell .pmc-captacion-page-card,
.pmc-page-buy .pmc-captacion-page-card
{
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA comprar al final del listado de venta */
.pmc-inmuebles-comprar-cta
{
    margin-top: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    padding-top: 0.5rem;
}

.pmc-inmuebles-comprar-cta__card
{
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.pmc-inmuebles-comprar-cta__title
{
    color: #8E2C3B;
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
}

.pmc-inmuebles-comprar-cta__lead
{
    color: #4b5563;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Contactar: selector + paneles de formulario */
.pmc-contacto-dinamico__select
{
    max-width: 100%;
}

.pmc-contacto-dinamico__panel:not(.is-active)
{
    display: none;
}

.pmc-page-contact .pmc-contacto-dinamico .form-label
{
    font-weight: 600;
    color: #374151;
}

.captacion-turnstile-wrap
{
    display: flex;
    justify-content: flex-start;
    min-height: 68px;
}

.captacion-turnstile-wrap .wpcf7-turnstile,
.captacion-turnstile-wrap .cf-turnstile
{
    margin: 0;
}

.pmc-cta-band .wpcf7-response-output,
.pmc-captacion-page-card .wpcf7-response-output
{
    border-radius: 10px;
    margin-top: 1rem;
}

.pmc-captacion-page-card .pmc-captacion-card__footer
{
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(142, 44, 59, 0.14);
    text-align: center;
}

/* CTA secundario reutilizable (pie formulario + tarjetas) */
.pmc-captacion-secondary-cta
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    min-width: min(100%, 280px);
    padding: 0.8rem 1.75rem;
    border: 2px solid #8E2C3B;
    border-radius: 999px;
    background-color: #ffffff;
    color: #8E2C3B;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(142, 44, 59, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.pmc-captacion-secondary-cta:hover,
.pmc-captacion-secondary-cta:focus
{
    background-color: #8E2C3B;
    border-color: #8E2C3B;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(142, 44, 59, 0.22);
}

.pmc-captacion-secondary-cta:focus-visible
{
    outline: 2px solid #8E2C3B;
    outline-offset: 3px;
}

.pmc-captacion-page-card .pmc-captacion-card__footer .pmc-captacion-secondary-cta
{
    min-width: min(100%, 320px);
}

/* Variante sobre fondo granate (tarjeta valorador) */
.pmc-captacion-secondary-cta--on-dark
{
    background-color: #ffffff;
    border-color: #ffffff;
    color: #8E2C3B;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.pmc-captacion-secondary-cta--on-dark:hover,
.pmc-captacion-secondary-cta--on-dark:focus
{
    background-color: #f5efe0;
    border-color: #f5efe0;
    color: #6f1526;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.pmc-captacion-secondary-cta--on-dark:focus-visible
{
    outline-color: #ffffff;
}

@media (max-width: 768px)
{
    .pmc-cta-band .pmc-captacion-card,
    .pmc-captacion-page-card
    {
        padding: 1.25rem 1rem 1rem;
        border-radius: 14px;
    }

    .captacion-turnstile-wrap
    {
        justify-content: center;
    }

    .pmc-captacion-secondary-cta
    {
        width: 100%;
        min-width: 0;
    }
}

/* Horario de oficina (contactar) */
.pmc-contact-whatsapp
{
    margin-bottom: 0;
    line-height: 1.6;
}

.pmc-office-address
{
    margin-bottom: 0;
    line-height: 1.65;
    color: #475569;
}

.pmc-office-hours
{
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.pmc-office-hours__label
{
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8E2C3B;
    margin: 0 0 0.9rem;
}

.pmc-office-hours__list
{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.pmc-office-hours__item
{
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
    gap: 0.45rem 1.15rem;
    align-items: start;
}

.pmc-office-hours__days
{
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
}

.pmc-office-hours__times
{
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pmc-office-hours__time
{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
}

.pmc-office-hours__time::before
{
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8E2C3B;
    flex-shrink: 0;
    opacity: 0.85;
}

.pmc-page-contact .pmc-service-feature .pmc-office-hours
{
    margin-top: 1.15rem;
}

@media (max-width: 575.98px)
{
    .pmc-office-hours__item
    {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        padding: 0.85rem 0.95rem;
        border-radius: 14px;
        background: rgba(142, 44, 59, 0.04);
    }

    .pmc-office-hours__days
    {
        font-size: 0.98rem;
    }
}

