* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--ml-surface, #f5f8f6);
    color: var(--ml-accent, #0c2235);
    line-height: 1.5;
}

html[data-theme="dark"] body {
    background: #0f1724;
    color: #e6edf8;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(12, 34, 53, 0.08);
}

.nav-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
    min-height: 84px;
}

.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(12, 34, 53, 0.18);
    background: rgba(255, 255, 255, 0.92);
    color: #1d2b40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(12, 34, 53, 0.32);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo-image,
.brand-logo-fallback {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    flex: 0 0 64px;
}

.brand-logo-image {
    object-fit: cover;
    box-shadow: 0 10px 26px rgba(12, 34, 53, 0.14);
}

.brand-logo-fallback {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--ml-primary, #12a05c), #5ed394);
    color: #fff;
    box-shadow: 0 10px 26px rgba(18, 160, 92, 0.24);
}

.brand-logo-symbol {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 14px;
}

.brand-logo-letter {
    font-size: 22px;
    font-weight: 800;
}

.brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.brand-copy strong {
    font-size: 1.08rem;
    line-height: 1.1;
}

.brand-copy span {
    color: rgba(12, 34, 53, 0.68);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(12, 34, 53, 0.82);
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--ml-primary, #12a05c);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 16px;
    font-size: 0.98rem;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--ml-primary, #12a05c), #0db15e);
    color: #fff;
    box-shadow: 0 14px 30px rgba(18, 160, 92, 0.24);
}

.btn-secondary {
    background: #fff;
    color: var(--ml-accent, #0c2235);
    border: 1px solid rgba(12, 34, 53, 0.14);
    box-shadow: 0 8px 22px rgba(12, 34, 53, 0.08);
}

.btn-nav {
    min-height: 46px;
    padding-inline: 18px;
}

.btn-hero {
    min-height: 64px;
    padding: 0 40px;
    font-size: 1.1rem;
    border-radius: 20px;
    letter-spacing: 0.01em;
}

.hero-section {
    padding: 56px 0 44px;
    background:
        radial-gradient(circle at top left, rgba(18, 160, 92, 0.09), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f4f8f6 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 42px;
}

.hero-copy {
    padding-block: 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(18, 160, 92, 0.12);
    color: var(--ml-primary, #12a05c);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 18px 0 14px;
    max-width: 620px;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-subtitle {
    max-width: 520px;
    margin: 0 0 24px;
    color: rgba(12, 34, 53, 0.72);
    font-size: 1.08rem;
}

.hero-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0 0 28px;
    list-style: none;
}

.hero-list li,
.trust-list li {
    position: relative;
    padding-left: 34px;
    font-weight: 600;
}

.hero-list li::before,
.trust-list li::before {
    content: "";
    position: absolute;
    inset: 2px auto auto 0;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ml-primary, #12a05c), #4cc982);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.hero-list li::after,
.trust-list li::after {
    content: "✓";
    position: absolute;
    inset: 2px auto auto 7px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 900;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.hero-microcopy {
    margin: -8px 0 18px;
    color: rgba(12, 34, 53, 0.82);
    font-size: 0.95rem;
    font-weight: 700;
}

.hero-proof {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(18, 160, 92, 0.08);
    border: 1px solid rgba(18, 160, 92, 0.18);
    border-radius: 999px;
    padding: 10px 18px;
}

.proof-avatars {
    position: relative;
    display: flex;
}

.proof-avatars::after {
    content: "";
    position: absolute;
    left: -6px;
    top: -6px;
    width: 70px;
    height: 50px;
    background: radial-gradient(circle, rgba(18, 160, 92, 0.24), rgba(18, 160, 92, 0));
    filter: blur(4px);
    pointer-events: none;
}

.proof-avatars span {
    width: 38px;
    height: 38px;
    border: 2px solid #fff;
    border-radius: 999px;
    margin-left: -10px;
    background: linear-gradient(135deg, #d4ddd7, #a7bfb4);
    box-shadow: 0 6px 14px rgba(12, 34, 53, 0.1);
}

.proof-avatars span:first-child {
    margin-left: 0;
}

.proof-avatar {
    width: 38px;
    height: 38px;
    border: 2px solid #fff;
    border-radius: 999px;
    margin-left: -10px;
    object-fit: cover;
    background: #dbe6de;
    box-shadow: 0 6px 14px rgba(12, 34, 53, 0.14);
}

.proof-avatar:first-child {
    margin-left: 0;
}

.proof-text {
    font-weight: 700;
}

.proof-subtext {
    font-size: 0.84rem;
    color: rgba(12, 34, 53, 0.72);
}

.proof-stars {
    color: #f2b41a;
    letter-spacing: 0.2em;
}

.hero-visual {
    position: relative;
    padding-block: 10px 34px;
}

.hero-visual-card {
    overflow: hidden;
    border-radius: 36px;
    background: linear-gradient(160deg, #eef7f2, #d2ead9);
    box-shadow:
        0 48px 80px rgba(12, 34, 53, 0.20),
        0 8px 24px rgba(12, 34, 53, 0.08);
}

.hero-visual-card img {
    width: 100%;
    height: auto;
}

.chat-card {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: min(280px, calc(100% - 28px));
    display: block;
    padding: 16px 18px 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 32px rgba(12, 34, 53, 0.18);
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.chat-card:hover,
.chat-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 38px rgba(12, 34, 53, 0.2);
}

.chat-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.chat-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(18, 160, 92, 0.12);
    color: var(--ml-primary, #12a05c);
    font-size: 0.82rem;
    font-weight: 800;
}

.chat-status {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(18, 160, 92, 0.9);
}

.chat-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
}

.chat-time {
    display: block;
    margin-top: 10px;
    text-align: right;
    color: rgba(12, 34, 53, 0.46);
    font-size: 0.78rem;
}

.chat-checks {
    color: #34b7f1;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.services-section,
.trust-section,
.testimonials-section,
.cta-band-section,
.faq-section,
.contact-section {
    padding: 28px 0;
}

.inline-cta-section {
    padding: 28px 0;
}

.inline-cta-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 36px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--ml-primary, #12a05c), #0db15e);
    box-shadow: 0 20px 40px rgba(18, 160, 92, 0.22);
}

.inline-cta-text {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    max-width: 540px;
}

.inline-cta-shell .btn-whatsapp {
    background: #fff;
    color: var(--ml-primary, #12a05c);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    white-space: nowrap;
    flex-shrink: 0;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading.centered {
    text-align: center;
}

.section-heading.centered .hero-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2,
.trust-copy h2,
.cta-band h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: start;
    padding: 24px 20px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(12, 34, 53, 0.08);
    box-shadow: 0 16px 26px rgba(12, 34, 53, 0.06);
}

.service-icon,
.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(18, 160, 92, 0.12);
    color: var(--ml-primary, #12a05c);
    font-size: 1.4rem;
}

.service-card h3,
.contact-card h3 {
    margin: 0 0 6px;
    font-size: 1.04rem;
}

.service-card p,
.contact-card p,
.trust-copy p,
.faq-item p,
.testimonial-card p,
.cta-band p {
    margin: 0;
    color: rgba(12, 34, 53, 0.7);
}

.trust-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px;
    align-items: center;
}

.trust-copy {
    display: grid;
    gap: 18px;
    align-content: start;
}

.trust-strong {
    font-weight: 800;
    color: var(--ml-accent, #0c2235);
}

.trust-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust-media {
    overflow: hidden;
    border-radius: 30px;
    box-shadow:
        0 32px 52px rgba(12, 34, 53, 0.16),
        0 6px 18px rgba(12, 34, 53, 0.06);
}

.trust-media img {
    width: 100%;
    height: auto;
}

.testimonials-grid,
.contact-grid,
.footer-grid {
    display: grid;
    gap: 18px;
}

.testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-card,
.contact-card {
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(12, 34, 53, 0.08);
    box-shadow: 0 18px 28px rgba(12, 34, 53, 0.06);
}

.testimonial-stars {
    margin-bottom: 12px;
    color: #f2b41a;
    letter-spacing: 0.14em;
}

.testimonial-card p {
    font-size: 1rem;
    color: var(--ml-accent, #0c2235);
}

.testimonial-meta {
    margin-top: 16px;
    display: grid;
    gap: 4px;
}

.testimonial-meta strong {
    font-size: 0.94rem;
}

.testimonial-meta span,
.section-note,
.footer-bottom {
    color: rgba(12, 34, 53, 0.56);
    font-size: 0.86rem;
}

.section-note {
    margin-top: 14px;
    text-align: center;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px;
    border-radius: 28px;
    background: linear-gradient(140deg, rgba(18, 160, 92, 0.12), rgba(18, 160, 92, 0.02));
    border: 1px solid rgba(18, 160, 92, 0.16);
}

.cta-band p {
    margin-top: 6px;
}

.faq-grid {
    display: grid;
    gap: 14px;
}

.faq-item {
    border-radius: 20px;
    border: 1px solid rgba(12, 34, 53, 0.08);
    background: #fff;
    padding: 0 20px;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--ml-primary, #12a05c);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    padding-bottom: 18px;
}

.contact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-card {
    display: grid;
    gap: 12px;
}

.contact-card a {
    font-weight: 700;
    color: var(--ml-primary, #12a05c);
}

.sticky-shell {
    position: sticky;
    bottom: 18px;
    z-index: 12;
    display: none;
}

.sticky-mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--ml-primary, #12a05c), #0db15e);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 18px 32px rgba(18, 160, 92, 0.22);
}

.site-footer {
    margin-top: 36px;
    padding: 34px 0 24px;
    background: #091928;
    color: rgba(255, 255, 255, 0.74);
}

.footer-grid {
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
}

.footer-brand,
.site-footer h3,
.site-footer a {
    color: #fff;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.74);
}

.footer-brand {
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 800;
}

.site-footer h3 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.site-footer ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.35rem;
    color: #dff7eb;
    font-size: 0.92rem;
    line-height: 1.4;
    word-break: break-word;
}

.footer-list a {
    color: inherit;
    text-decoration: none;
}

.footer-list a:hover,
.footer-list a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.55rem;
}

.social-links a,
.social-links .social-icon-static {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid #bce8d2;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    transform: translateY(-1px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.56);
}

.footer-bottom a {
    color: #8be2b4;
    font-weight: 700;
}

/* ── Product cards layout (all templates with product sections) ───── */
#productos .services-grid,
#galeria-productos .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

#productos .service-card,
#galeria-productos .service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 18px;
}

#productos .service-card > div,
#galeria-productos .service-card > div {
    width: 100%;
    display: grid;
    gap: 8px;
    justify-items: center;
}

#productos .service-card img,
#galeria-productos .service-card img {
    width: min(100%, 250px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    margin: 0 auto;
}

#productos .service-card h3,
#galeria-productos .service-card h3 {
    margin: 0;
}

@media (max-width: 640px) {
    #productos .services-grid,
    #galeria-productos .services-grid {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    #productos .services-grid::-webkit-scrollbar,
    #galeria-productos .services-grid::-webkit-scrollbar {
        height: 6px;
    }

    #productos .service-card,
    #galeria-productos .service-card {
        flex: 0 0 82vw;
        max-width: 82vw;
        scroll-snap-align: start;
    }
}

/* ── Dark mode defaults for generated landings ───────────────────── */
html[data-theme="dark"] .site-header {
    background: rgba(13, 21, 34, 0.92);
    border-bottom-color: rgba(130, 153, 184, 0.22);
}

html[data-theme="dark"] .theme-toggle {
    background: rgba(30, 41, 59, 0.8);
    border-color: #3d4f68;
    color: #b8c9e0;
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle:focus-visible {
    border-color: #5a7088;
    background: rgba(30, 41, 59, 0.95);
}

html[data-theme="dark"] .brand-logo-fallback {
    background: rgba(73, 195, 131, 0.15);
}

html[data-theme="dark"] .brand-copy span {
    color: rgba(114, 224, 170, 0.8);
}

html[data-theme="dark"] .main-nav a {
    color: #c7d6ea;
}

html[data-theme="dark"] .btn-secondary {
    background: #172336;
    border-color: #33465e;
    color: #e6edf8;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .inline-cta-shell .btn-whatsapp {
    color: #0c2235;
}

html[data-theme="dark"] .hero-section {
    background:
        radial-gradient(circle at top left, rgba(18, 160, 92, 0.2), transparent 34%),
        linear-gradient(180deg, #0f1724 0%, #121c2b 100%);
}

html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .contact-card p,
html[data-theme="dark"] .trust-copy p,
html[data-theme="dark"] .faq-item p,
html[data-theme="dark"] .testimonial-card p,
html[data-theme="dark"] .testimonial-meta span,
html[data-theme="dark"] .section-note,
html[data-theme="dark"] .cta-band p,
html[data-theme="dark"] .footer-bottom,
html[data-theme="dark"] .site-footer p {
    color: #9fb2cb;
}

html[data-theme="dark"] .testimonial-card p {
    color: #d1dce8;
}

html[data-theme="dark"] .testimonial-meta span,
html[data-theme="dark"] .section-note {
    color: #b8c9e0;
}

html[data-theme="dark"] .hero-subtitle,
html[data-theme="dark"] .proof-subtext {
    color: #b8c9e0;
}

html[data-theme="dark"] .hero-microcopy {
    color: #d1dce8;
}

html[data-theme="dark"] .hero-list li {
    color: #d1dce8;
}

html[data-theme="dark"] .proof-text,
html[data-theme="dark"] .hero-copy h1,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .trust-copy h2,
html[data-theme="dark"] .cta-band h2,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .contact-card h3,
html[data-theme="dark"] .testimonial-meta strong,
html[data-theme="dark"] .faq-item summary,
html[data-theme="dark"] .trust-strong {
    color: #e6edf8;
}

html[data-theme="dark"] .hero-visual-card {
    background: linear-gradient(160deg, #1a2739, #162232);
    box-shadow:
        0 48px 80px rgba(0, 0, 0, 0.44),
        0 8px 24px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .chat-card {
    background: rgba(18, 28, 43, 0.96);
    box-shadow: 0 20px 32px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .chat-card p {
    color: #dce6f5;
}

html[data-theme="dark"] .chat-time {
    color: #94a8c2;
}

html[data-theme="dark"] .eyebrow {
    background: rgba(73, 195, 131, 0.2);
    color: #72e0aa;
}

html[data-theme="dark"] .chat-pill {
    background: rgba(73, 195, 131, 0.18);
    color: #72e0aa;
}

html[data-theme="dark"] .chat-status {
    color: #72e0aa;
}

html[data-theme="dark"] .service-icon,
html[data-theme="dark"] .contact-icon {
    background: rgba(73, 195, 131, 0.18);
    color: #72e0aa;
}

html[data-theme="dark"] .service-card,
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .faq-item {
    background: #152133;
    border-color: #2d3d54;
    box-shadow: 0 16px 26px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .cta-band {
    background: linear-gradient(140deg, rgba(18, 160, 92, 0.24), rgba(18, 160, 92, 0.08));
    border-color: rgba(73, 195, 131, 0.32);
}

html[data-theme="dark"] .contact-card a,
html[data-theme="dark"] .footer-bottom a {
    color: #72e0aa;
}

html[data-theme="dark"] .site-footer {
    background: #0a1320;
    color: rgba(217, 229, 244, 0.74);
}

html[data-theme="dark"] .footer-brand,
html[data-theme="dark"] .site-footer h3,
html[data-theme="dark"] .site-footer a {
    color: #ecf3ff;
}

html[data-theme="dark"] .footer-list li {
    color: #dff7eb;
}

html[data-theme="dark"] .social-links a,
html[data-theme="dark"] .social-links .social-icon-static {
    border-color: rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .social-links a:hover,
html[data-theme="dark"] .social-links a:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}

.whatsapp-float-landing {
    position: fixed;
    right: 1rem;
    bottom: 1.2rem;
    z-index: 50;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 12px 28px rgba(24, 164, 84, 0.35);
    text-decoration: none;
    border: 2px solid #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float-landing:hover,
.whatsapp-float-landing:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(24, 164, 84, 0.4);
}

/* ── Body style variants per category ─────────────────────────────── */
body.style-urgent {
    --ml-primary: #12a05c;
    --ml-accent: #0c2235;
    --ml-surface: #f5f8f6;
}

body.style-home {
    --ml-primary: #2c7de0;
    --ml-accent: #102040;
    --ml-surface: #f5f8fb;
}

body.style-beauty {
    --ml-primary: #b0468a;
    --ml-accent: #2a1020;
    --ml-surface: #fdf5fb;
}

body.style-food {
    --ml-primary: #d46e1a;
    --ml-accent: #1e1208;
    --ml-surface: #fdf9f5;
}

@media (max-width: 1080px) {
    .main-nav {
        gap: 18px;
    }

    .services-grid,
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testimonials-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inline-cta-shell {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

@media (max-width: 860px) {

    .nav-shell,
    .hero-grid,
    .trust-grid,
    .cta-band,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-shell {
        display: grid;
        padding: 16px 0;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .btn-nav {
        width: 100%;
    }

    .nav-actions {
        width: 100%;
        justify-content: stretch;
    }

    .nav-actions .theme-toggle {
        flex: 0 0 44px;
    }

    .nav-actions .btn-nav {
        flex: 1 1 auto;
    }

    .hero-visual {
        order: -1;
    }
}

@media (max-width: 640px) {
    body {
        padding-bottom: 92px;
    }

    .container {
        width: min(100% - 20px, 1180px);
    }

    .site-header {
        position: static;
    }

    .main-nav {
        display: none;
    }

    .hero-section {
        padding-top: 20px;
    }

    .hero-copy h1 {
        font-size: 2.5rem;
    }


    .services-grid,
    .contact-grid,
    .testimonials-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .contact-grid::-webkit-scrollbar {
        height: 6px;
    }

    .contact-card {
        flex: 0 0 82vw;
        max-width: 82vw;
        scroll-snap-align: start;
    }

    .service-card {
        grid-template-columns: 42px 1fr;
        padding: 20px 18px;
    }

    .chat-card {
        right: 10px;
        bottom: 10px;
    }

    .sticky-shell {
        display: block;
    }

    .btn-hero {
        min-height: 58px;
        padding: 0 28px;
        font-size: 1rem;
        width: 100%;
    }

    .inline-cta-shell {
        padding: 22px 20px;
        text-align: center;
        flex-direction: column;
    }

    .hero-proof {
        border-radius: 16px;
        padding: 10px 14px;
    }

    .whatsapp-float-landing {
        width: 54px;
        height: 54px;
        right: 0.8rem;
        bottom: 0.9rem;
        font-size: 1.65rem;
    }
}