/* ==========================================================================
   Kodevins — Kevin Sanchez
   Identidad: carbón + blanco hueso + verde salvia (tarjeta y logo 2026)
   ========================================================================== */

:root {
    --ink: #111311;
    --ink-2: #171a17;
    --ink-3: #1f231e;
    --line-dark: rgba(242, 243, 238, .10);
    --text-on-dark: #f2f3ee;
    --muted-on-dark: #a9b0a6;

    --paper: #f3f4ef;
    --paper-2: #e7e9e1;
    --line-light: #d9dcd2;
    --text-on-light: #151815;
    --muted-on-light: #4c5449;

    --green: #5e8c5a;
    --green-bright: #8dbf7a;
    --green-deep: #3a6637;
    --whatsapp: #25d366;

    --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

    --radius: 18px;
    --radius-sm: 10px;
    --container: 1160px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 72px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 8px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text-on-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
    outline: 3px solid var(--green-bright);
    outline-offset: 3px;
    border-radius: 6px;
}

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

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 16px; top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--green-bright);
    color: var(--ink);
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    vertical-align: -.2em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--green-bright);
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}
.section--light .eyebrow { color: var(--green-deep); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .88rem; }
.btn--block { width: 100%; }

.btn--primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(94, 140, 90, .8);
}
.btn--primary:hover { background: #6b9b66; }

.btn--ghost {
    background: transparent;
    border-color: rgba(242, 243, 238, .28);
    color: #f2f3ee;
}
.btn--ghost:hover { border-color: var(--green-bright); color: var(--green-bright); }

.btn--dark { background: var(--ink); color: var(--text-on-dark); }
.btn--dark:hover { background: var(--green-deep); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
    background: rgba(17, 19, 17, .86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line-dark);
}
.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand img { width: 40px; height: 40px; }
.brand__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .32em;
    text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; }
.site-nav ul a {
    position: relative;
    font-size: .93rem;
    font-weight: 500;
    color: var(--muted-on-dark);
    text-decoration: none;
    padding: 6px 0;
    transition: color .2s;
}
.site-nav ul a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--green-bright);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
}
.site-nav ul a:hover,
.site-nav ul a.is-active { color: var(--text-on-dark); }
.site-nav ul a.is-active::after,
.site-nav ul a:hover::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid var(--line-dark);
    border-radius: 12px;
    cursor: pointer;
}
.nav-toggle .ic { width: 22px; height: 22px; }
.nav-toggle .ic--close { display: none; }
.nav-toggle[aria-expanded="true"] .ic--open { display: none; }
.nav-toggle[aria-expanded="true"] .ic--close { display: block; }

@media (max-width: 991px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed;
        top: var(--header-h); left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px var(--gutter) 28px;
        background: var(--ink-2);
        border-bottom: 1px solid var(--line-dark);
        box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
    }
    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity .2s, transform .2s var(--ease);
    }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav ul a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-dark); }
    .site-nav ul a::after { display: none; }
    .site-header:has(.site-nav.is-open) { background: var(--ink-2); }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-h) + clamp(28px, 5vw, 64px)) 0 40px;
    background:
        radial-gradient(60% 60% at 85% 30%, rgba(94, 140, 90, .18), transparent 70%),
        var(--ink);
}
.hero__swoosh {
    position: absolute;
    left: -6%;
    bottom: -12%;
    width: min(680px, 90vw);
    height: auto;
    pointer-events: none;
}
.hero__swoosh path {
    fill: none;
    stroke: var(--green);
    stroke-width: 2;
    opacity: .45;
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: clamp(32px, 6vw, 72px);
}

.hero__title {
    margin-top: 18px;
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -.02em;
    max-width: 19ch;
}
.hero__role {
    display: block;
    margin-bottom: 14px;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0;
    color: var(--muted-on-dark);
}
.hero__title em {
    font-style: normal;
    color: var(--green-bright);
}
.hero__lead {
    margin-top: 22px;
    max-width: 56ch;
    font-size: 1.08rem;
    color: var(--muted-on-dark);
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.social { display: flex; gap: 10px; margin-top: 32px; }
.social a {
    display: inline-flex;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    color: var(--muted-on-dark);
    transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.social a:hover { color: var(--green-bright); border-color: var(--green-bright); transform: translateY(-2px); }
.social .ic { width: 18px; height: 18px; }

.hero__visual {
    position: relative;
    justify-self: center;
    width: min(100%, 440px);
}
.portrait {
    position: relative;
    aspect-ratio: 1;
    padding: 6%;
}
.portrait__img {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    background: var(--ink-3);
}
.portrait__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.portrait__ring circle { fill: none; stroke: rgba(242, 243, 238, .14); stroke-width: 1; }
.portrait__ring path {
    fill: none;
    stroke: var(--green);
    stroke-width: 4;
    stroke-linecap: round;
}

.stat {
    position: absolute;
    display: flex;
    flex-direction: column;
    padding: 12px 18px;
    background: rgba(23, 26, 23, .9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line-dark);
    border-radius: 14px;
    font-size: .82rem;
    line-height: 1.35;
    color: var(--muted-on-dark);
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8);
}
.stat strong {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-on-dark);
}
.stat--a { left: -4%; bottom: 14%; }
.stat--b { right: -6%; top: 10%; }

.sectors {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    margin-top: clamp(48px, 7vw, 80px);
    padding-top: 28px;
    border-top: 1px solid var(--line-dark);
}
.sectors__label {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted-on-dark);
}
.sectors__list { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.sectors__list li {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .98rem;
    color: var(--text-on-dark);
}
.sectors__list li + li::before {
    content: "·";
    margin-right: 22px;
    color: var(--green);
}

@media (max-width: 991px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { order: -1; width: min(78vw, 360px); }
    .hero__title { max-width: none; }
    .stat--a { left: -6%; }
    .stat--b { right: -8%; }
}
@media (max-width: 575px) {
    .hero__visual { width: min(66vw, 280px); }
    .hero__actions .btn { flex: 1 1 100%; }
    .stat { padding: 8px 12px; font-size: .74rem; }
    .stat strong { font-size: 1.02rem; }
    .stat--a { left: -4%; bottom: 6%; }
    .stat--b { right: -4%; top: 4%; }
    .sectors__list li + li::before { margin-right: 12px; }
    .sectors__list { gap: 6px 12px; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--dark + .section--dark { border-top: 1px solid var(--line-dark); }
.section--light { background: var(--paper); color: var(--text-on-light); }

.section-head {
    max-width: 720px;
    margin: 0 auto clamp(40px, 6vw, 64px);
    text-align: center;
}
.section-head h2 {
    margin-top: 14px;
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    font-weight: 800;
}
.section-head p:not(.eyebrow) {
    margin-top: 16px;
    font-size: 1.05rem;
    color: var(--muted-on-dark);
}
.section--light .section-head p:not(.eyebrow) { color: var(--muted-on-light); }
.section-head a { color: var(--green-deep); font-weight: 600; }
.section-head--left { text-align: left; margin-inline: 0; }

/* ---------- Servicios ---------- */
.services {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}
.service {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 30px 28px;
    background: #fff;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.service:hover {
    transform: translateY(-4px);
    border-color: rgba(94, 140, 90, .5);
    box-shadow: 0 24px 48px -28px rgba(21, 24, 21, .35);
}
.service--wide {
    grid-column: span 2;
    background: var(--ink);
    color: var(--text-on-dark);
    border-color: var(--ink);
}
.service__icon {
    display: inline-flex;
    width: 52px; height: 52px;
    align-items: center; justify-content: center;
    border-radius: 14px;
    background: rgba(94, 140, 90, .14);
    color: var(--green-deep);
}
.service__icon .ic { width: 24px; height: 24px; }
.service--wide .service__icon { background: rgba(141, 191, 122, .16); color: var(--green-bright); }
.service h3 { font-size: 1.22rem; font-weight: 700; margin-top: 6px; }
.service p { color: var(--muted-on-light); font-size: .97rem; }
.service--wide p { color: var(--muted-on-dark); }
.service .service__problem { color: var(--text-on-light); font-weight: 500; }
.service--wide .service__problem { color: var(--text-on-dark); }
.service__examples {
    margin-top: auto !important;
    padding-top: 14px;
    border-top: 1px dashed var(--line-light);
    font-size: .88rem !important;
}
.service--wide .service__examples { border-color: var(--line-dark); }
.service__examples span { font-weight: 600; color: var(--green-deep); }
.service--wide .service__examples span { color: var(--green-bright); }

/* 5 tarjetas: 3 arriba, 2 abajo más anchas */
.service:nth-child(4),
.service:nth-child(5) { grid-column: span 3; }

.inline-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 32px;
    margin-top: 40px;
    padding: 26px 30px;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    background: var(--paper-2);
}
.inline-cta p { font-size: 1.05rem; color: var(--muted-on-light); }
.inline-cta strong { color: var(--text-on-light); }

@media (max-width: 991px) {
    .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service,
    .service--wide,
    .service:nth-child(4) { grid-column: span 1; }
    .service:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 640px) {
    .services { grid-template-columns: 1fr; }
    .service:nth-child(5) { grid-column: span 1; }
    .service { padding: 26px 22px; }
    .inline-cta { padding: 22px; }
    .inline-cta .btn { width: 100%; }
}

/* ---------- Proyectos ---------- */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}
.filter {
    min-height: 42px;
    padding: 8px 18px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: transparent;
    color: var(--muted-on-dark);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { color: var(--text-on-dark); border-color: rgba(242, 243, 238, .3); }
.filter.is-active { background: var(--text-on-dark); color: var(--ink); border-color: var(--text-on-dark); }

.projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.project {
    display: flex;
    flex-direction: column;
    background: var(--ink-2);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s var(--ease), border-color .3s;
}
.project:hover { transform: translateY(-4px); border-color: rgba(141, 191, 122, .4); }
.project[hidden] { display: none; }

.project__media {
    position: relative;
    display: block;
    aspect-ratio: 20 / 9;
    overflow: hidden;
    background: var(--ink-3);
}
.project__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .5s var(--ease);
}
.project:hover .project__media img { transform: scale(1.04); }
.project__zoom {
    position: absolute;
    right: 12px; bottom: 12px;
    display: inline-flex;
    width: 38px; height: 38px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(17, 19, 17, .78);
    color: #fff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s, transform .25s var(--ease);
}
.project__media:hover .project__zoom,
.project__media:focus-visible .project__zoom { opacity: 1; transform: none; }

.project__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 22px 22px 24px;
}
.project__type {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green-bright);
}
.project h3 { font-size: 1.15rem; font-weight: 700; }
.project__body > p:not(.project__type):not(.project__private) {
    font-size: .94rem;
    color: var(--muted-on-dark);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tags li {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(242, 243, 238, .06);
    border: 1px solid var(--line-dark);
    font-size: .76rem;
    font-weight: 500;
    color: var(--text-on-dark);
}
.project__link,
.project__private {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    font-size: .9rem;
    font-weight: 600;
}
.project__link { color: var(--green-bright); text-decoration: none; align-self: flex-start; }
.project__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.project__private { color: var(--muted-on-dark); }


@media (max-width: 991px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .projects { grid-template-columns: 1fr; }
    .filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
    .filters::-webkit-scrollbar { display: none; }
    .filter { flex: none; }
    .project__zoom { opacity: 1; transform: none; }
}

/* ---------- Sobre mí ---------- */
.about {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(36px, 6vw, 80px);
    align-items: center;
}
.about__photo {
    position: relative;
    margin: 0;
}
.about__photo::before {
    content: "";
    position: absolute;
    inset: 24px -18px -18px 24px;
    border: 2px solid var(--green);
    border-radius: 28px;
}
.about__photo img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 28px;
}
.about__copy h2 {
    margin-top: 14px;
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 800;
}
.about__copy > p:not(.eyebrow) {
    margin-top: 18px;
    color: var(--muted-on-light);
    font-size: 1.03rem;
}
.about__subtitle {
    margin-top: 32px;
    font-size: 1.1rem;
    font-weight: 700;
}
.checklist { display: grid; gap: 14px; margin-top: 16px; }
.checklist li { display: flex; gap: 12px; color: var(--muted-on-light); }
.checklist strong { color: var(--text-on-light); }
.checklist .ic {
    width: 26px; height: 26px;
    padding: 5px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    margin-top: 1px;
}
.contact-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 40px;
    margin: 32px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--line-light);
}
.contact-mini dt { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-on-light); }
.contact-mini dd { margin: 4px 0 0; font-weight: 600; }
.contact-mini a { text-decoration: none; }
.contact-mini a:hover { color: var(--green-deep); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 991px) {
    .about { grid-template-columns: 1fr; }
    .about__photo { max-width: 420px; margin-inline: auto 18px; width: calc(100% - 18px); }
}

/* ---------- Habilidades ---------- */
.skills {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
}
.skills .section-head { margin-bottom: 0; }
.skills__groups { display: grid; gap: 0; }
.skill-group {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-dark);
}
.skill-group:first-child { border-top: 1px solid var(--line-dark); }
.skill-group h3 {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-on-dark);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
    padding: 7px 14px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: var(--ink-2);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .9rem;
    transition: border-color .2s, color .2s;
}
.chips li:hover { border-color: var(--green-bright); color: var(--green-bright); }

@media (max-width: 991px) { .skills { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .skill-group { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Proceso ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    counter-reset: step;
}
.step {
    position: relative;
    padding: 28px 24px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: var(--ink-2);
}
.step__num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--green-bright);
}
.step h3 { margin-top: 18px; font-size: 1.08rem; font-weight: 700; }
.step p { margin-top: 10px; font-size: .94rem; color: var(--muted-on-dark); }

@media (max-width: 991px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
}
.faq .section-head { margin-bottom: 0; }
.faq__list details {
    border-bottom: 1px solid var(--line-light);
}
.faq__list details:first-child { border-top: 1px solid var(--line-light); }
.faq__list summary {
    position: relative;
    padding: 22px 44px 22px 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.04rem;
    cursor: pointer;
    list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
    content: "";
    position: absolute;
    right: 6px; top: 50%;
    width: 12px; height: 12px;
    margin-top: -8px;
    border-right: 2px solid var(--green-deep);
    border-bottom: 2px solid var(--green-deep);
    transform: rotate(45deg);
    transition: transform .25s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__list summary:hover { color: var(--green-deep); }
.faq__list details p {
    padding: 0 40px 24px 0;
    color: var(--muted-on-light);
}

@media (max-width: 991px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact {
    background:
        radial-gradient(50% 70% at 0% 100%, rgba(94, 140, 90, .22), transparent 70%),
        var(--ink);
}
.contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(36px, 6vw, 80px);
    align-items: start;
}
.contact__copy h2 {
    margin-top: 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}
.contact__copy > p:not(.eyebrow) {
    margin-top: 18px;
    font-size: 1.05rem;
    color: var(--muted-on-dark);
    max-width: 46ch;
}
.channels { display: grid; gap: 12px; margin-top: 32px; }
.channels a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid var(--line-dark);
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: border-color .2s, background-color .2s;
}
.channels a:hover { border-color: var(--green-bright); background: rgba(141, 191, 122, .06); }
.channels small {
    display: block;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-on-dark);
}
.channels__icon {
    display: inline-flex;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(141, 191, 122, .14);
    color: var(--green-bright);
}

.brief {
    padding: clamp(24px, 4vw, 36px);
    background: var(--paper);
    color: var(--text-on-light);
    border-radius: 24px;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.brief__title { font-size: 1.35rem; font-weight: 800; margin-bottom: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .88rem; font-weight: 600; }
.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1.5px solid var(--line-light);
    border-radius: 12px;
    background: #fff;
    color: var(--text-on-light);
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(94, 140, 90, .2);
}
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__error { min-height: 1.4em; margin-bottom: 8px; font-size: .88rem; color: #b3261e; font-weight: 500; }
.brief__note { margin-top: 12px; font-size: .82rem; color: var(--muted-on-light); text-align: center; }

@media (max-width: 991px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
    padding: 48px 0 calc(40px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-dark);
    background: var(--ink);
}
.site-footer__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px 40px;
}
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__brand p { display: flex; flex-direction: column; line-height: 1.3; }
.site-footer__brand strong { font-family: var(--font-display); letter-spacing: .3em; text-transform: uppercase; font-size: .9rem; }
.site-footer__brand span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--green-bright); }
.site-footer nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.site-footer nav a { color: var(--muted-on-dark); text-decoration: none; font-size: .92rem; }
.site-footer nav a:hover { color: var(--text-on-dark); }
.social--small { margin-top: 0; }
.social--small a { width: 40px; height: 40px; }
.site-footer__copy {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid var(--line-dark);
    font-size: .85rem;
    color: var(--muted-on-dark);
}

@media (max-width: 767px) {
    .site-footer__inner { grid-template-columns: 1fr; justify-items: start; }
    .site-footer nav ul { justify-content: flex-start; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 90;
    display: inline-flex;
    width: 56px; height: 56px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .5);
    transition: transform .2s var(--ease), opacity .3s;
}
.wa-float .ic { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); }
.js .wa-float { opacity: 0; pointer-events: none; }
.js .wa-float.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Lightbox ---------- */
.lightbox {
    width: min(1200px, 94vw);
    max-width: none;
    max-height: 92vh;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-on-dark);
    overflow: visible;
}
.lightbox::backdrop { background: rgba(8, 9, 8, .9); }
.lightbox figure { margin: 0; }
.lightbox img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    background: var(--ink-2);
}
.lightbox figcaption { margin-top: 12px; text-align: center; font-weight: 600; }
.lightbox__close,
.lightbox__nav {
    position: absolute;
    display: inline-flex;
    width: 46px; height: 46px;
    align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(17, 19, 17, .85);
    color: #fff;
    cursor: pointer;
}
.lightbox__close { top: -56px; right: 0; }
.lightbox__nav { top: calc(50% - 40px); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--prev .ic { transform: rotate(180deg); }
.lightbox__nav--next { right: 12px; }
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--green); }

/* ---------- Animaciones de entrada (solo con JS y sin preferencia de movimiento reducido) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity .6s var(--ease), transform .6s var(--ease);
    }
    .js .reveal.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
