/* ==========================================================================
   MARYER DIGITAL 2.0 — EDITORIAL LIGHT SYSTEM (v2.css)
   100% Light Editorial Surfaces · Zero Dark Sections · Accessible Motion
   ========================================================================== */

@font-face {
    font-family: 'Manrope';
    src: url('assets/fonts/Manrope/Manrope-VariableFont_wght.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --md2-cream: #FAF6F0;
    --md2-cream-soft: #F4EDE2;
    --md2-white: #FFFFFF;
    --md2-coral: #FB673D;
    --md2-coral-dark: #D94E27;
    --md2-pink: #EDB3BD;
    --md2-pink-soft: #F7D9DF;
    --md2-yellow: #F9D991;
    --md2-yellow-soft: #FBEBC2;
    --md2-ink: #1F1D1E;
    --md2-muted: #58555A;
    --md2-border: rgba(31, 29, 30, 0.1);
    --md2-border-strong: rgba(31, 29, 30, 0.18);
    --md2-radius-lg: 24px;
    --md2-radius-md: 18px;
    --md2-shadow-card: 0 12px 32px rgba(31, 29, 30, 0.06);
    --md2-shadow-hover: 0 20px 44px rgba(31, 29, 30, 0.1);
}

/* --- Accessibility Utilities --- */
.visually-hidden:where(:not(:focus-within, :active)) {
    position: absolute !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.skip-link:focus-visible {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    background: var(--md2-ink);
    color: var(--md2-white);
    padding: 12px 18px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    outline: 3px solid var(--md2-coral);
    outline-offset: 2px;
}

:where(a:any-link, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--md2-coral);
    outline-offset: 3px;
}

/* --- Navbar 5-Page Current Page Indicator (WCAG 1.4.1 non-color cue) --- */
.navbar {
    padding: 10px 0;
}

.nav-logo-img--full {
    height: 48px;
    max-height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-link {
    position: relative;
    padding: 6px 2px;
    min-block-size: 40px;
    display: inline-flex;
    align-items: center;
}

.nav-link[aria-current="page"] {
    color: var(--md2-coral-dark);
    font-weight: 800;
}

.nav-link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    border-bottom: 2.5px solid var(--md2-coral);
    border-radius: 2px;
}

.nav-cta-btn[aria-current="page"] {
    box-shadow: 0 0 0 2px var(--md2-cream), 0 0 0 4px var(--md2-ink);
}

/* --- Shared Editorial Section Headers --- */
.md2-section {
    padding: 76px 0;
    position: relative;
}

.md2-section--cream {
    background: var(--md2-cream);
}

.md2-section--white {
    background: var(--md2-white);
    border-top: 1px solid rgba(31, 29, 30, 0.06);
    border-bottom: 1px solid rgba(31, 29, 30, 0.06);
}

.md2-head {
    max-width: 720px;
    margin-bottom: 40px;
}

.md2-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.md2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--md2-coral-dark);
    background: rgba(251, 103, 61, 0.1);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.md2-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(30px, 4.2vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--md2-ink);
    margin-bottom: 14px;
}

.md2-lead {
    font-size: clamp(16px, 1.5vw, 18.5px);
    line-height: 1.6;
    color: var(--md2-muted);
}

/* --- Page Hero (Interior Pages) --- */
.md2-page-hero {
    background: var(--md2-cream);
    padding: 136px 0 64px;
    border-bottom: 1px solid rgba(31, 29, 30, 0.06);
}

.md2-page-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--md2-ink);
    margin-bottom: 18px;
    max-width: 820px;
}

.md2-page-hero p {
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--md2-muted);
    max-width: 660px;
    line-height: 1.6;
}

/* ==========================================================================
   HOME — HERO EDITORIAL RENOVADO (ITERACIÓN 2 · 3-CARD COLLAGE)
   ========================================================================== */
.md2-hero {
    background: var(--md2-cream);
    padding: 132px 0 88px;
    position: relative;
    overflow: hidden;
}

.md2-hero h1 {
    font-size: clamp(42px, 5.4vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--md2-ink);
    margin-bottom: 20px;
}

.md2-hero-accent {
    position: relative;
    display: inline-block;
    color: var(--md2-coral-dark);
}

.md2-hero-underline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    width: 100%;
    height: 10px;
    overflow: visible;
    pointer-events: none;
}

.md2-hero-underline path {
    stroke: var(--md2-coral);
    stroke-width: 4;
    stroke-linecap: round;
    fill: none;
}

.md2-hero-desc {
    font-size: clamp(16.5px, 1.55vw, 19px);
    line-height: 1.6;
    color: var(--md2-muted);
    max-width: 520px;
    margin-bottom: 30px;
}

/* 3-Card Overlapping Editorial Collage (Dynamic agency motion, 100% light) */
.md2-collage {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 455px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.md2-collage-halo {
    position: absolute;
    width: 390px;
    height: 390px;
    border-radius: 48px;
    background: radial-gradient(circle at 35% 35%, rgba(251, 103, 61, 0.14) 0%, rgba(249, 217, 145, 0.28) 50%, rgba(237, 179, 189, 0.22) 82%, transparent 100%);
    border: 1.5px dashed rgba(31, 29, 30, 0.12);
    transform: rotate(-3deg);
    pointer-events: none;
}

.md2-collage-card {
    position: absolute;
    border-radius: 20px;
    border: 1.5px solid var(--md2-border-strong);
    box-shadow: 0 16px 38px rgba(31, 29, 30, 0.1);
    overflow: hidden;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.38s ease;
}

/* Card 1: Contenido — Editorial Carousel Cover (Rosa) */
.md2-collage-card--content {
    top: 14px;
    left: 6px;
    z-index: 2;
    width: 210px;
    background: var(--md2-pink-soft);
    padding: 12px;
    transform: rotate(-4.5deg);
}

.md2-carousel-cover {
    background: var(--md2-cream);
    border-radius: 14px;
    padding: 14px 13px 12px;
    border: 1px solid rgba(31, 29, 30, 0.08);
    position: relative;
    overflow: hidden;
}

.md2-carousel-blob {
    position: absolute;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(251, 103, 61, 0.16);
    top: -24px;
    right: -24px;
    pointer-events: none;
}

.md2-carousel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.md2-carousel-handle {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--md2-ink);
}

.md2-carousel-count {
    font-size: 9.5px;
    font-weight: 800;
    background: var(--md2-coral);
    color: var(--md2-white);
    padding: 2px 7px;
    border-radius: 100px;
}

.md2-carousel-headline {
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.22;
    color: var(--md2-ink);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.md2-carousel-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.md2-carousel-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(31, 29, 30, 0.22);
}

.md2-carousel-dots span:first-child {
    width: 14px;
    border-radius: 10px;
    background: var(--md2-coral);
}

.md2-collage-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 800;
    color: var(--md2-ink);
}

/* Card 2: Web & Tech — Real Published Project Screenshot (Center-Front) */
.md2-collage-card--web {
    top: 76px;
    right: 6px;
    z-index: 4;
    width: 292px;
    background: var(--md2-white);
    padding: 10px;
    border-color: rgba(251, 103, 61, 0.45);
    transform: rotate(1.5deg);
}

.md2-mini-browser {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(31, 29, 30, 0.1);
    background: var(--md2-cream);
}

.md2-mini-browser-bar {
    height: 22px;
    background: #F6F1EA;
    border-bottom: 1px solid rgba(31, 29, 30, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 9px;
}

.md2-mini-dots {
    display: flex;
    gap: 4px;
}

.md2-mini-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(31, 29, 30, 0.2);
}

.md2-mini-url {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--md2-muted);
}

.md2-mini-browser > picture img {
    width: 100%;
    height: 152px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Agency Editorial Mockup Canvas inside Hero Center Card */
.md2-agency-canvas {
    padding: 15px 15px 13px;
    background: var(--md2-cream);
    position: relative;
    overflow: hidden;
}

.md2-agency-blob-1 {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(251, 103, 61, 0.14);
    top: -36px;
    right: -28px;
    pointer-events: none;
}

.md2-agency-blob-2 {
    position: absolute;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: rgba(249, 217, 145, 0.35);
    bottom: 24px;
    right: 12px;
    pointer-events: none;
}

.md2-agency-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.md2-agency-logo-mini {
    height: 30px !important;
    width: auto !important;
    display: block;
    object-fit: contain;
}

.md2-agency-pill-live {
    font-size: 9.5px;
    font-weight: 800;
    color: var(--md2-coral-dark);
    background: rgba(251, 103, 61, 0.12);
    padding: 3px 8px;
    border-radius: 100px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.md2-agency-headline {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: var(--md2-ink);
    margin-bottom: 10px;
    max-width: 195px;
    position: relative;
    z-index: 1;
}

.md2-agency-cta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.md2-agency-cta-mock {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    background: var(--md2-coral);
    color: var(--md2-white);
    padding: 5px 11px;
    border-radius: 100px;
}

.md2-agency-sub-mock {
    font-size: 10px;
    font-weight: 700;
    color: var(--md2-muted);
}

.md2-agency-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    position: relative;
    z-index: 1;
}

.md2-agency-mini-pill {
    text-align: center;
    padding: 6px 4px;
    border-radius: 9px;
    font-size: 9.5px;
    font-weight: 800;
    color: var(--md2-ink);
    border: 1px solid rgba(31, 29, 30, 0.08);
}

.md2-agency-mini-pill--pink { background: var(--md2-pink-soft); }
.md2-agency-mini-pill--yellow { background: var(--md2-yellow-soft); }
.md2-agency-mini-pill--coral { background: #FFE0D6; color: var(--md2-coral-dark); }

/* Card 3: Estrategia — Visual Flow Diagram (Amarillo, Bottom-Left) */
.md2-collage-card--strategy {
    bottom: 16px;
    left: 22px;
    z-index: 3;
    width: 286px;
    background: var(--md2-yellow-soft);
    padding: 13px 14px;
    transform: rotate(-2deg);
}

.md2-flow-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 8px;
}

.md2-flow-node {
    flex: 1;
    background: var(--md2-white);
    border: 1px solid rgba(31, 29, 30, 0.1);
    border-radius: 10px;
    padding: 8px 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--md2-ink);
    line-height: 1.2;
}

.md2-flow-node--accent {
    background: var(--md2-coral);
    color: var(--md2-white);
    border-color: var(--md2-coral);
}

.md2-flow-arrow {
    color: var(--md2-ink);
    font-weight: 800;
    font-size: 12px;
    flex-shrink: 0;
}

/* Compact 4-Discipline Home Bento (Zero chips, concise 1-sentence copy) */
.md2-bento-compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.md2-bento-tile {
    border-radius: 22px;
    padding: 24px 26px;
    border: 1.5px solid var(--md2-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    text-decoration: none;
    color: var(--md2-ink);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.md2-bento-tile--cream { background: var(--md2-cream); }
.md2-bento-tile--pink { background: var(--md2-pink-soft); }
.md2-bento-tile--yellow { background: var(--md2-yellow-soft); }
.md2-bento-tile--coral { background: #FFE5DC; border-color: rgba(251, 103, 61, 0.32); }

@media (hover: hover) {
    .md2-bento-tile:hover {
        transform: translateY(-4px);
        box-shadow: var(--md2-shadow-hover);
    }
}

.md2-bento-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.md2-bento-tile h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--md2-ink);
    margin: 2px 0 4px;
}

.md2-bento-tile p {
    font-size: 15px;
    line-height: 1.5;
    color: #363336;
}

.md2-bento-go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 800;
    color: var(--md2-ink);
}

/* ==========================================================================
   SERVICIOS — VISUAL EXAMPLES PER CATEGORY (CONCEPTUAL vs REAL PROJECT)
   ========================================================================== */
.md2-svc-points {
    list-style: none;
    display: grid;
    gap: 9px;
    margin: 18px 0 24px;
}

.md2-svc-points li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 15px;
    font-weight: 600;
    color: var(--md2-ink);
    line-height: 1.45;
}

.md2-svc-visual {
    background: rgba(255, 255, 255, 0.88);
    border: 1.5px solid rgba(31, 29, 30, 0.1);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 26px rgba(31, 29, 30, 0.05);
}

.md2-svc-visual-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.md2-svc-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 100px;
}

.md2-svc-tag--conceptual {
    background: var(--md2-cream);
    color: var(--md2-muted);
    border: 1px solid rgba(31, 29, 30, 0.12);
}

.md2-svc-tag--real {
    background: #ECFDF5;
    color: #166534;
    border: 1px solid rgba(22, 101, 52, 0.22);
}

.md2-strategy-map {
    display: grid;
    gap: 10px;
}

.md2-strategy-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--md2-cream);
    border: 1px solid rgba(31, 29, 30, 0.08);
    border-radius: 12px;
    padding: 11px 13px;
}

.md2-strategy-step strong {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--md2-ink);
}

.md2-strategy-step span {
    font-size: 12px;
    color: var(--md2-muted);
}

.md2-content-grid-mock {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.md2-content-cell {
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(31, 29, 30, 0.08);
    font-size: 11px;
    font-weight: 800;
    color: var(--md2-ink);
}

.md2-content-cell--cream { background: var(--md2-cream); }
.md2-content-cell--pink { background: var(--md2-pink-soft); }
.md2-content-cell--yellow { background: var(--md2-yellow-soft); }
.md2-content-cell--coral { background: #FFE0D6; color: var(--md2-coral-dark); }

.md2-paid-flow {
    display: grid;
    gap: 10px;
}

.md2-paid-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--md2-cream);
    border: 1px solid rgba(31, 29, 30, 0.08);
    font-size: 13px;
    font-weight: 700;
    color: var(--md2-ink);
}

.md2-paid-pill {
    font-size: 11px;
    font-weight: 800;
    background: var(--md2-white);
    padding: 3px 9px;
    border-radius: 100px;
    border: 1px solid rgba(31, 29, 30, 0.1);
}

.md2-web-preview-frame {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(31, 29, 30, 0.12);
    background: var(--md2-white);
}

.md2-web-preview-frame img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.md2-web-preview-caption {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--md2-ink);
    background: var(--md2-cream);
}

/* Pillar pills kept for /servicios anchor bar */
.md2-pillar-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    min-block-size: 38px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--md2-ink);
    background: var(--md2-white);
    border: 1.5px solid var(--md2-border-strong);
    flex: none;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease;
}

.md2-pillar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.md2-pillar-dot--cream { background: var(--md2-ink); }
.md2-pillar-dot--pink { background: #D97A8D; }
.md2-pillar-dot--yellow { background: #DDA528; }
.md2-pillar-dot--coral { background: var(--md2-coral); }

/* ==========================================================================
   4 SERVICE CATEGORIES GRID (HOME & SERVICIOS)
   ========================================================================== */
.md2-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.md2-cat-card {
    border-radius: var(--md2-radius-lg);
    padding: 28px;
    border: 1.5px solid var(--md2-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
    position: relative;
}

.md2-cat-card--cream { background: var(--md2-cream); }
.md2-cat-card--pink { background: var(--md2-pink-soft); }
.md2-cat-card--yellow { background: var(--md2-yellow-soft); }
.md2-cat-card--coral {
    background: #FFE5DC;
    border-color: rgba(251, 103, 61, 0.35);
}

@media (hover: hover) {
    .md2-cat-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--md2-shadow-hover);
    }
}

.md2-cat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.md2-cat-num {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--md2-ink);
    background: rgba(255, 255, 255, 0.78);
    padding: 5px 12px;
    border-radius: 100px;
}

.md2-cat-card h3 {
    font-size: clamp(22px, 2.3vw, 28px);
    font-weight: 800;
    color: var(--md2-ink);
    margin: 6px 0 8px;
}

.md2-cat-card p {
    font-size: 15.5px;
    line-height: 1.55;
    color: #363336;
}

.md2-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.md2-chip {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--md2-ink);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(31, 29, 30, 0.1);
    padding: 5px 11px;
    border-radius: 100px;
}

.md2-cat-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid rgba(31, 29, 30, 0.08);
}

.md2-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--md2-ink);
    min-block-size: 36px;
}

.md2-card-link:hover {
    color: var(--md2-coral-dark);
}

.md2-card-toggle {
    background: var(--md2-white);
    border: 1.5px solid var(--md2-border-strong);
    border-radius: 100px;
    padding: 6px 14px;
    min-block-size: 36px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--md2-ink);
    cursor: pointer;
}

.md2-card-panel {
    margin-top: 4px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 14px;
    border: 1px solid rgba(31, 29, 30, 0.08);
    font-size: 14.5px;
    color: #363336;
}

.md2-card-panel ul {
    margin: 8px 0 0 18px;
    display: grid;
    gap: 6px;
}

/* ==========================================================================
   COMMERCIAL JOURNEY (100% LIGHT CREAM + WHITE CARDS)
   ========================================================================== */
.md2-journey-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.md2-journey-step {
    background: var(--md2-white);
    border: 1.5px solid var(--md2-border);
    border-radius: var(--md2-radius-md);
    padding: 26px;
    box-shadow: var(--md2-shadow-card);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.md2-journey-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    color: var(--md2-ink);
}

.md2-journey-num--pink { background: var(--md2-pink-soft); }
.md2-journey-num--yellow { background: var(--md2-yellow-soft); }
.md2-journey-num--coral { background: #FFE0D6; color: var(--md2-coral-dark); }

.md2-journey-step h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--md2-ink);
}

.md2-journey-step p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--md2-muted);
}

/* ==========================================================================
   PROYECTOS — ACCESSIBLE FILTER TABS & PORTFOLIO GRID
   ========================================================================== */
.md2-tabs-wrap {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.md2-tablist {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 6px;
    background: var(--md2-white);
    border: 1.5px solid var(--md2-border);
    border-radius: 100px;
    max-width: 100%;
    scrollbar-width: none;
}

.md2-tablist::-webkit-scrollbar {
    display: none;
}

.md2-tab {
    position: relative;
    flex: none;
    border: none;
    background: transparent;
    color: var(--md2-muted);
    font-family: 'Manrope', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    padding: 10px 20px;
    min-block-size: 42px;
    border-radius: 100px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.md2-tab[aria-selected="true"] {
    color: var(--md2-ink);
    background: var(--md2-yellow-soft);
}

/* Non-color indicator for selected tab (WCAG 1.4.1 & forced-colors safe) */
.md2-tab[aria-selected="true"]::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 5px;
    border-bottom: 3px solid var(--md2-coral);
    border-radius: 2px;
}

.md2-projects-count {
    font-size: 14px;
    font-weight: 700;
    color: var(--md2-muted);
}

.md2-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.md2-project-card {
    border-radius: var(--md2-radius-lg);
    overflow: hidden;
    border: 1.5px solid var(--md2-border);
    display: flex;
    flex-direction: column;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}

.md2-project-card[hidden] {
    display: none !important;
}

.md2-project-card--pink { background: var(--md2-pink-soft); }
.md2-project-card--yellow { background: var(--md2-yellow-soft); }
.md2-project-card--cream { background: var(--md2-cream); }
.md2-project-card--coral { background: #FFE5DC; }

@media (hover: hover) {
    .md2-project-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--md2-shadow-hover);
    }
}

.md2-project-media {
    padding: 20px 20px 0;
}

.md2-project-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.md2-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.md2-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 100px;
}

.md2-status-badge--real {
    background: var(--md2-white);
    color: #166534;
    border: 1px solid rgba(22, 101, 52, 0.22);
}

.md2-status-badge--demo {
    background: var(--md2-white);
    color: var(--md2-ink);
    border: 1px solid rgba(31, 29, 30, 0.2);
}

.md2-cat-pill {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--md2-muted);
    background: rgba(255, 255, 255, 0.72);
    padding: 4px 10px;
    border-radius: 100px;
}

.md2-project-body h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--md2-ink);
}

.md2-project-body p {
    font-size: 15px;
    line-height: 1.55;
    color: #363336;
}

.md2-project-footer {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================================================
   NOSOTROS — 3P MARKETING-INSPIRED TILTED/OVERLAPPING CARD STACK
   (Mode A: Maryer + Real Projects; Ready for Mode B: 2 Real Portraits)
   ========================================================================== */
.md2-about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas:
        "header stack"
        "body   stack";
    column-gap: 48px;
    row-gap: 16px;
    align-items: start;
}

.md2-about-header {
    grid-area: header;
}

.md2-about-body {
    grid-area: body;
}

.md2-portrait-stack {
    grid-area: stack;
    position: relative;
    min-height: 490px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
}

.md2-tilt-card {
    background: var(--md2-white);
    border: 1.5px solid var(--md2-border-strong);
    border-radius: 22px;
    padding: 14px;
    box-shadow: var(--md2-shadow-card);
    transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.36s ease;
}

.md2-tilt-card--primary {
    position: relative;
    z-index: 3;
    width: 280px;
    background: var(--md2-pink-soft);
    transform: rotate(-2.5deg) translateX(-46px) translateY(-14px);
}

.md2-tilt-card--secondary {
    position: absolute;
    right: 8px;
    bottom: 22px;
    z-index: 2;
    width: 248px;
    background: var(--md2-yellow-soft);
    transform: rotate(3deg);
}

.md2-tilt-card--tertiary {
    position: absolute;
    right: 26px;
    top: 18px;
    z-index: 1;
    width: 215px;
    background: var(--md2-cream);
    transform: rotate(2deg);
}

.md2-portrait-frame {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--md2-cream);
    margin-bottom: 12px;
}

.md2-portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

/* Dual-Portrait Editorial Stack (Maryer Díaz & Ximena Díaz — both names & roles 100% visible) */
.md2-portrait-stack[data-team-mode="dual"] {
    min-height: 440px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    padding: 12px 4px 36px;
}

.md2-portrait-stack[data-team-mode="dual"] .md2-tilt-card--primary {
    position: relative;
    width: 100%;
    transform: rotate(-2.2deg);
    z-index: 3;
}

.md2-portrait-stack[data-team-mode="dual"] .md2-tilt-card--secondary {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    background: var(--md2-yellow-soft);
    transform: rotate(2.2deg) translateY(32px);
    z-index: 2;
}

.md2-portrait-placeholder {
    width: 100%;
    height: 100%;
    background: #E6E4E1;
    border: 1.5px dashed rgba(31, 29, 30, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.md2-portrait-placeholder-text {
    font-size: 15px;
    font-weight: 700;
    color: #5B5858;
}

.md2-project-thumb {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--md2-white);
    margin-bottom: 10px;
}

.md2-project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.md2-tilt-caption strong {
    display: block;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--md2-ink);
}

.md2-tilt-caption span {
    display: block;
    font-size: 13px;
    color: #3C383B;
    line-height: 1.4;
}

.md2-values-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 24px 0 28px;
}

.md2-values-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15.5px;
    color: var(--md2-ink);
    font-weight: 600;
}

.md2-values-star {
    color: var(--md2-coral);
    font-weight: 800;
    flex-shrink: 0;
}

/* ==========================================================================
   SERVICIOS — DETAIL BLOCKS & WORK MODELS
   ========================================================================== */
.md2-anchor-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    margin-top: 24px;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.md2-anchor-bar::-webkit-scrollbar {
    display: none;
}

.md2-service-detail-list {
    display: grid;
    gap: 24px;
}

.md2-service-block {
    border-radius: var(--md2-radius-lg);
    padding: 34px;
    border: 1.5px solid var(--md2-border);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: start;
}

.md2-service-block--cream { background: var(--md2-cream); }
.md2-service-block--pink { background: var(--md2-pink-soft); }
.md2-service-block--yellow { background: var(--md2-yellow-soft); }
.md2-service-block--coral { background: #FFE5DC; }

.md2-service-box {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(31, 29, 30, 0.08);
    border-radius: 18px;
    padding: 22px;
}

.md2-service-box h4 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--md2-ink);
    margin-bottom: 10px;
}

.md2-service-box ul {
    margin-left: 18px;
    display: grid;
    gap: 8px;
    font-size: 14.5px;
    color: #363336;
}

/* ==========================================================================
   CTA BANNER (LIGHT EDITORIAL)
   ========================================================================== */
.md2-cta-banner {
    background: var(--md2-cream);
    border: 1.5px solid rgba(251, 103, 61, 0.3);
    border-radius: var(--md2-radius-lg);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.md2-cta-banner h2 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    color: var(--md2-ink);
    margin-bottom: 6px;
}

.md2-cta-banner p {
    font-size: 16px;
    color: var(--md2-muted);
    max-width: 560px;
}

/* ==========================================================================
   EVENTS TEASER BANNER (PORTFOLIO SECTION)
   ========================================================================== */
.md2-events-teaser {
    margin-top: 36px;
    background: var(--md2-cream);
    border: 1.5px solid rgba(31, 29, 30, 0.08);
    border-radius: var(--md2-radius-lg);
    padding: 30px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.md2-events-teaser-content h3 {
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 800;
    color: var(--md2-ink);
    margin: 6px 0 8px;
}

.md2-events-teaser-content p {
    font-size: 15.5px;
    color: #4A4649;
    max-width: 620px;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   CONTACTO PAGE — SAFE CLEARANCE & TURNSTILE PREVIEW NOTICE
   ========================================================================== */
.md2-turnstile-notice {
    font-size: 13px;
    line-height: 1.45;
    color: #7C2D12;
    background: #FFF7ED;
    border: 1px solid #FDBA74;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 600;
}

.md2-contact-page .contact-section {
    padding-top: 36px;
    padding-bottom: 108px;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON — "Hablemos" (ALL PAGES, SAFE AREAS, NO OVERLAP)
   ========================================================================== */
.md2-wa-float {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px 11px 14px;
    min-block-size: 48px;
    border-radius: 100px;
    background: var(--md2-white);
    color: var(--md2-ink);
    border: 1.5px solid rgba(31, 29, 30, 0.16);
    box-shadow: 0 12px 30px rgba(31, 29, 30, 0.14);
    font-family: 'Manrope', sans-serif;
    font-size: 14.5px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, bottom 0.25s ease;
}

.md2-wa-float-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #25D366;
    color: #FFFFFF;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

@media (hover: hover) {
    .md2-wa-float:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 36px rgba(31, 29, 30, 0.18);
        border-color: #25D366;
    }
}

/* Clear Cookie Consent Banner cleanly whenever it is open */
body.has-cookie-banner .md2-wa-float {
    bottom: calc(128px + env(safe-area-inset-bottom));
}

/* ==========================================================================
   MOTION — OPT-IN ONLY UNDER prefers-reduced-motion: no-preference
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    @keyframes md2-collage-float-1 {
        0%, 100% { transform: rotate(-4.5deg) translateY(0); }
        50% { transform: rotate(-4.5deg) translateY(-6px); }
    }
    @keyframes md2-collage-float-2 {
        0%, 100% { transform: rotate(1.5deg) translateY(0); }
        50% { transform: rotate(1.5deg) translateY(-5px); }
    }
    @keyframes md2-collage-float-3 {
        0%, 100% { transform: rotate(-2deg) translateY(0); }
        50% { transform: rotate(-2deg) translateY(-6px); }
    }
    .md2-collage-card--content { animation: md2-collage-float-1 7s ease-in-out infinite; }
    .md2-collage-card--web { animation: md2-collage-float-2 6.5s ease-in-out infinite; }
    .md2-collage-card--strategy { animation: md2-collage-float-3 7.5s ease-in-out infinite; }

    @media (hover: hover) {
        .md2-collage-card:hover {
            animation-play-state: paused;
            transform: rotate(0deg) translateY(-6px);
            z-index: 6;
            box-shadow: var(--md2-shadow-hover);
        }
        .md2-portrait-stack[data-team-mode="dual"] .md2-tilt-card--primary:hover {
            transform: rotate(0deg) translateY(-6px);
            z-index: 6;
            box-shadow: var(--md2-shadow-hover);
        }
        .md2-portrait-stack[data-team-mode="dual"] .md2-tilt-card--secondary:hover {
            transform: rotate(0deg) translateY(24px);
            z-index: 6;
            box-shadow: var(--md2-shadow-hover);
        }
        .md2-tilt-card--secondary:hover {
            transform: rotate(0deg) translateY(-6px);
            z-index: 6;
            box-shadow: var(--md2-shadow-hover);
        }
        .md2-tilt-card--tertiary:hover {
            transform: rotate(0deg) translateY(-6px);
            z-index: 6;
            box-shadow: var(--md2-shadow-hover);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   RESPONSIVE — TABLET & MOBILE
   ========================================================================== */
@media (max-width: 992px) {
    .md2-about-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "stack"
            "body";
        gap: 20px;
    }
    .md2-service-block {
        grid-template-columns: 1fr;
    }
    .md2-journey-grid {
        grid-template-columns: 1fr;
    }
    .md2-portrait-stack {
        min-height: auto;
        padding: 4px 0;
    }
    .md2-tilt-card--tertiary { display: none; }
}

@media (max-width: 768px) {
    .nav-logo-img--full {
        height: 40px;
        max-height: 42px;
    }
    .md2-section {
        padding: 52px 0;
    }
    .md2-hero {
        padding: 98px 0 64px;
    }
    .md2-hero h1 {
        font-size: 35px;
    }
    .md2-page-hero {
        padding: 106px 0 40px;
    }
    .md2-cat-grid,
    .md2-bento-compact,
    .md2-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .md2-cat-card,
    .md2-bento-tile {
        padding: 20px;
    }

    /* Nosotros — Dual Profile 2-column Compact Grid */
    .md2-portrait-stack[data-team-mode="dual"] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        min-height: auto;
        padding: 4px 0 10px;
        width: 100%;
        margin: 0;
    }
    .md2-portrait-stack[data-team-mode="dual"] .md2-tilt-card--primary,
    .md2-portrait-stack[data-team-mode="dual"] .md2-tilt-card--secondary {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 100%;
        transform: none !important;
        margin: 0 !important;
        padding: 10px 8px;
        border-radius: 16px;
        box-shadow: 0 4px 14px rgba(31, 29, 30, 0.06);
    }
    .md2-portrait-frame {
        border-radius: 12px;
        aspect-ratio: 3 / 4;
        margin-bottom: 8px;
    }
    .md2-tilt-caption {
        padding: 2px 2px 0;
    }
    .md2-tilt-caption strong {
        font-size: 13.5px;
        line-height: 1.25;
        margin-bottom: 2px;
    }
    .md2-tilt-caption span {
        font-size: 11px;
        line-height: 1.35;
        color: #4A4649;
    }
    .md2-portrait-placeholder-text {
        font-size: 12.5px;
    }

    /* Servicios — Compact Disclosure & Sleek Graphics */
    .md2-service-detail-list {
        gap: 16px;
    }
    .md2-service-block {
        padding: 18px 16px;
        border-radius: 20px;
        gap: 0;
    }
    .md2-service-block .md2-title {
        font-size: 20.5px;
        line-height: 1.25;
        margin-top: 6px;
        margin-bottom: 8px;
    }
    .md2-service-block .md2-lead {
        font-size: 14px;
        line-height: 1.45;
        margin-bottom: 14px;
    }
    .md2-svc-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .md2-svc-actions .btn {
        width: 100%;
        text-align: center;
        padding: 11px 20px;
        font-size: 14px;
    }
    .md2-svc-details-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: rgba(255, 255, 255, 0.82);
        border: 1.2px solid rgba(31, 29, 30, 0.14);
        border-radius: 100px;
        padding: 9px 14px 9px 16px;
        font-size: 13px;
        font-weight: 700;
        color: var(--md2-ink);
        cursor: pointer;
        min-height: 42px;
        -webkit-tap-highlight-color: transparent;
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }
    .md2-svc-details-toggle:focus-visible {
        outline: 2px solid var(--md2-coral);
        outline-offset: 2px;
    }
    .md2-svc-details-toggle .md2-svc-toggle-text--open {
        display: none;
    }
    .md2-service-block.is-open .md2-svc-details-toggle .md2-svc-toggle-text--closed {
        display: none;
    }
    .md2-service-block.is-open .md2-svc-details-toggle .md2-svc-toggle-text--open {
        display: inline;
    }
    .md2-service-block.is-open .md2-svc-details-toggle {
        background: var(--md2-white);
        border-color: rgba(31, 29, 30, 0.24);
    }
    .md2-service-block .md2-svc-collapse {
        margin-top: 0;
    }
    .md2-service-block.is-open .md2-svc-collapse {
        margin-top: 14px;
    }
    .md2-svc-points {
        margin: 6px 0 12px;
        gap: 8px;
    }
    .md2-svc-points li {
        font-size: 13px;
        line-height: 1.35;
        gap: 8px;
    }
    .md2-svc-visual {
        padding: 12px;
        border-radius: 14px;
        box-shadow: none;
    }
    .md2-svc-visual-top {
        margin-bottom: 8px;
    }
    .md2-svc-tag {
        font-size: 10px;
        padding: 3px 8px;
    }
    .md2-strategy-map {
        gap: 6px;
    }
    .md2-strategy-step {
        padding: 8px 10px;
        gap: 8px;
        border-radius: 10px;
    }
    .md2-strategy-step strong {
        font-size: 12px;
    }
    .md2-strategy-step span {
        font-size: 11px;
    }
    .md2-journey-num {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    .md2-content-grid-mock {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .md2-content-cell {
        aspect-ratio: 16 / 9;
        padding: 6px 4px;
        border-radius: 8px;
        font-size: 10px;
    }
    .md2-paid-flow {
        gap: 6px;
    }
    .md2-paid-row {
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 10px;
    }
    .md2-paid-pill {
        font-size: 10px;
        padding: 2px 6px;
    }
    .md2-web-preview-frame img {
        max-height: 115px;
        object-fit: cover;
        border-radius: 8px;
    }
    .md2-web-preview-caption {
        padding: 6px 2px 0;
        font-size: 11px;
    }
    .md2-cta-banner {
        padding: 26px 22px;
    }
    .md2-events-teaser {
        padding: 22px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-top: 24px;
    }
    .md2-events-teaser .btn {
        width: 100%;
        text-align: center;
    }
    .md2-collage {
        max-width: 330px;
        height: 315px;
        margin-top: 18px;
    }
    .md2-collage-halo {
        width: 265px;
        height: 265px;
    }
    .md2-collage-card--content {
        top: 2px;
        left: 0;
        width: 152px;
        padding: 8px;
    }
    .md2-carousel-cover { padding: 10px 9px 8px; }
    .md2-carousel-headline { font-size: 11px; margin-bottom: 6px; }
    .md2-carousel-handle { font-size: 9px; }
    .md2-carousel-count { font-size: 8.5px; padding: 1px 5px; }
    .md2-collage-meta { font-size: 9.5px; margin-top: 6px; }
    .md2-collage-card--web {
        top: 52px;
        right: 0;
        width: 205px;
        padding: 7px;
    }
    .md2-mini-browser img { height: 104px; }
    .md2-agency-canvas { padding: 10px 9px 9px; }
    .md2-agency-headline { font-size: 12.5px; margin-bottom: 7px; }
    .md2-agency-cta-row { margin-bottom: 8px; }
    .md2-agency-cta-mock { font-size: 8.5px; padding: 3px 8px; }
    .md2-agency-sub-mock { display: none; }
    .md2-agency-mini-pill { font-size: 8px; padding: 4px 2px; }
    .md2-collage-card--strategy {
        bottom: 6px;
        left: 10px;
        width: 240px;
        padding: 9px 10px;
    }
    .md2-flow-node {
        font-size: 9.5px;
        padding: 6px 4px;
    }

    .md2-wa-float {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        padding: 10px 15px 10px 12px;
        font-size: 13.5px;
    }
    body.has-cookie-banner .md2-wa-float {
        bottom: calc(188px + env(safe-area-inset-bottom));
    }
    .md2-contact-page .contact-section {
        padding-bottom: 124px;
    }
}

/* Servicios y Contacto: controles de navegación exclusivos de móvil.
   Mantenerlos ocultos en escritorio sin afectar la expansión en <= 768px. */
@media (min-width: 769px) {
    .mobile-disclosure-trigger.mobile-only,
    .mobile-wizard-back-btn {
        display: none !important;
    }
}

/* Contacto móvil: ocultar botón flotante de WhatsApp únicamente en /contacto
   para no competir con el formulario y mantener el foco en la solicitud */
@media (max-width: 768px) {
    body.md2-contact-page .md2-wa-float {
        display: none !important;
    }
}

/* Ajuste móvil ultra-compacto (320px, 375px, 390px) para evitar desbordamientos */
@media (max-width: 480px) {
    .md2-about-header h1 {
        font-size: clamp(24px, 7.2vw, 32px);
        line-height: 1.18;
        overflow-wrap: break-word;
    }

}

/* Nosotros: monograma editorial para Ximena Díaz hasta contar con su fotografía real.
   Mantener la presentación de ambas hermanas sin usar placeholders de desarrollo. */
.md2-portrait-monogram {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 16px;
    text-align: center;
    background: radial-gradient(circle at 75% 22%, #fff4d8 0, transparent 40%), linear-gradient(140deg, #f9ce67 0%, #f5e7ad 100%);
    color: var(--md2-ink);
}
.md2-portrait-monogram-mark {
    font-size: clamp(58px, 7vw, 96px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.09em;
    padding-right: 0.09em;
}
.md2-portrait-monogram-label {
    max-width: 100%;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.5;
    color: #5b4b25;
}
@media (max-width: 600px) {
    .md2-portrait-stack[data-team-mode="dual"] {
        grid-template-columns: minmax(0, 1fr);
        max-width: 330px;
        margin-inline: auto;
        gap: 16px;
        padding: 6px 12px 12px;
    }
    .md2-portrait-stack[data-team-mode="dual"] .md2-tilt-card--primary,
    .md2-portrait-stack[data-team-mode="dual"] .md2-tilt-card--secondary {
        width: 100%;
        max-width: 100%;
        transform: none !important;
        margin: 0;
    }
    .md2-portrait-stack[data-team-mode="dual"] .md2-tilt-caption strong {
        font-size: 16px;
    }
    .md2-portrait-stack[data-team-mode="dual"] .md2-tilt-caption span {
        font-size: 12.5px;
    }
}
