/* ==========================================================================
   LITCHNIE — Landing one page
   Design system based on brand DNA + colorimetry
   ========================================================================== */

:root {
    /* Brand */
    --yellow: #ffc107;
    --yellow-light: #ffce3a;
    --yellow-dark: #d39e00;
    --gray-900: #1f1f1f;
    --gray-850: #282828;
    --gray-800: #424242;
    --gray-500: #5b5b5b;
    --ink: #282828;
    --white: #ffffff;

    /* Semantic surfaces — architectural / editorial (light) */
    --bg-darker: #f7f7f5; /* off-white blocks */
    --bg-dark: #ffffff; /* primary surface */
    --bg-panel: #f2f2f0; /* subtle panels / cards */
    --bg-light: #ffffff;
    --bg-light-2: #f7f7f5;

    /* Dark surfaces reserved for footer / punctual CTA */
    --bg-footer: #282828;
    --bg-footer-2: #424242;

    /* Text — dark ink on light surfaces */
    --tx-on-dark: #282828; /* "on light section" headline ink */
    --tx-on-dark-dim: #5b5b5b;
    --tx-on-light: #282828;
    --tx-on-light-dim: #5b5b5b;

    /* Text on true dark surfaces (footer) */
    --tx-on-footer: #ededed;
    --tx-on-footer-dim: #a9a9a9;

    /* Hairlines — plan / editorial rules */
    --line-dark: rgba(0, 0, 0, 0.1); /* on light surfaces */
    --line-light: #e5e5e5;
    --line-soft: #ededeb;
    --line-footer: rgba(255, 255, 255, 0.12);

    /* Type */
    --font-head: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    --container: 1240px;
    --pad-x: clamp(20px, 5vw, 64px);
    --radius: 2px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

address {
    font-style: normal;
}

:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
    border-radius: 2px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad-x);
}

.mono {
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
}

.skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 2000;
    background: var(--yellow);
    color: var(--ink);
    padding: 10px 18px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: top 0.2s var(--ease);
}
.skip-link:focus {
    top: 16px;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 2px;
    background: transparent;
    z-index: 1500;
    pointer-events: none;
}
.scroll-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--yellow);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: padding 0.35s var(--ease), background 0.35s var(--ease),
        box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
    border-bottom: 1px solid transparent;
}
.navbar.is-scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--line-light);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav-logo-img {
    height: 30px;
    width: auto;
    transition: height 0.35s var(--ease);
}
.navbar.is-scrolled .nav-logo-img {
    height: 26px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 34px);
    position: relative;
}
.nav-link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-800);
    padding: 6px 2px;
    transition: color 0.25s var(--ease);
    letter-spacing: 0.01em;
}
.nav-link:hover {
    color: var(--ink);
}
.nav-link.is-active {
    color: var(--ink);
}
.nav-link--cta {
    color: var(--ink);
    background: var(--yellow);
    padding: 9px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background 0.25s var(--ease);
}
.nav-link--cta:hover {
    background: var(--yellow-dark);
    color: var(--ink);
}
.nav-indicator {
    position: absolute;
    bottom: -2px;
    height: 2px;
    background: var(--yellow);
    width: 0;
    left: 0;
    opacity: 0;
    transition: left 0.35s var(--ease), width 0.35s var(--ease),
        opacity 0.3s var(--ease);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    padding: 0 10px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 420px);
    background: var(--white);
    border-left: 1px solid var(--line-light);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease-out);
    display: flex;
    flex-direction: column;
    padding: 24px var(--pad-x);
    visibility: hidden;
}
.mobile-menu.is-open {
    transform: translateX(0);
    visibility: visible;
}
.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line-light);
}
.mobile-menu-logo {
    height: 26px;
    width: auto;
}
.mobile-close {
    width: 42px;
    height: 42px;
    position: relative;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
}
.mobile-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: var(--ink);
}
.mobile-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}
.mobile-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 14px 0;
    flex: 1;
    justify-content: center;
}
.mobile-link {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 7vw, 2rem);
    font-weight: 500;
    color: var(--ink);
    padding: 14px 0;
    border-bottom: 1px solid var(--line-light);
    opacity: 0;
    transform: translateX(20px);
    transition: color 0.25s var(--ease);
}
.mobile-menu.is-open .mobile-link {
    animation: slideInLink 0.5s var(--ease-out) forwards;
}
.mobile-menu.is-open .mobile-link:nth-child(1) { animation-delay: 0.08s; }
.mobile-menu.is-open .mobile-link:nth-child(2) { animation-delay: 0.13s; }
.mobile-menu.is-open .mobile-link:nth-child(3) { animation-delay: 0.18s; }
.mobile-menu.is-open .mobile-link:nth-child(4) { animation-delay: 0.23s; }
.mobile-menu.is-open .mobile-link:nth-child(5) { animation-delay: 0.28s; }
.mobile-menu.is-open .mobile-link:nth-child(6) { animation-delay: 0.33s; }
.mobile-menu.is-open .mobile-link:nth-child(7) { animation-delay: 0.38s; }
@keyframes slideInLink {
    to { opacity: 1; transform: translateX(0); }
}
.mobile-link:hover,
.mobile-link:focus-visible {
    color: var(--yellow);
}
.mobile-idx {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--yellow-dark);
}
.mobile-menu-foot {
    padding-top: 20px;
    border-top: 1px solid var(--line-light);
    color: var(--tx-on-dark-dim);
    font-size: 0.8rem;
}
.mobile-menu-foot .mono {
    font-size: 0.7rem;
    color: var(--yellow-dark);
    margin-bottom: 6px;
}
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(40, 40, 40, 0.28);
    backdrop-filter: blur(2px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease);
}
.mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   SHARED — grid bg, eyebrow, buttons, headings, section heads
   ========================================================================== */
.grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--line-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 10%, transparent 75%);
    pointer-events: none;
    opacity: 0.4;
}
.grid-bg--sparse {
    background-size: 110px 110px;
    opacity: 0.3;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: var(--gray-800);
    margin-bottom: 22px;
}
.eyebrow--center {
    justify-content: center;
}
.eyebrow-dot {
    width: 7px;
    height: 7px;
    background: var(--yellow);
    border-radius: 50%;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 26px;
    border-radius: var(--radius);
    position: relative;
    transition: background 0.25s var(--ease), color 0.25s var(--ease),
        border-color 0.25s var(--ease);
    border: 1px solid transparent;
}
.btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s var(--ease);
}
.btn:hover svg {
    transform: translateX(4px);
}
.btn--primary {
    background: var(--yellow);
    color: var(--ink);
}
.btn--primary:hover {
    background: var(--yellow-dark);
}
.btn--ghost {
    border-color: var(--gray-800);
    color: var(--ink);
    background: transparent;
}
.btn--ghost:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
}
.btn--lg {
    padding: 17px 34px;
    font-size: 1.02rem;
}
.btn--block {
    width: 100%;
    justify-content: center;
}

.h2 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(1.7rem, 3.6vw, 2.7rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.section {
    position: relative;
    padding: clamp(84px, 11vw, 160px) 0;
    overflow: hidden;
}
.section--dark {
    background: var(--white);
    color: var(--ink);
}
.section--darker {
    background: var(--bg-darker);
    color: var(--ink);
}
.section--light {
    background: var(--white);
    color: var(--ink);
}

.section-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: clamp(36px, 5vw, 60px);
}
.section-index {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    color: var(--yellow-dark);
    white-space: nowrap;
}
.section-rule {
    flex: 1;
    height: 1px;
    background: var(--line-light);
    opacity: 1;
}

/* Reveal animation base */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 140px 0 90px;
    background: var(--bg-darker);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    /* Very light scrim — lets the photograph and its colors stand out,
       with just enough darkening at the bottom-left to keep text legible. */
    background: linear-gradient(
            90deg,
            rgba(30, 28, 24, 0.5) 0%,
            rgba(30, 28, 24, 0.28) 38%,
            rgba(30, 28, 24, 0.08) 66%,
            rgba(30, 28, 24, 0) 100%
        ),
        linear-gradient(
            0deg,
            rgba(25, 23, 20, 0.42) 0%,
            rgba(25, 23, 20, 0.12) 36%,
            rgba(25, 23, 20, 0) 62%
        );
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-copy {
    max-width: 640px;
}
.hero .eyebrow {
    color: rgba(255, 255, 255, 0.9);
}
.hero-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 26px;
    color: #ffffff;
    text-shadow: 0 1px 24px rgba(0, 0, 0, 0.28);
}
.hero-title .accent {
    display: block;
    color: #ffffff;
    position: relative;
    width: fit-content;
    padding-bottom: 10px;
}
.hero-title .accent::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72px;
    height: 3px;
    background: var(--yellow);
}
.hero-lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    max-width: 48ch;
    margin-bottom: 34px;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.3);
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 46px;
}
.hero .btn--ghost {
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}
.hero .btn--ghost:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--ink);
}
.hero-meta {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: clamp(18px, 3vw, 40px);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    padding-top: 22px;
    max-width: 520px;
}
.hero-meta div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.hero-meta dt {
    font-size: 0.78rem;
    color: var(--yellow);
}
.hero-meta dd {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.02em;
}

.scroll-hint {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.8);
    z-index: 3;
}
.scroll-line {
    width: 1px;
    height: 44px;
    background: rgba(255, 255, 255, 0.35);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: var(--yellow);
    animation: scrollDrop 2.4s var(--ease) infinite;
}
@keyframes scrollDrop {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(260%); }
}

/* ==========================================================================
   ABOUT / LITCHNIE
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.about-lead .h2 {
    margin-bottom: 24px;
    max-width: 16ch;
}
.about-lead p {
    color: var(--tx-on-dark-dim);
    margin-bottom: 16px;
    max-width: 52ch;
}
.about-steps {
    display: flex;
    flex-direction: column;
}
.about-step {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid var(--line-light);
}
.about-step:last-child {
    border-bottom: 1px solid var(--line-light);
}
.about-step-num {
    font-size: 0.8rem;
    color: var(--yellow-dark);
    padding-top: 3px;
}
.about-step h3 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 4px;
}
.about-step p {
    color: var(--tx-on-dark-dim);
    font-size: 0.95rem;
    max-width: 44ch;
}
.about-step-line {
    position: absolute;
    left: 7px;
    top: 44px;
    bottom: -22px;
    width: 1px;
    background: var(--line-light);
}
.about-step::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 26px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line-light);
    transition: background 0.3s var(--ease);
}
.about-step.is-visible::before {
    background: var(--yellow);
}

/* ==========================================================================
   PROBLEMA → TRANSFORMACIÓN
   ========================================================================== */
.problem-title {
    max-width: 18ch;
    margin-bottom: 16px;
}
.problem-sub {
    color: var(--tx-on-dark-dim);
    max-width: 60ch;
    margin-bottom: clamp(36px, 5vw, 56px);
}
.problem-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}
.problem-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    margin-bottom: 22px;
    color: var(--gray-800);
}
.problem-label--accent {
    color: var(--yellow-dark);
}
.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--yellow);
}
.dot--muted {
    background: var(--gray-500);
}
.problem-list li {
    padding: 13px 0;
    border-bottom: 1px solid var(--line-light);
    color: var(--tx-on-dark-dim);
    position: relative;
    padding-left: 22px;
}
.problem-list li::before {
    content: "×";
    position: absolute;
    left: 0;
    color: var(--gray-500);
    font-weight: 700;
}
.problem-flow {
    background: var(--white);
    border: 1px solid var(--line-light);
    padding: clamp(24px, 3vw, 36px);
}
.flow-list {
    position: relative;
    padding-left: 30px;
}
.flow-track {
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--line-light);
}
.flow-fill {
    position: absolute;
    inset: 0 0 auto 0;
    width: 100%;
    height: 0%;
    background: var(--yellow);
    transition: height 0.2s linear;
}
.flow-step {
    position: relative;
    padding: 13px 0;
    font-family: var(--font-head);
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    color: var(--tx-on-dark-dim);
    transition: color 0.3s var(--ease);
}
.flow-node {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--white);
    border: 2px solid var(--line-light);
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
    z-index: 2;
}
.flow-step.is-active {
    color: var(--ink);
}
.flow-step.is-active .flow-node {
    border-color: var(--yellow);
    background: var(--yellow);
}
.flow-step--end.is-active {
    color: var(--yellow-dark);
    font-weight: 700;
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services-head {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: end;
    margin-bottom: clamp(36px, 4vw, 56px);
}
.services-head .h2 {
    max-width: 16ch;
}
.services-head p {
    color: var(--tx-on-light-dim);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 1fr;
    column-gap: 40px;
    row-gap: 24px;
}
.service-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: none;
    border-top: 1px solid var(--ink);
    border-radius: 0;
    padding: 28px 0 32px;
    position: relative;
    overflow: hidden;
    transition: none;
}
/* Asymmetric editorial grid: rows mirror as 5-4-3 / 3-4-5 */
.services-grid > :nth-child(1) { grid-column: span 5; }
.services-grid > :nth-child(2) { grid-column: span 4; }
.services-grid > :nth-child(3) { grid-column: span 3; }
.services-grid > :nth-child(4) { grid-column: span 3; }
.services-grid > :nth-child(5) { grid-column: span 4; }
.services-grid > :nth-child(6) { grid-column: span 5; }
/* editorial rule that grows on hover */
.service-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: width 0.45s var(--ease);
}
.service-card:hover::before,
.service-card:focus-visible::before {
    width: 100%;
}
.service-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.service-num {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    transition: color 0.3s var(--ease);
}
.service-card:hover .service-num {
    color: var(--yellow-dark);
}
.service-graphic {
    width: 96px;
    height: 64px;
    flex-shrink: 0;
    transition: transform 0.4s var(--ease);
    transform-origin: center;
}
.service-card:hover .service-graphic {
    transform: scale(1.03);
}
.service-graphic svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.service-graphic svg [stroke],
.service-graphic svg line,
.service-graphic svg rect,
.service-graphic svg circle,
.service-graphic svg path {
    fill: none;
    stroke: var(--gray-500);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.35s var(--ease);
    transform-box: fill-box;
    transform-origin: center;
}
.service-card:hover .service-graphic svg line,
.service-card:hover .service-graphic svg rect,
.service-card:hover .service-graphic svg circle,
.service-card:hover .service-graphic svg path {
    stroke: var(--gray-800);
}
/* per-graphic accents */
.g-radar .hit { fill: var(--yellow); stroke: var(--yellow); }
.g-nodes .hub { fill: var(--yellow); stroke: var(--yellow); }
.g-map .pin { fill: var(--yellow); stroke: var(--yellow); }

.service-name {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.22;
    margin-bottom: 12px;
    color: var(--ink);
}
.service-desc {
    color: var(--tx-on-light-dim);
    font-size: 0.93rem;
    margin-bottom: 20px;
    flex: 1;
}
.service-go {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-go svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s var(--ease), transform 0.3s var(--ease);
}
.service-card:hover .service-go {
    background: var(--yellow);
    border-color: var(--yellow);
}
.service-card:hover .service-go svg {
    stroke: var(--ink);
    transform: translateX(3px);
}

/* ==========================================================================
   METODOLOGÍA
   ========================================================================== */
.method {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 40px;
}
.method-step {
    position: relative;
    display: grid;
    grid-template-columns: 90px minmax(180px, 320px) 1fr;
    gap: clamp(16px, 4vw, 56px);
    align-items: baseline;
    padding: 28px 0;
    border-top: 1px solid var(--line-light);
}
.method-step:last-child {
    border-bottom: 1px solid var(--line-light);
}
.method-step::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: width 0.45s var(--ease);
}
.method-step:hover::before {
    width: 100%;
}
.method-num {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--yellow-dark);
}
.method-step h3 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    letter-spacing: -0.01em;
    color: var(--ink);
    transition: color 0.3s var(--ease);
}
.method-step p {
    color: var(--tx-on-dark-dim);
    font-size: 0.95rem;
    max-width: 52ch;
}

/* ==========================================================================
   VALOR
   ========================================================================== */
.value-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}
.value-intro .h2 {
    margin-bottom: 20px;
    max-width: 14ch;
}
.value-intro p {
    color: var(--tx-on-dark-dim);
    max-width: 46ch;
    margin-bottom: 34px;
}
.value-territory {
    border: 1px solid var(--line-light);
    padding: 22px;
    background: var(--white);
}
.value-territory-tag {
    font-size: 0.62rem;
    color: var(--gray-500);
    letter-spacing: 0.14em;
    margin-bottom: 14px;
}
.territory-map {
    width: 100%;
    height: auto;
    overflow: visible;
}
.tm-grid line {
    stroke: var(--line-light);
    stroke-width: 1;
}
.tm-route {
    fill: none;
    stroke: var(--yellow-dark);
    stroke-width: 1.5;
    stroke-dasharray: 5 4;
}
.tm-pin circle {
    fill: var(--yellow);
    stroke: var(--white);
    stroke-width: 2;
}
.tm-label {
    font-family: var(--font-mono);
    font-size: 11px;
    fill: var(--gray-500);
    text-anchor: middle;
}

.value-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line-light);
    border: 1px solid var(--line-light);
    overflow: hidden;
}
.value-item {
    display: flex;
    gap: 14px;
    padding: 24px;
    background: var(--white);
    transition: background 0.3s var(--ease);
}
.value-item:hover {
    background: var(--bg-darker);
}
.value-mark {
    color: var(--yellow-dark);
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 700;
}
.value-item h3 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.02rem;
    margin-bottom: 5px;
    color: var(--ink);
}
.value-item p {
    color: var(--tx-on-dark-dim);
    font-size: 0.86rem;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-final {
    position: relative;
    background: var(--bg-darker);
    padding: clamp(80px, 11vw, 150px) 0;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
}
.cta-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
}
.cta-rule {
    display: block;
    width: 72px;
    height: 3px;
    background: var(--yellow);
    margin: 0 auto 28px;
}
.cta-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.9rem, 4.6vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 36px;
    color: var(--ink);
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}
.contact-intro .h2 {
    margin-bottom: 18px;
    max-width: 14ch;
}
.contact-intro p {
    color: var(--tx-on-dark-dim);
    max-width: 42ch;
    margin-bottom: 30px;
}
.contact-detail {
    border-top: 1px solid var(--line-light);
    padding-top: 20px;
    margin-bottom: 24px;
}
.contact-detail-label {
    font-size: 0.68rem;
    color: var(--yellow-dark);
    letter-spacing: 0.14em;
    margin-bottom: 8px;
}
.contact-detail address {
    color: var(--tx-on-dark-dim);
    line-height: 1.7;
}
.contact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.contact-chips li {
    font-size: 0.66rem;
    color: var(--gray-800);
    border: 1px solid var(--line-light);
    padding: 6px 12px;
    border-radius: var(--radius);
    letter-spacing: 0.12em;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    background: var(--white);
    border: 1px solid var(--line-light);
    padding: clamp(22px, 3vw, 36px);
}
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.field--full {
    grid-column: 1 / -1;
}
.field label {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--gray-800);
    font-family: var(--font-mono);
}
.field input,
.field select,
.field textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    padding: 12px 14px;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
    width: 100%;
}
.field textarea {
    resize: vertical;
    min-height: 110px;
}
.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23424242' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.field select option {
    background: var(--white);
    color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--yellow);
    background: #fffdf5;
}
.field input::placeholder,
.field textarea::placeholder {
    color: var(--gray-500);
}
.form-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--yellow-dark);
    min-height: 1.2em;
}
.field input:user-invalid,
.field textarea:user-invalid,
.field select:user-invalid {
    border-color: #c0603a;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    position: relative;
    background: var(--bg-footer);
    color: var(--tx-on-footer);
    padding: clamp(56px, 7vw, 90px) 0 30px;
    overflow: hidden;
    border-top: 1px solid var(--bg-footer);
}
.footer-symbol {
    position: absolute;
    right: -3%;
    bottom: -18%;
    width: clamp(240px, 40vw, 520px);
    opacity: 0.06;
    pointer-events: none;
    filter: brightness(0) invert(1);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 2;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line-footer);
}
.footer-logo {
    height: 34px;
    width: auto;
    margin-bottom: 18px;
}
.footer-slogan {
    color: var(--tx-on-footer-dim);
    max-width: 30ch;
    font-size: 0.95rem;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-self: end;
    align-items: flex-start;
}
.footer-nav-title {
    font-size: 0.66rem;
    color: var(--yellow);
    letter-spacing: 0.14em;
    margin-bottom: 6px;
}
.footer-nav a {
    color: var(--tx-on-footer-dim);
    font-size: 0.92rem;
    width: fit-content;
    position: relative;
    transition: color 0.25s var(--ease);
}
.footer-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--yellow);
    transition: width 0.3s var(--ease);
}
.footer-nav a:hover {
    color: var(--white);
}
.footer-nav a:hover::after {
    width: 100%;
}
.footer-info address {
    color: var(--tx-on-footer-dim);
    line-height: 1.8;
    font-size: 0.92rem;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 26px;
    position: relative;
    z-index: 2;
}
.footer-bottom p {
    font-size: 0.68rem;
    color: var(--tx-on-footer-dim);
    letter-spacing: 0.1em;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .about-grid,
    .problem-grid,
    .value-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .services-head {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    /* Services -> 2 columns, all equal */
    .services-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 28px;
    }
    .services-grid > * {
        grid-column: auto !important;
    }
    /* Methodology -> stacked rows */
    .method-step {
        grid-template-columns: 64px 1fr;
        grid-template-areas:
            "num title"
            "num desc";
        column-gap: 20px;
        row-gap: 6px;
        padding: 24px 0;
    }
    .method-num {
        grid-area: num;
    }
    .method-step h3 {
        grid-area: title;
    }
    .method-step p {
        grid-area: desc;
    }
}

@media (max-width: 680px) {
    .hero {
        padding-top: 110px;
    }
    .hero-bg-img {
        object-position: 65% center;
    }
    .hero-overlay {
        /* Even, mostly-transparent scrim so colors stay vivid while text reads */
        background: linear-gradient(
            180deg,
            rgba(25, 23, 20, 0.34) 0%,
            rgba(25, 23, 20, 0.32) 48%,
            rgba(25, 23, 20, 0.5) 100%
        );
    }
    .hero-meta {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .hero-cta .btn {
        flex: 1;
        justify-content: center;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .value-list {
        grid-template-columns: 1fr;
    }
    .contact-form {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .scroll-hint {
        display: none;
    }
}

@media (max-width: 420px) {
    :root {
        --pad-x: 18px;
    }
    .nav-link--cta {
        padding: 8px 16px;
    }
    .btn {
        padding: 13px 20px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .scroll-line::after {
        display: none;
    }
}
