/* Base compartida de MB. Los estilos de producto conservan sus composiciones. */
:root {
    --mb-font: system-ui, -apple-system, "Segoe UI", sans-serif;
    --mb-brand: #0b5b3a;
    --mb-brand-hover: #08472d;
    --mb-ink: #172a22;
    --mb-muted: #4b5f54;
    --mb-line: #cedbd3;
    --mb-surface: #fff;
    --mb-tint: #f4faf6;
    --mb-radius: 12px;
    --mb-radius-button: 8px;
    --mb-shadow: 0 2px 12px rgb(12 63 37 / 8%);
    --mb-space: clamp(1rem, 2.3vw, 1.75rem);
    --mb-max: 75rem;
    --mb-touch: 44px;
    --mb-h1: clamp(1.875rem, 4vw, 2.75rem);
    --mb-h2: clamp(1.45rem, 2.7vw, 2rem);
    --mb-h3: clamp(1.08rem, 1.8vw, 1.3rem);
    --mb-small: .9rem;
}

body { font-family: var(--mb-font); }
button, input, textarea, select { font-family: inherit; }
.container { max-width: var(--mb-max); padding-inline: var(--mb-space); }
:where(main, header, footer, .mb-seo-migas, .mb-seo-relacionados) :focus-visible {
    outline: 2px solid var(--mb-brand);
    outline-offset: 3px;
    box-shadow: 0 0 0 2px var(--mb-surface);
}
:where(main) :is(input[disabled], select[disabled], textarea[disabled], button[disabled]) {
    cursor: not-allowed;
}
:where(main) :is(button, .btn, .radio-btn, .guia-action, .btn-enviar-comentario) {
    min-height: var(--mb-touch);
}
header .header-container { min-height: 72px; gap: .75rem; padding-block: .65rem; }
header .logo { min-width: 0; min-height: var(--mb-touch); }
header .logo-symbol { flex: 0 0 44px; width: 44px; height: 44px; border-radius: var(--mb-radius-button); }
header .logo-title { color: var(--mb-brand); }
header .logo-subtitle { color: var(--mb-muted); }
header .mobile-menu-btn { min-width: var(--mb-touch); min-height: var(--mb-touch); }
header :is(.mobile-nav, .desktop-nav) a { min-height: var(--mb-touch); }
header .mobile-nav a { display: flex; align-items: center; }
header .nav-cta { border-radius: var(--mb-radius-button); background: var(--mb-brand); }
header .nav-cta:hover { background: var(--mb-brand-hover); }
header :is(.mobile-nav, .desktop-nav) a[aria-current="page"]:not(.nav-cta) {
    color: var(--mb-brand);
    font-weight: 700;
}
footer .social-link { min-width: var(--mb-touch); min-height: var(--mb-touch); }
footer :focus-visible { outline-color: var(--mb-surface); box-shadow: 0 0 0 2px var(--mb-brand); }

.mb-home .hero { padding-block: clamp(2rem, 6vw, 4rem); }
.mb-home .hero h1 { font-size: var(--mb-h1); line-height: 1.15; }
.mb-home .hero p { max-width: 44ch; }
.mb-home :is(.neighborhood, .features, .advertisers) { padding-block: clamp(2rem, 5vw, 3.5rem); }
.mb-home .section-title h2, .mb-home .advertisers-text h2 { font-size: var(--mb-h2); line-height: 1.2; }
.mb-home :is(.feature-card, .neighborhood-card, .plan-card) {
    border: 1px solid var(--mb-line);
    border-radius: var(--mb-radius);
    box-shadow: var(--mb-shadow);
}
.mb-home :is(.feature-card, .neighborhood-card) h3 { font-size: var(--mb-h3); }
.mb-home :is(.feature-link, .neighborhood-link) {
    align-content: center;
    min-height: var(--mb-touch);
    display: inline-grid;
    color: var(--mb-brand);
    text-decoration: underline;
    text-underline-offset: .18em;
}
.mb-home .feature-card { cursor: auto; }
.mb-home .feature-card:hover, .mb-home .neighborhood-card:hover { transform: none; }
.mb-home .mb-home-anuncia .plan-card { padding: var(--mb-space); }
.mb-home .mb-home-anuncia .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: var(--mb-brand);
    border-radius: var(--mb-radius-button);
}
.mb-home .mb-home-anuncia .btn-primary:hover { background: var(--mb-brand-hover); }
.info-rapida .mb-info-rapida-title { font-size: var(--mb-h3); margin-bottom: .75rem; }
.radio-page :is(.radio-btn, .radio-card, .radio-player-card) { border-radius: var(--mb-radius); }
.radio-page .radio-hero-text h1 { font-size: var(--mb-h1); line-height: 1.15; }

.radio-mini, .radio-mini-card, .radio-mini-card .radio-audio { box-sizing: border-box; }
.radio-mini-card { min-width: 0; }
header .desktop-nav a { display: inline-flex; align-items: center; }

@media (max-width: 768px) {
    .mb-home .hero-buttons { gap: .65rem; }
    .mb-home .hero-buttons .btn { min-height: var(--mb-touch); }
    header .header-container { min-height: 66px; }
}
@media (prefers-reduced-motion: reduce) {
    header .logo-symbol::before { animation: none; }
}

/* Componentes de navegación, listados y formularios. */
footer .social-links { flex-wrap: wrap; }
footer .mb-social-link {
    width: auto;
    height: auto;
    padding-inline: .8rem;
    border-radius: var(--mb-radius-button);
    font-size: var(--mb-small);
}
footer .mb-social-link:hover { background: var(--mb-brand); }

:is(.guia-card, .rubro-card, .guia-seo-card, .ubicacion-item, .info-rapida, .contacto-card, .mbs-form-card) {
    border-color: var(--mb-line);
    border-radius: var(--mb-radius);
}
.guia-card .guia-card-titleblock :is(h2, h3) {
    font-size: var(--mb-h3);
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.guia-card :is(.mb-card-contact, .mb-card-links) {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .45rem;
    margin: 0;
}
.guia-card .mb-card-contact:has(a) { margin-block-start: .7rem; }
.guia-card :is(.mb-card-contact, .mb-card-links) .guia-btn {
    width: auto;
    min-height: var(--mb-touch);
    border-radius: var(--mb-radius-button);
}
.guia-card .mb-card-links .guia-btn {
    background: transparent;
    border-color: transparent;
    color: var(--mb-brand);
    text-decoration: underline !important;
    text-underline-offset: .15em;
}
.guia-card .mb-card-links .guia-btn:hover { background: var(--mb-tint); }
.guia-card .mb-card-ficha {
    width: fit-content;
    max-width: 100%;
    min-height: var(--mb-touch);
    margin-block-start: .45rem;
    padding-inline: .85rem;
    border-radius: var(--mb-radius-button);
}
.guia-badge.mb-card-propio { background: #e4f2e8; color: var(--mb-brand); }
.guia-toolbar { border-radius: var(--mb-radius); padding: var(--mb-space); }
.mb-guia-filtros summary { min-height: var(--mb-touch); align-content: center; }
.guia-alpha-btn { min-width: var(--mb-touch); min-height: var(--mb-touch); }

.mb-escuelas-filtro:not([hidden]) {
    display: grid;
    gap: .4rem;
    margin-block: 1rem;
}
.mb-escuelas-filtro label { font-weight: 650; }
.mb-escuelas-filtro :is(input, p) { min-width: 0; }
.mb-escuelas-filtro input { min-height: var(--mb-touch); }
.mb-escuelas-filtro p { color: var(--mb-muted); font-size: var(--mb-small); }
#mb-escuelas-lista [hidden] { display: none; }
.info-rapida h3 { text-transform: lowercase; }
.info-rapida h3::first-letter { text-transform: uppercase; }

.mbs-field-label { font-weight: 700; margin-bottom: .38rem; }
main :is(.contacto-form, .anun-form, .mbs-form-card, .form-comentario)
:is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), select, textarea) {
    max-width: 100%;
    min-width: 0;
    border-radius: var(--mb-radius-button);
}
main :is(.contacto-form, .anun-form, .mbs-form-card, .form-comentario)
:is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), select) {
    min-height: var(--mb-touch);
}
main :is(.contacto-form, .anun-form, .mbs-form-card, .form-comentario)
:is(input, select, textarea, button):focus-visible {
    outline: 2px solid var(--mb-brand);
    outline-offset: 2px;
}
main :is(.contacto-legal, .anun-help, .mbs-help) { overflow-wrap: anywhere; }
:is(.guia-side-actions .guia-btn, .guia-share-actions .guia-btn, .property-lightbox button) {
    min-height: var(--mb-touch);
    min-width: var(--mb-touch);
}

@media (max-width: 768px) {
    main :is(.contacto-form, .anun-form, .mbs-form-card, .form-comentario)
    :is(input:not([type="hidden"]), select, textarea) { font-size: max(16px, 1em); }
    .guia-toolbar { margin-bottom: 1rem; }
    .guia-search-row { gap: .6rem; }
}

/* Contraste de los controles principales y foco del formulario de contacto. */
:is(.mb-home .hero-buttons .btn-primary, .mb-contacto .btn-submit, .mb-info-estructura .btn-buscar, .form-comentario .btn-enviar-comentario) {
    background: var(--mb-brand);
    color: var(--mb-surface);
}
:is(.mb-home .hero-buttons .btn-primary, .mb-contacto .btn-submit, .mb-info-estructura .btn-buscar, .form-comentario .btn-enviar-comentario):hover {
    background: var(--mb-brand-hover);
    color: var(--mb-surface);
}
.contacto-form :is(.form-input, .form-textarea, .form-select):focus {
    outline: 2px solid var(--mb-brand);
    outline-offset: 2px;
}