/* Masachs: página "Anuncia tu inmueble" */
.mas-an {
    --mas-navy: #15326e;
    --mas-red: #d0021b;
    --mas-text: #5c727d;
    --mas-line: #d9dfea;
    --mas-soft: #f3f5f9;
    color: var(--mas-text);
}
.mas-an h1, .mas-an h2, .mas-an h3 { color: var(--mas-navy); }

/* ---------- Hero ---------- */
.mas-an-hero { padding: 50px 0 60px; }
.mas-an-hero > .wpb_column:first-child .vc_column-inner { padding-right: 40px; }
.mas-an-hero h1 { font-size: 43px; line-height: 1.15; font-weight: 800; margin: 0 0 24px; }
.mas-an-lead { font-size: 20px; line-height: 1.6; margin: 0 0 36px; }
.mas-an-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.mas-an-stats li { border-top: 3px solid var(--mas-red); padding-top: 14px; }
.mas-an-stats strong { display: block; font-size: 40px; line-height: 1.1; font-weight: 800; color: var(--mas-navy); }
.mas-an-stats span { display: block; font-size: 15px; line-height: 1.4; margin-top: 6px; }

/* ---------- Tarjeta formulario ---------- */
.mas-an-card { background: #fff; border: 1px solid var(--mas-line); border-radius: 0; box-shadow: 0 10px 30px rgba(21, 50, 110, .08); padding: 28px; scroll-margin-top: 120px; }
.mas-an-card h2 { font-size: 24px; line-height: 1.25; font-weight: 700; margin: 22px 0 6px; }
.mas-an-card .mas-an-note { font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.mas-an-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mas-an-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border-radius: 0; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none !important; transition: background .2s, color .2s; }
.mas-an-btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mas-an-btn--wa { background: #25d366; color: #fff !important; }
.mas-an-btn--wa:hover { background: #1da851; }
.mas-an-btn--tel { background: #fff; color: var(--mas-navy) !important; border: 1px solid var(--mas-navy); }
.mas-an-btn--tel:hover { background: var(--mas-navy); color: #fff !important; }
.mas-an-phones { font-size: 13px; text-align: center; margin: 8px 0 0; }
.mas-an-phones a { color: var(--mas-navy); }

/* ---------- Formulario CF7 ---------- */
.mas-af-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mas-af-full { grid-column: 1 / -1; }
.mas-af .wpcf7-form-control-wrap { display: block; }
.mas-af input[type=text], .mas-af input[type=email], .mas-af input[type=tel], .mas-af select, .mas-af textarea {
    width: 100%; margin: 0; padding: 10px 12px; height: auto;
    border: 1px solid var(--mas-line); border-radius: 0; background: #fff;
    font-size: 15px; color: var(--mas-navy); box-shadow: none;
}
.mas-af select { height: 44px; }
.mas-af textarea { height: 90px; resize: vertical; }
.mas-af input:focus, .mas-af select:focus, .mas-af textarea:focus { border-color: var(--mas-navy); outline: none; }
.mas-af ::placeholder { color: #9eaac3 !important; opacity: 1; }
.mas-af-more { margin: 14px 0 4px; border-top: 1px solid var(--mas-line); }
.mas-af-more summary { cursor: pointer; list-style: none; padding: 12px 0; font-weight: 700; font-size: 15px; color: var(--mas-navy); display: flex; align-items: center; gap: 8px; }
.mas-af-more summary::-webkit-details-marker { display: none; }
.mas-af-more summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--mas-red); border-bottom: 2px solid var(--mas-red); transform: rotate(45deg); margin: -4px 0 0 4px; transition: transform .2s; }
.mas-af-more[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.mas-af-more .mas-af-grid { padding-bottom: 6px; }
.mas-af-label { font-size: 14px; font-weight: 700; color: var(--mas-navy); margin: 6px 0 0; }
.mas-af .wpcf7-checkbox { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.mas-af .wpcf7-checkbox .wpcf7-list-item { margin: 0; font-size: 14px; }
.mas-af .wpcf7-checkbox label { display: flex; align-items: flex-start; gap: 6px; font-weight: 400; color: var(--mas-navy); }
.mas-af-hint { font-size: 12px; margin: 4px 0 0; }
.mas-af-legal { font-size: 13px; margin: 12px 0; }
.mas-af-legal .wpcf7-list-item { margin: 0; }
.mas-af .red_button, .mas-af input[type=submit] { width: 100%; padding: 14px; border-radius: 0; font-size: 16px; }
.mas-af .wpcf7-not-valid-tip { font-size: 12px; }
.mas-af .wpcf7-spinner { display: block; margin: 8px auto 0; }

/* ---------- Por qué Masachs ---------- */
.mas-an-why { padding: 70px 0; background: var(--mas-soft); }
.mas-an-section-title { font-size: 34px; line-height: 1.2; font-weight: 800; text-align: center; margin: 0 0 40px; }
.mas-an-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mas-an-item { background: #fff; border-radius: 0; padding: 28px; }
.mas-an-item svg { width: 40px; height: 40px; fill: none; stroke: var(--mas-red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mas-an-item h3 { font-size: 20px; line-height: 1.3; font-weight: 700; margin: 14px 0 10px; }
.mas-an-item p { font-size: 15px; line-height: 1.6; margin: 0 0 10px; }
.mas-an-item p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.mas-an-cta { background: var(--mas-navy); border-radius: 0; padding: 48px; text-align: center; margin: 70px 0; }
.mas-an-cta h2 { color: #fff; font-size: 30px; line-height: 1.25; font-weight: 800; margin: 0 0 14px; }
.mas-an-cta p { color: #dfe5f1; font-size: 17px; line-height: 1.6; max-width: 820px; margin: 0 auto 26px; }
.mas-an-cta a { display: inline-block; background: var(--mas-red); color: #fff !important; font-weight: 700; padding: 14px 34px; border-radius: 0; text-decoration: none !important; }
.mas-an-cta a:hover { background: #a80016; }

/* ---------- FAQ ---------- */
.mas-an-faq { max-width: 900px; margin: 0 auto 80px; }
.mas-an-faq .mas-an-eyebrow { display: block; text-align: center; color: var(--mas-red); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin-bottom: 8px; }
.mas-an-faq details { border-bottom: 1px solid var(--mas-line); }
.mas-an-faq summary { cursor: pointer; list-style: none; position: relative; padding: 20px 40px 20px 0; font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--mas-navy); }
.mas-an-faq summary::-webkit-details-marker { display: none; }
.mas-an-faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; color: var(--mas-red); }
.mas-an-faq details[open] summary::after { content: "\2212"; }
.mas-an-faq details p { font-size: 16px; line-height: 1.65; margin: 0 0 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .mas-an-hero > .wpb_column:first-child .vc_column-inner { padding-right: 15px; }
    .mas-an-hero > .wpb_column + .wpb_column { margin-top: 30px; }
    .mas-an-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .mas-an-hero { padding: 30px 0 40px; }
    .mas-an-hero h1 { font-size: 32px; }
    .mas-an-lead { font-size: 17px; }
    .mas-an-stats { gap: 10px; }
    .mas-an-stats strong { font-size: 28px; }
    .mas-an-stats span { font-size: 13px; }
    .mas-an-card { padding: 20px 16px; }
    .mas-af-grid, .mas-af .wpcf7-checkbox, .mas-an-grid { grid-template-columns: 1fr; }
    .mas-an-why { padding: 50px 0; }
    .mas-an-section-title { font-size: 26px; }
    .mas-an-cta { padding: 32px 20px; margin: 50px 0; }
    .mas-an-cta h2 { font-size: 24px; }
    .mas-an-faq summary { font-size: 16px; }
}

/* ---------- Refuerzos frente a estilos del tema ---------- */
.mas-an .mas-an-stats, .mas-an .mas-an-stats li { list-style: none !important; margin-left: 0 !important; }
.mas-an .mas-an-stats li::before { content: none !important; }
.mas-an .mas-an-card h2 { font-size: 24px !important; line-height: 1.25 !important; letter-spacing: 0; }
.mas-an .mas-an-cta h2 { color: #fff !important; font-size: 30px !important; }
.mas-an .mas-an-cta p { color: #dfe5f1 !important; }
.mas-an .mas-an-section-title { font-size: 34px !important; }
.mas-an .mas-af input[type=submit].red_button { background: var(--mas-red) !important; border: 0 !important; color: #fff !important; font-size: 16px !important; font-weight: 700; width: 100%; padding: 14px !important; border-radius: 0 !important; height: auto !important; }
.mas-an .mas-af input[type=submit].red_button:hover { background: #a80016 !important; }
@media (max-width: 600px) {
    .mas-an .mas-an-cta h2 { font-size: 24px !important; }
    .mas-an .mas-an-section-title { font-size: 26px !important; }
}
.mas-an .mas-an-lead { margin-bottom: 36px !important; }
.mas-an .mas-af p.mas-af-label { font-size: 14px !important; line-height: 1.3 !important; font-weight: 700 !important; margin: 8px 0 0 !important; color: var(--mas-navy); }
.mas-an .mas-af p.mas-af-hint { font-size: 12px !important; line-height: 1.4 !important; margin: 6px 0 0 !important; }
.mas-an .mas-af .wpcf7-checkbox label { align-items: center; margin: 0; line-height: 1.3; }
.mas-an .mas-af .wpcf7-checkbox .wpcf7-list-item-label { font-size: 14px !important; line-height: 1.3 !important; margin: 0 !important; }
.mas-an .mas-af input[type=checkbox] { margin: 0 !important; width: 16px; height: 16px; flex: none; }
.mas-an .mas-af .wpcf7-acceptance, .mas-an .mas-af-legal .wpcf7-form-control-wrap { border: 0 !important; padding: 0 !important; background: none !important; }
.mas-an .mas-af-legal label { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 13px; }
@media (max-width: 600px) {
    .mas-an .mas-an-stats strong { font-size: 22px !important; white-space: nowrap; }
    .mas-an .mas-an-hero h1 { font-size: 30px !important; }
}

/* ---------- Cabecera con imagen ---------- */
.mas-an.mas-an-hero {
    background: linear-gradient(90deg, rgba(21, 50, 110, .95) 0%, rgba(21, 50, 110, .8) 45%, rgba(21, 50, 110, .2) 100%),
                url(/wp-content/uploads/2025/05/naveindustrial.webp) center / cover no-repeat;
    padding: 70px 0 80px;
}
.mas-an.mas-an-hero > .wpb_column:first-child { padding-top: 20px; }
.mas-an .mas-an-hero h1, .mas-an.mas-an-hero h1 { color: #fff !important; }
.mas-an.mas-an-hero .mas-an-lead { color: #e6ebf5; }
.mas-an.mas-an-hero .mas-an-stats strong { color: #fff; }
.mas-an.mas-an-hero .mas-an-stats span { color: #c9d3e6; }
.mas-an.mas-an-hero .mas-an-card { box-shadow: 0 20px 50px rgba(0, 0, 0, .25); border: 0; }
@media (max-width: 991px) {
    .mas-an.mas-an-hero { background: linear-gradient(rgba(21, 50, 110, .9), rgba(21, 50, 110, .9)), url(/wp-content/uploads/2025/05/naveindustrial.webp) center top / cover no-repeat; padding: 40px 0 50px; }
}

/* Variante de cabecera B (nave vacía, slider home) */
.mas-an.mas-an-hero.mas-an-hero--b {
    background: linear-gradient(90deg, rgba(21, 50, 110, .95) 0%, rgba(21, 50, 110, .8) 45%, rgba(21, 50, 110, .2) 100%),
                url(/wp-content/uploads/2022/03/slider_masachs_28_03.jpg) center / cover no-repeat;
}
@media (max-width: 991px) {
    .mas-an.mas-an-hero.mas-an-hero--b { background: linear-gradient(rgba(21, 50, 110, .9), rgba(21, 50, 110, .9)), url(/wp-content/uploads/2022/03/slider_masachs_28_03.jpg) center top / cover no-repeat; }
}

/* FAQ: aire entre respuesta y línea inferior */
.mas-an .mas-an-faq details > p { margin: 0 !important; padding: 0 40px 26px 0 !important; }

/* Sin esquinas redondeadas (estilo de la web) */
.mas-an .mas-an-card, .mas-an .mas-an-btn, .mas-an .mas-an-item, .mas-an .mas-an-cta, .mas-an .mas-an-cta a,
.mas-an .mas-af input, .mas-an .mas-af select, .mas-an .mas-af textarea, .mas-an .mas-af .red_button { border-radius: 0 !important; }

/* Ajustes cliente 2026-10-22: botones redondeados con fondo, teléfonos en rojo, aire en tarjetas */
.mas-an .mas-an-lead { margin-bottom: 16px !important; }
.mas-an .mas-an-lead + .mas-an-lead { margin-bottom: 36px !important; }
.mas-an .mas-an-lead strong { color: #fff; font-weight: 700; }
.mas-an .mas-an-btn { border-radius: 30px !important; border: 0 !important; }
.mas-an .mas-an-btn--tel { background: var(--mas-navy) !important; color: #fff !important; }
.mas-an .mas-an-btn--tel:hover { background: #0e2350 !important; }
.mas-an .mas-af input[type=submit].red_button, .mas-an .mas-an-cta a { border-radius: 30px !important; }
.mas-an .mas-an-phones a { color: var(--mas-red) !important; font-weight: 700; }
.mas-an .mas-an-item { padding-bottom: 55px !important; }
.mas-an .mas-af .wpcf7-checkbox, .mas-an .mas-af .wpcf7-acceptance { border-radius: 0 !important; }
.mas-an .mas-an-btn--tel { box-shadow: inset 0 0 0 1px var(--mas-navy); }
.mas-an .mas-an-btn--tel:hover, .mas-an .mas-an-btn--tel:focus-visible { background: #fff !important; color: var(--mas-navy) !important; }

/* Botones rojos como el resto de la web: borde rojo 2px, hover blanco con texto rojo */
.mas-an .mas-af input[type=submit].red_button, .mas-an .mas-an-cta a { border: 2px solid var(--mas-red) !important; background: var(--mas-red) !important; color: #fff !important; transition: background .2s, color .2s; }
.mas-an .mas-af input[type=submit].red_button:hover, .mas-an .mas-an-cta a:hover,
.mas-an .mas-an-cta a:focus-visible { background: #fff !important; color: var(--mas-red) !important; }
.mas-an .mas-an-btn--wa { box-shadow: inset 0 0 0 2px #25d366; }
.mas-an .mas-an-btn--wa:hover, .mas-an .mas-an-btn--wa:focus-visible { background: #fff !important; color: #1da851 !important; }
.mas-an .mas-an-btn--tel { box-shadow: inset 0 0 0 2px var(--mas-navy); }

/* ---------- Paneles: formulario completo / audio ---------- */
.mas-an .mas-an-panel--audio { display: none; }
.mas-an .mas-an-card.is-audio .mas-an-panel--audio { display: block; }
.mas-an .mas-an-card.is-audio .mas-an-panel--full { display: none; }
.mas-an .mas-an-card.is-audio .mas-an-btn--wa { box-shadow: inset 0 0 0 2px #1da851; background: #1da851 !important; }
.mas-an .mas-an-panel h2:focus { outline: none; }
.mas-an .mas-an-back { display: block; margin: 14px auto 0; background: none; border: 0; padding: 4px; font-size: 14px; font-weight: 700; color: var(--mas-navy); text-decoration: underline; cursor: pointer; }
.mas-an .mas-an-back:hover { color: var(--mas-red); }

/* ---------- Grabadora ---------- */
.mas-an .mas-rec { margin: 0 0 14px; padding: 16px; background: var(--mas-soft); border: 1px solid var(--mas-line); }
.mas-an .mas-rec-hint { font-size: 14px !important; line-height: 1.5 !important; margin: 0 0 12px !important; color: var(--mas-text); }
.mas-an .mas-rec-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mas-an .mas-rec-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border: 2px solid var(--mas-red); border-radius: 30px; background: var(--mas-red); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.mas-an .mas-rec-btn:hover, .mas-an .mas-rec-btn:focus-visible { background: #fff; color: var(--mas-red); }
.mas-an .mas-rec-dot { width: 12px; height: 12px; border-radius: 50%; background: currentColor; flex: none; }
.mas-an .mas-rec.is-recording .mas-rec-dot { border-radius: 2px; animation: mas-rec-pulse 1s infinite; }
.mas-an .mas-rec.is-ready .mas-rec-btn { background: #fff; color: var(--mas-navy); border-color: var(--mas-navy); }
.mas-an .mas-rec.is-ready .mas-rec-btn:hover { background: var(--mas-navy); color: #fff; }
.mas-an .mas-rec-time { font-size: 14px; font-weight: 700; color: var(--mas-navy); font-variant-numeric: tabular-nums; }
.mas-an .mas-rec.is-recording .mas-rec-time { color: var(--mas-red); }
.mas-an .mas-rec-player { display: block; width: 100%; margin-top: 12px; }
.mas-an .mas-rec-player[hidden] { display: none; }
.mas-an .mas-rec-msg { font-size: 13px !important; line-height: 1.4 !important; margin: 10px 0 0 !important; color: var(--mas-red); }
/* El input file solo se ve si el navegador no puede grabar */
.mas-an .mas-rec-file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mas-an .mas-rec.is-fallback .mas-rec-file { position: static; width: auto; height: auto; clip: auto; overflow: visible; margin-top: 10px; }
/* Error de validación del audio visible aunque el input esté oculto */
.mas-an .mas-rec .wpcf7-not-valid-tip { position: static; margin-top: 8px; }
.mas-an .mas-rec:has(.wpcf7-not-valid) .mas-rec-file { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
.mas-an .mas-rec:has(.wpcf7-not-valid) .mas-rec-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
@keyframes mas-rec-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .mas-an .mas-rec.is-recording .mas-rec-dot { animation: none; } }

/* Ajustes 2026-10-23 */
/* Botón "Envíanos un audio" en rojo (mismo efecto que los botones rojos) */
.mas-an .mas-an-btn--wa,
.mas-an .mas-an-card.is-audio .mas-an-btn--wa { background: var(--mas-red) !important; color: #fff !important; box-shadow: inset 0 0 0 2px var(--mas-red); }
.mas-an .mas-an-btn--wa:hover, .mas-an .mas-an-btn--wa:focus-visible,
.mas-an .mas-an-card.is-audio .mas-an-btn--wa:hover { background: #fff !important; color: var(--mas-red) !important; }

/* Botón "Adjuntar fotos" (plugin multiline files) con estilo Masachs */
.mas-an .mas-af #mfcf7_zl_add_file {
    display: inline-block; width: auto; height: auto; margin: 4px 0 0; padding: 10px 24px;
    background: var(--mas-navy) !important; color: #fff !important; border: 0 !important;
    box-shadow: inset 0 0 0 2px var(--mas-navy); border-radius: 30px !important;
    font-size: 15px; font-weight: 700; line-height: 1.2; text-transform: none; cursor: pointer; transition: background .2s, color .2s;
}
.mas-an .mas-af #mfcf7_zl_add_file:hover, .mas-an .mas-af #mfcf7_zl_add_file:focus-visible { background: #fff !important; color: var(--mas-navy) !important; }
.mas-an .mas-af .zl-form-control-wrap.fotos input[type=file] { display: none; }
.mas-an .mas-af .mfcf7-zl-multifile-name { font-size: 14px; color: var(--mas-navy); }
.mas-an .mas-af .zl-form-control-wrap.fotos { display: flex !important; align-items: center; gap: 8px; margin: 4px 0; }
.mas-an .mas-af .zl-form-control-wrap.fotos:has(.mfcf7-zl-multifile-name:empty) { display: none !important; }
.mas-an .mas-af .mfcf7_zl_delete_file { text-decoration: none; font-size: 11px; line-height: 1; }
.mas-an .mas-af .mas-af-full > p { margin: 0; }

/* Hero en móvil: menos aire arriba */
@media (max-width: 767px) {
    .mas-an.mas-an-hero { padding-top: 24px !important; }
    .mas-an.mas-an-hero > .wpb_column:first-child { padding-top: 0; }
    .mas-an.mas-an-hero > .wpb_column .vc_column-inner { padding-top: 0 !important; }
    .mas-an .mas-an-hero h1, .mas-an.mas-an-hero h1 { padding-top: 0 !important; margin: 0 0 16px !important; }
}
.mas-an .mas-an-card.is-audio .mas-an-btn--wa svg { display: none; }
.mas-an .mas-an-item p:empty, .mas-an .mas-an-cta p:empty { display: none; }
