/**
 * Estilos del sitio público nuevo (site/) — B2B con colores de marca MVisual.
 *
 * Autor: Juan Morel (jcmorelm@mvisual.cl)
 */

:root {
    /* Paleta actual del proyecto */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --navbar-bg: #0037a0;
    --navbar-bg-hover: #002a7a;
    --btn-accent: #348888;
    --btn-accent-hover: #2a6e6e;
    --hero-tint: #daeceb;
    --light-bg: #f8f9fa;

    --mv-ink: var(--primary-color);
    --mv-ink-soft: #3d566e;
    --mv-muted: #5a6a7a;
    --mv-line: #d5dde5;
    --mv-surface: #ffffff;
    --mv-bg: var(--light-bg);
    --mv-accent: var(--navbar-bg);
    --mv-accent-hover: var(--navbar-bg-hover);
    --mv-accent-soft: #e8eef8;
    --mv-teal: var(--btn-accent);
    --mv-teal-hover: var(--btn-accent-hover);
    --mv-blue: var(--secondary-color);
    --mv-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .mv-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

body.mv-site {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--mv-ink);
    background: var(--mv-bg);
    -webkit-font-smoothing: antialiased;
}

/* Texto del sitio en Inter; iconos Tabler (.ti) quedan fuera */
body.mv-site,
body.mv-site p,
body.mv-site h1,
body.mv-site h2,
body.mv-site h3,
body.mv-site h4,
body.mv-site h5,
body.mv-site h6,
body.mv-site a,
body.mv-site li,
body.mv-site span:not(.ti):not([class^="ti"]),
body.mv-site label,
body.mv-site input,
body.mv-site textarea,
body.mv-site select,
body.mv-site button,
body.mv-site .btn,
body.mv-site .nav-link,
body.mv-site .form-control,
body.mv-site .form-select,
body.mv-site .form-label,
body.mv-site .navbar,
body.mv-site .mv-section-title,
body.mv-site .mv-section-lead,
body.mv-site .mv-hero-brand,
body.mv-site .mv-hero-lead,
body.mv-site .mv-kicker,
body.mv-site .mv-footer {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}

.mv-site a {
    color: var(--mv-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
    transition: color 0.2s ease;
}

.mv-site a:hover {
    color: var(--mv-blue);
}

.mv-site img {
    max-width: 100%;
    height: auto;
}

/* ---------- Menubar ---------- */
.mv-header {
    background: var(--navbar-bg);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 30, 80, 0.22);
}

.mv-menubar {
    min-height: 58px;
    padding-top: 0;
    padding-bottom: 0;
}

.mv-menubar .container {
    display: flex;
    align-items: stretch;
}

.mv-brand {
    display: inline-flex;
    align-items: center;
    align-self: center;
    text-decoration: none !important;
    padding: 0.35rem 0;
    margin-right: 1rem;
}

.mv-brand img {
    height: 38px;
    width: auto;
    padding: 3px 6px;
    background: #fff;
    border-radius: 4px;
}

.mv-menubar .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.35);
    align-self: center;
    padding: 0.35rem 0.5rem;
}

.mv-menubar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25);
}

.mv-menubar .navbar-toggler-icon {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.mv-nav {
    align-items: stretch !important;
}

.mv-nav .nav-item {
    display: flex;
}

.mv-nav .nav-link {
    color: rgba(218, 236, 235, 0.92) !important;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    padding: 0 1rem !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.mv-nav .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}

.mv-nav .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--mv-teal);
}

.mv-nav .nav-item-cta {
    align-items: center;
    padding-left: 0.5rem;
}

.mv-nav .btn-nav-cta {
    background: var(--mv-teal);
    color: #fff !important;
    border: none;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    padding: 0.45rem 0.95rem;
    text-decoration: none !important;
    border-radius: 3px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.mv-nav .btn-nav-cta:hover {
    background: var(--mv-teal-hover);
    color: #fff !important;
    transform: translateY(-1px);
}

/* WhatsApp en header — siempre visible */
.mv-header-actions {
    align-self: center;
}

.btn-whatsapp-header {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #25d366;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    padding: 0.45rem 0.85rem;
    border-radius: 3px;
    text-decoration: none !important;
    border: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp-header i {
    font-size: 1.15rem;
    line-height: 1;
}

.btn-whatsapp-header:hover,
.btn-whatsapp-header:focus {
    background: #1ebe57;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
}

@media (max-width: 575.98px) {
    .btn-whatsapp-header .btn-whatsapp-text {
        display: none;
    }

    .btn-whatsapp-header {
        padding: 0.45rem 0.55rem;
    }
}

@media (min-width: 992px) {
    .mv-header-actions {
        margin-left: 0.75rem !important;
    }

    .mv-header-actions .navbar-toggler {
        display: none;
    }
}

/* WhatsApp flotante permanente */
.mv-whatsapp-float {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #25d366;
    color: #fff !important;
    text-decoration: none !important;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1rem 0.75rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    animation: mv-whatsapp-pulse 2.4s ease-in-out infinite;
}

.mv-whatsapp-float i {
    font-size: 1.55rem;
    line-height: 1;
}

.mv-whatsapp-float:hover,
.mv-whatsapp-float:focus {
    background: #1ebe57;
    color: #fff !important;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
    animation: none;
}

@keyframes mv-whatsapp-pulse {
    0%,
    100% {
        box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
    }
    50% {
        box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45), 0 0 0 10px rgba(37, 211, 102, 0.12);
    }
}

@media (max-width: 575.98px) {
    .mv-whatsapp-float {
        right: 0.85rem;
        bottom: 0.85rem;
        padding: 0.85rem;
        border-radius: 50%;
    }

    .mv-whatsapp-float-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mv-whatsapp-float {
        animation: none;
    }
}

/* ---------- Botones ---------- */
.mv-site .btn-mv {
    background: var(--mv-accent);
    border-color: var(--mv-accent);
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mv-site .btn-mv:hover,
.mv-site .btn-mv:focus {
    background: var(--mv-accent-hover);
    border-color: var(--mv-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 55, 160, 0.25);
}

.mv-site .btn-mv-teal {
    background: var(--mv-teal);
    border-color: var(--mv-teal);
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.mv-site .btn-mv-teal:hover,
.mv-site .btn-mv-teal:focus {
    background: var(--mv-teal-hover);
    border-color: var(--mv-teal-hover);
    color: #fff;
    transform: translateY(-1px);
}

.mv-site .btn-mv-outline {
    background: transparent;
    border: 1px solid rgba(44, 62, 80, 0.25);
    color: var(--mv-ink);
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mv-site .btn-mv-outline:hover,
.mv-site .btn-mv-outline:focus {
    background: var(--mv-accent-soft);
    border-color: var(--mv-accent);
    color: var(--mv-accent);
}

/* ---------- Hero ---------- */
.mv-hero {
    background:
        linear-gradient(160deg, #01050a 0%, #002147 35%, #003587 70%, #0037a0 100%);
    color: #fff;
    padding: 3.5rem 0 4rem;
    overflow: hidden;
}

.mv-hero-brand {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 1rem;
    color: #fff;
}

/* Misma apariencia si el brand es h1 (SEO: un h1 por página) */
h1.mv-hero-brand {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 700;
}

.mv-hero-lead {
    font-size: 1.125rem;
    line-height: 1.55;
    color: rgba(218, 236, 235, 0.9);
    max-width: 34rem;
    margin: 0 0 1.75rem;
}

.mv-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mv-hero .btn-mv {
    background: #fff;
    border-color: #fff;
    color: var(--navbar-bg);
}

.mv-hero .btn-mv:hover {
    background: var(--hero-tint);
    border-color: var(--hero-tint);
    color: var(--navbar-bg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.mv-hero .btn-mv-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.mv-hero .btn-mv-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.mv-hero-visual {
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .mv-hero {
        padding: 4.5rem 0 5rem;
    }

    .mv-hero-visual {
        margin-top: 0;
    }
}

.mv-hero-visual img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* ---------- Rotador del hero ---------- */
.mv-hero-rotator {
    position: relative;
}

.mv-hero-rotator-viewport {
    position: relative;
    aspect-ratio: 1280 / 853;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.mv-hero-rotator-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    pointer-events: none;
}

.mv-hero-rotator-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: auto;
}

.mv-hero-rotator-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.mv-hero-rotator-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.mv-hero-rotator-label {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(218, 236, 235, 0.92);
}

.mv-hero-rotator-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navbar-bg);
    background: var(--hero-tint);
    border-radius: 2px;
}

.mv-hero-rotator-note {
    margin: 0.55rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(218, 236, 235, 0.72);
    max-width: 36rem;
}

.mv-hero-rotator-dots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mv-hero-rotator-dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mv-hero-rotator-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

.mv-hero-rotator-dot:focus-visible {
    outline: 2px solid #daeceb;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .mv-hero-rotator-slide {
        transition: none;
    }
}

/* ---------- Secciones ---------- */
.mv-section {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .mv-section {
        padding: 3.75rem 0;
    }
}

.mv-section-title {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mv-ink);
    margin: 0 0 0.5rem;
}

.mv-section-lead {
    color: var(--mv-muted);
    max-width: 36rem;
    margin: 0 0 2rem;
    font-size: 1.05rem;
}

.mv-section-lead--center {
    margin-left: auto;
    margin-right: auto;
}

.mv-kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mv-teal);
    margin-bottom: 0.5rem;
}

.mv-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.mv-feature-list li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.5rem;
    border-bottom: 1px solid var(--mv-line);
    color: var(--mv-ink-soft);
}

.mv-feature-list li:last-child {
    border-bottom: none;
}

.mv-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 0.4rem;
    height: 0.4rem;
    background: var(--mv-blue);
    border-radius: 1px;
}

.mv-panel {
    background: var(--mv-surface);
    border: 1px solid var(--mv-line);
    border-top: 3px solid var(--mv-blue);
    padding: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 768px) {
    .mv-panel {
        padding: 1.75rem;
    }
}

.mv-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 55, 160, 0.1);
    border-color: #c5d4e8;
}

.mv-panel h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: var(--mv-ink);
}

.mv-panel p {
    margin: 0;
    color: var(--mv-muted);
    font-size: 0.9375rem;
}

.mv-secondary {
    background: var(--hero-tint);
    border-top: 1px solid #c5d9d7;
    border-bottom: 1px solid #c5d9d7;
}

.mv-secondary-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .mv-secondary-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.mv-secondary-item {
    padding: 1rem 0;
    border-top: 2px solid var(--mv-teal);
    transition: transform 0.25s ease;
}

.mv-secondary-item:hover {
    transform: translateY(-2px);
}

.mv-secondary-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.65rem 0 0.35rem;
    color: var(--mv-ink);
}

.mv-secondary-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--mv-muted);
}

.mv-trust-row {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .mv-trust-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.mv-trust-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: var(--navbar-bg);
}

.mv-trust-item p {
    margin: 0;
    color: var(--mv-muted);
    font-size: 0.9375rem;
}

/* ---------- Contacto ---------- */
.mv-contact {
    background: var(--mv-surface);
}

.mv-contact .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mv-ink-soft);
    margin-bottom: 0.25rem;
}

.mv-contact .form-control,
.mv-contact .form-select {
    border-radius: 3px;
    border-color: var(--mv-line);
    font-size: 0.9375rem;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mv-contact .form-control:focus,
.mv-contact .form-select:focus {
    border-color: var(--mv-blue);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.2);
}

.mv-contact-meta a {
    color: var(--mv-ink);
    text-decoration: none;
    font-weight: 500;
}

.mv-contact-meta a:hover {
    color: var(--mv-accent);
}

.mv-contact-meta li {
    margin-bottom: 0.65rem;
}

.mv-contact .mv-panel {
    border-top-color: var(--navbar-bg);
}

/* ---------- Footer ---------- */
.mv-footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.72);
    padding: 2.5rem 0 1.5rem;
    font-size: 0.875rem;
}

.mv-footer a {
    color: rgba(218, 236, 235, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mv-footer a:hover {
    color: #fff;
}

.mv-footer h2 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 0.75rem;
}

.mv-footer-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.mv-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
}

/* ---------- Página interior ---------- */
.mv-page-hero {
    background: linear-gradient(180deg, var(--mv-accent-soft) 0%, var(--mv-surface) 100%);
    border-bottom: 1px solid var(--mv-line);
    padding: 2.5rem 0 2rem;
}

.mv-page-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: var(--navbar-bg);
}

.mv-page-hero p {
    margin: 0;
    color: var(--mv-muted);
    max-width: 40rem;
    font-size: 1.05rem;
}

.mv-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* ---------- Galería de pantallas del sistema ---------- */
.mv-screens {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .mv-screens {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .mv-screens {
        gap: 1.75rem;
    }
}

.mv-screen {
    margin: 0;
}

.mv-screen-frame {
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    border: 1px solid rgba(0, 55, 160, 0.12);
    box-shadow: 0 10px 28px rgba(0, 33, 71, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mv-screen:hover .mv-screen-frame {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 33, 71, 0.18);
}

.mv-screen-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.mv-screen figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 0.15rem 0;
}

.mv-screen figcaption strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mv-ink);
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.mv-screen-badge {
    display: inline-block;
    padding: 0.12rem 0.4rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mv-accent);
    background: var(--mv-accent-soft);
    border-radius: 2px;
}

.mv-screen figcaption > span {
    font-size: 0.875rem;
    color: var(--mv-muted);
    line-height: 1.4;
}

@media (hover: none) {
    .mv-screen:hover .mv-screen-frame {
        transform: none;
    }
}

/* ---------- Animaciones ---------- */
@keyframes mv-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mv-hero-copy {
    animation: mv-fade-up 0.7s ease both;
}

.mv-hero-visual {
    animation: mv-fade-up 0.85s ease 0.12s both;
}

.mv-menubar {
    animation: mv-fade-up 0.45s ease both;
}

/* ---------- Solo móvil / tablet (< 992px) ---------- */
@media (max-width: 991.98px) {
    html,
    body.mv-site {
        overflow-x: hidden;
    }

    body.mv-site {
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }

    .mv-menubar .container {
        flex-wrap: wrap;
        align-items: center;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .mv-brand {
        margin-right: 0.5rem;
        max-width: calc(100% - 7.5rem);
    }

    .mv-brand img {
        height: 32px;
        max-width: 100%;
    }

    .mv-header-actions {
        margin-left: auto !important;
    }

    .btn-whatsapp-header,
    .mv-menubar .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    .mv-menubar .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        margin-top: 0.25rem;
    }

    .mv-nav {
        padding: 0.5rem 0 0.85rem;
        width: 100%;
    }

    .mv-nav .nav-link {
        min-height: 44px;
        font-size: 0.95rem;
        padding: 0.75rem 0.25rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        border-left: 3px solid transparent;
    }

    .mv-nav .nav-link.active {
        border-bottom-color: rgba(255, 255, 255, 0.12);
        border-left-color: var(--mv-teal);
        background: transparent;
    }

    .mv-nav .nav-item-cta {
        padding: 0.75rem 0 0;
    }

    .mv-nav .btn-nav-cta {
        width: 100%;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.65rem 1rem;
        text-align: center;
    }

    .mv-hero {
        padding: 2rem 0 2.5rem;
    }

    .mv-hero-brand {
        font-size: clamp(2rem, 9vw, 2.75rem);
        word-break: break-word;
    }

    .mv-hero-lead {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .mv-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mv-hero-actions .btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        display: inline-flex;
        align-items: center;
        text-align: center;
    }

    .mv-hero-visual {
        margin-top: 1.25rem;
    }

    .mv-section {
        padding: 2.25rem 0;
    }

    .mv-section-lead {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .mv-panel {
        padding: 1.15rem;
    }

    .mv-page-hero {
        padding: 1.75rem 0 1.35rem;
    }

    .mv-page-hero p {
        font-size: 1rem;
    }

    .mv-footer {
        padding: 2rem 0 calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }

    .mv-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .mv-contact .btn-mv {
        width: 100%;
        min-height: 44px;
    }

    .mv-site .d-flex.flex-wrap.gap-2 .btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        display: inline-flex;
        align-items: center;
    }

    .mv-whatsapp-float {
        right: calc(0.85rem + env(safe-area-inset-right, 0px));
        bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 575.98px) {
    .btn-whatsapp-header .btn-whatsapp-text {
        display: none;
    }

    .btn-whatsapp-header {
        padding: 0.45rem 0.55rem;
    }

    .mv-whatsapp-float {
        padding: 0.85rem;
        border-radius: 50%;
    }

    .mv-whatsapp-float-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

@media (max-width: 375.98px) {
    .mv-brand img {
        height: 28px;
    }

    .mv-hero-brand {
        font-size: 1.85rem;
    }

    .mv-section-title {
        font-size: 1.35rem;
    }
}

/* Desktop: layout horizontal estable */
@media (min-width: 992px) {
    .mv-menubar .container {
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .mv-menubar .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        width: auto;
        flex-grow: 1;
    }

    .mv-nav {
        flex-direction: row;
        align-items: stretch;
        width: auto;
        padding: 0;
    }

    .mv-nav .nav-link {
        border-left: none;
        border-bottom: 3px solid transparent;
        min-height: auto;
        padding: 0 1rem !important;
    }

    .mv-nav .nav-link.active {
        border-left: none;
        border-bottom-color: var(--mv-teal);
        background: rgba(255, 255, 255, 0.1);
    }

    .mv-nav .btn-nav-cta {
        width: auto;
    }

    .mv-hero-actions {
        flex-direction: row;
        align-items: center;
    }

    .mv-hero-actions .btn {
        width: auto;
    }
}

@media (hover: none) {
    .mv-panel:hover,
    .mv-secondary-item:hover,
    .mv-site .btn-mv:hover,
    .mv-nav .btn-nav-cta:hover,
    .btn-whatsapp-header:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mv-whatsapp-float {
        animation: none;
    }
}
