/* =========================================================================
   global.css — Variables · reset · tipografía · container · utilidades
   Extraído tal cual de home.html para mantener pixel-fidelidad.
   ========================================================================= */

:root {
    --color-primary:       #0F6E56;
    --color-primary-light: #1D9E75;
    --color-primary-soft:  #E1F5EE;
    --color-text:          #2C2C2A;
    --color-text-soft:     #5F5E5A;
    --color-bg:            #FAFAF8;
    --color-card:          #FFFFFF;
    --color-border:        #E5E3DB;
    --color-whatsapp:      #25D366;
    --color-danger:        #C0392B;
    --font-heading:        'Sora', 'DM Sans', system-ui, sans-serif;
    --font-body:           'Inter', system-ui, sans-serif;
    --fs-base:             16px;
    --fs-h1-mobile:        32px;
    --fs-h1-desktop:       48px;
    --fs-h2-mobile:        24px;
    --fs-h2-desktop:       36px;
    --space-1:             8px;
    --space-2:             16px;
    --space-3:             24px;
    --space-4:             32px;
    --space-5:             48px;
    --space-6:             64px;
    --space-7:             96px;
    --radius-sm:           8px;
    --radius-md:           12px;
    --radius-lg:           20px;
    --radius-full:         999px;
    --shadow-sm:           0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:           0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg:           0 8px 24px rgba(0,0,0,0.12);
    --tap-min:             48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
}
h1 {
    font-size: var(--fs-h1-mobile);
    font-weight: 800;
    letter-spacing: -0.02em;
}
h2 { font-size: var(--fs-h2-mobile); }
h3 { font-size: 18px; }

p { margin: 0; }
a { color: var(--color-primary); text-decoration: none; }
img { max-width: 100%; display: block; }
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-2);
}

/* Accesibilidad: skip link */
.skip-link {
    position: absolute; top: -100px; left: 0;
    background: var(--color-primary); color: #fff;
    padding: 12px 18px;
    z-index: 1000;
    border-radius: 0 0 var(--radius-md) 0;
    font-weight: 700;
}
.skip-link:focus { top: 0; color: #fff; }

:focus-visible {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Sections base */
section { padding: var(--space-6) 0; }
@media (min-width: 768px) {
    section { padding: var(--space-7) 0; }
}

.section-head {
    margin-bottom: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.section-eyebrow {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.section-head h2 { text-wrap: balance; }
.section-head p {
    color: var(--color-text-soft);
    font-size: 16px;
    max-width: 60ch;
}

/* Breadcrumbs */
.rm-breadcrumbs {
    padding: var(--space-2) 0;
    font-size: 13px;
    color: var(--color-text-soft);
}
.rm-breadcrumbs ol {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.rm-breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.rm-breadcrumbs li + li::before { content: "›"; color: var(--color-border); }
.rm-breadcrumbs a { color: var(--color-text-soft); }
.rm-breadcrumbs a:hover { color: var(--color-primary); }
.rm-breadcrumbs [aria-current="page"] { color: var(--color-text); font-weight: 600; }

@media (min-width: 768px) {
    h1 { font-size: var(--fs-h1-desktop); }
    h2 { font-size: var(--fs-h2-desktop); }
}

/* Reveal */
.reveal {
    opacity: 0;
    will-change: transform, opacity, filter;
    transition: opacity .7s cubic-bezier(.2,.6,.2,1),
                transform .7s cubic-bezier(.2,.6,.2,1),
                filter .7s ease;
}
.reveal.r-up { transform: translateY(28px); }
.reveal.r-down { transform: translateY(-22px); }
.reveal.r-left { transform: translateX(-28px); }
.reveal.r-right { transform: translateX(28px); }
.reveal.r-scale { transform: scale(.92); }
.reveal.r-blur { filter: blur(8px); transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px);
    height: 1px; width: 1px;
    overflow: hidden; position: absolute !important;
    white-space: nowrap;
}
