/*
Theme Name: Innubetec
Description: Tema editorial personalizado de Innubetec.
Version: 0.6.1
Text Domain: innubetec
Requires PHP: 8.0
*/

@font-face {
    font-family: Manrope;
    src: url("assets/fonts/manrope.ttf") format("truetype");
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: Outfit;
    src: url("assets/fonts/outfit.ttf") format("truetype");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --brand: #70b62b;
    --green-text: #3d731a;
    --green-button: #326517;
    --green-dark: #063423;
    --ink: #10232a;
    --paper: #fcfdfb;
    --gutter: clamp(24px, 5.3vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1rem/1.5 Manrope, sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: Outfit, sans-serif; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #316315; outline-offset: 4px; }
.skip-link { position: absolute; z-index: 20; top: .5rem; left: .5rem; padding: .75rem; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 2; background: #fff; }
.header-inner {
    min-height: clamp(78px, 6.35vw, 120px);
    padding: 14px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 3vw, 52px);
}
.brand { flex: 0 0 auto; width: clamp(166px, 17.6vw, 335px); }
.brand img { width: 100%; height: auto; }
.primary-navigation, .menu, .header-actions { display: flex; align-items: center; }
.primary-navigation { flex: 1; justify-content: space-between; gap: clamp(20px, 3.2vw, 57px); }
.menu { margin: 0; padding: 0; list-style: none; gap: clamp(17px, 2.7vw, 50px); font-size: clamp(.95rem, 1.15vw, 1.18rem); }
.menu li { white-space: nowrap; }
.menu a, .menu li > span { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: .6rem 0; text-decoration: none; }
.menu [aria-current="page"] { color: var(--green-text); }
.menu [aria-current="page"]::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: var(--brand);
}
.chevron { width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin-top: -3px; }
.header-actions { gap: clamp(10px, 1.35vw, 24px); }
.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: .55em;
    padding: .58em 1.16em;
    border: 1.5px solid transparent;
    border-radius: 3px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.button svg, .menu-toggle svg { width: 1.2em; height: 1.2em; flex: none; }
.button-primary { background: var(--green-button); color: #fff; }
.button-outline { border-color: #174a2d; color: #174a2d; background: #fff; }
a.button-primary:hover { background: #244b11; }
a.button-outline:hover { background: #eaf3e3; }
.menu-toggle { min-height: 44px; display: inline-flex; align-items: center; gap: .65rem; background: #fff; color: var(--ink); border: 1px solid #c9dbc1; padding: .35rem .65rem; }

.hero {
    --visual-width: 57%;
    position: relative;
    isolation: isolate;
    min-height: clamp(540px, 40.65vw, 850px);
    display: flex;
    align-items: center;
}
.hero-copy { position: relative; z-index: 1; width: 43%; padding: clamp(28px, 2.45vw, 55px) clamp(18px, 2.4vw, 45px) clamp(28px, 3.15vw, 62px) var(--gutter); }
.eyebrow {
    display: flex;
    align-items: center;
    gap: clamp(9px, 1vw, 18px);
    margin: 0 0 clamp(22px, 1.55vw, 34px);
    font-size: clamp(.67rem, .91vw, 1.1rem);
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.45;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; flex: 0 0 clamp(20px, 2.55vw, 50px); height: 2px; background: var(--brand); }
.hero h1 { margin: 0; letter-spacing: -.04em; line-height: .98; }
.hero h1 > * { display: block; }
.hero-lead { max-width: 5.75em; margin-bottom: .25em; font-weight: 650; font-size: clamp(3.15rem, 4.65vw, 5.7rem); }
.hero-continuation, .hero-accent { font-size: clamp(2.34rem, 3.39vw, 4.1rem); }
.hero-continuation { max-width: 9.6em; font-weight: 400; line-height: 1.02; }
.hero-accent { color: var(--green-text); font-weight: 700; line-height: 1.07; }
.hero-description { max-width: 35em; margin: clamp(16px, 1.45vw, 32px) 0 0; font-size: clamp(.99rem, 1.17vw, 1.4rem); line-height: 1.4; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; column-gap: clamp(20px, 2.65vw, 52px); row-gap: 12px; margin-top: clamp(20px, 2.15vw, 42px); }
.hero-actions .button { min-height: clamp(48px, 3.6vw, 67px); padding-inline: 1.55em; font-size: clamp(1rem, 1.16vw, 1.32rem); }
.text-action { padding: .42em 0; border-bottom: 2px solid var(--brand); color: #174a2d; font-weight: 800; text-decoration: none; }
.hero-visual { position: absolute; inset: 0 0 0 auto; width: var(--visual-width); }
.hero-art {
    position: absolute;
    top: 50%;
    left: 0;
    width: 87%;
    aspect-ratio: 3 / 2;
    transform: translateY(-50%);
    background: #093324 url("assets/images/cabecera-option2.webp") center / 100% auto no-repeat;
    clip-path: polygon(23.1% 2.25%, 39.1% 2.25%, 40.3% 2.6%, 41.5% 3.6%, 42.6% 5.6%, 52.95% 31.3%, 64.1% 2.25%, 96.85% 2.25%, 72.55% 97.7%, 58.2% 97.7%, 57.4% 97.4%, 56.9% 96.8%, 40.85% 59.4%, 27.1% 97.7%, 1.05% 97.7%);
}
.hero-visual::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0 0 0 auto;
    width: 43%;
    background: linear-gradient(90deg, #082e22 5%, var(--green-dark) 23%);
    clip-path: polygon(19% 0, 100% 0, 100% 91%, 15% 91%, 5% 100%, 0 100%, 0 82%);
}
.hero-stats {
    position: absolute;
    z-index: 2;
    inset: 0 var(--gutter) 0 auto;
    width: clamp(142px, 14.3vw, 278px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: clamp(18px, 2vw, 40px);
    margin: 0;
    padding: 0;
    list-style: none;
    color: #fff;
}
.hero-stats li + li { border-top: 1px solid #77a76a; padding-top: clamp(17px, 1.95vw, 38px); }
.hero-stats strong { display: block; color: var(--brand); font: 650 clamp(3.6rem, 6.3vw, 7.55rem)/.95 Outfit, sans-serif; letter-spacing: .004em; }
.hero-stats span { display: block; max-width: 11em; margin-top: .59em; font-size: clamp(1.02rem, 1.48vw, 1.9rem); line-height: 1.2; letter-spacing: -.02em; }
.service-strip {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: clamp(24px, 2.65vw, 51px) var(--gutter);
    list-style: none;
    background: #e9f2e3;
}
.service-strip li { display: flex; gap: clamp(12px, 1.6vw, 32px); align-items: center; padding: 0 clamp(14px, 2.25vw, 44px); font-size: clamp(.9rem, 1.24vw, 1.55rem); line-height: 1.2; }
.service-strip li:first-child { padding-left: 0; }
.service-strip li:last-child { padding-right: 0; }
.service-strip li + li { border-left: 1px solid #abbba5; }
.service-strip svg { flex: 0 0 clamp(28px, 3.3vw, 63px); width: clamp(28px, 3.3vw, 63px); color: #235329; }
.service-strip strong { display: block; font-weight: 800; }
.content-page { max-width: 70ch; margin: auto; padding: 3rem 1.5rem; }

.needs-section {
    padding: clamp(120px, 8.3vw, 150px) var(--gutter);
    background: #f3f8f0;
    border-top: 1px solid #dce9d5;
}
.needs-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.65fr);
    gap: clamp(38px, 5vw, 96px);
    align-items: start;
}
.needs-intro h2 {
    max-width: 11ch;
    margin: -0.07em 0 24px;
    font: 650 clamp(2.85rem, 4.25vw, 5.2rem)/1.01 Outfit, sans-serif;
    letter-spacing: -.042em;
    text-wrap: balance;
}
.needs-intro p {
    max-width: 36ch;
    margin: 0;
    font-size: clamp(1rem, 1.19vw, 1.35rem);
    line-height: 1.6;
}
.needs-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(26px, 3.2vw, 62px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.needs-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    gap: clamp(14px, 1.4vw, 26px);
    padding: clamp(22px, 2.2vw, 41px) 0;
    border-top: 1px solid #bbcfb4;
}
.needs-icon { width: clamp(28px, 2.5vw, 46px); color: var(--green-text); }
.needs-icon svg { display: block; width: 100%; }
.needs-copy { min-width: 0; overflow-wrap: anywhere; }
.needs-copy h3 {
    margin: 0 0 .45em;
    font: 650 clamp(1.25rem, 1.64vw, 1.95rem)/1.13 Outfit, sans-serif;
    letter-spacing: -.019em;
    text-wrap: pretty;
}
.needs-copy p { margin: 0; font-size: clamp(.94rem, 1.03vw, 1.17rem); line-height: 1.55; }
.needs-copy a { text-decoration-color: #83aa72; text-underline-offset: .15em; transition: color .18s ease, text-decoration-color .18s ease; }
.needs-copy a:hover, .needs-copy a:focus-visible { color: var(--green-text); text-decoration-color: currentColor; }

@media (prefers-reduced-motion: reduce) {
    .needs-copy a { transition: none; }
}

@media (max-width: 1180px) {
    .needs-section { padding-block: clamp(80px, 8.5vw, 100px); }
    .needs-layout { grid-template-columns: minmax(0, 1fr); gap: 42px; }
    .needs-intro h2 { max-width: 16ch; margin-bottom: 19px; }
    .needs-intro p { max-width: 55ch; }
}

@media (max-width: 699px) {
    .needs-section { padding-block: clamp(64px, 12vw, 80px); }
    .needs-layout { gap: 36px; }
    .needs-intro h2 { max-width: 12ch; font-size: clamp(2.45rem, 9.5vw, 3.6rem); }
    .needs-list { grid-template-columns: minmax(0, 1fr); }
    .needs-item { padding-block: 20px; }
    .needs-item:last-child { padding-bottom: 0; }
}

@media (max-width: 1180px) {
    .header-inner { flex-wrap: wrap; gap: 12px; }
    .primary-navigation { width: 100%; display: grid; gap: 14px; padding: 8px 0 12px; border-top: 1px solid #dfe9da; }
    .menu { flex-wrap: wrap; gap: 0 22px; }
    .header-actions { flex-wrap: wrap; }
    .hero { display: block; min-height: auto; }
    .hero-copy { width: min(100%, 720px); padding: 34px var(--gutter) 27px; }
    .hero-lead { font-size: clamp(3rem, 7.7vw, 5rem); }
    .hero-continuation, .hero-accent { font-size: clamp(2.25rem, 5.4vw, 3.8rem); }
    .hero-visual { position: relative; width: 100%; min-height: clamp(260px, 52vw, 470px); }
    .hero-art { width: 77%; left: 1.5%; }
    .hero-visual::before { width: 38%; }
    .hero-stats { width: 24%; }
    .hero-stats strong { font-size: clamp(3rem, 9.2vw, 5.7rem); }
    .hero-stats span { font-size: clamp(.9rem, 2vw, 1.45rem); }
}

@media (max-width: 700px) {
    .service-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; padding-block: 20px; }
    .service-strip li { padding: 0 10px; gap: 9px; }
    .service-strip li:nth-child(odd) { border-left: 0; padding-left: 0; }
}

@media (min-width: 551px) {
    .hero-visual {
        --art-width: 79%;
        --join-top: 76.3%;
        --join-bottom: 57.1%;
        --seam: .28%;
        --art-bottom: -1.16vw;
        overflow: hidden;
    }
    .hero-art {
        inset: auto auto var(--art-bottom) 0;
        width: var(--art-width);
        transform: none;
    }
    .hero-visual::before,
    .hero-visual::after {
        content: "";
        position: absolute;
        inset: auto 0 var(--art-bottom);
        aspect-ratio: 1.5 / .79;
        z-index: 1;
    }
    .hero-visual::before {
        width: 100%;
        background: var(--green-dark);
        clip-path: polygon(var(--join-top) 2.25%, 100% 2.25%, 100% 95%, 89% 95%, 86% 97.7%, var(--join-bottom) 97.7%);
    }
    .hero-visual::after {
        background: var(--brand);
        clip-path: polygon(var(--join-top) 2.25%, calc(var(--join-top) + var(--seam)) 2.25%, calc(var(--join-bottom) + var(--seam)) 97.7%, var(--join-bottom) 97.7%);
    }
}

@media (min-width: 1181px) {
    .hero { --visual-width: 70%; }
    .hero-visual {
        --art-width: 84%;
        --art-bottom: -.91vw;
        --join-top: 81.15%;
        --join-bottom: 60.7%;
    }
    .hero-visual::before,
    .hero-visual::after { aspect-ratio: 1.5 / .84; }
    .hero-description { max-width: 30vw; }
    .hero-copy { padding-bottom: clamp(43px, 4.5vw, 84px); }
    .hero-stats {
        right: 2.4vw;
        inset-block-start: max(0px, calc(100% - 39.2vw));
        padding-block-start: clamp(70px, 8.5vw, 165px);
    }
}

@media (min-width: 551px) and (max-width: 1180px) {
    .hero-visual {
        --art-width: 75%;
        --join-top: 72.45%;
        --join-bottom: 54.2%;
        min-height: 0;
        aspect-ratio: 1.95;
    }
    .hero-visual::before,
    .hero-visual::after { aspect-ratio: 2; }
    .hero-stats { right: 3.2%; width: 25%; }
}

@media (max-width: 340px) {
    .service-strip li > span { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 550px) {
    :root { --gutter: 22px; }
    .header-inner { min-height: 70px; padding-block: 10px; }
    .brand { width: 174px; }
    .menu { display: grid; grid-template-columns: repeat(2, 1fr); }
    .hero-copy { padding-top: 22px; padding-bottom: 17px; }
    .eyebrow { margin-bottom: 19px; font-size: .66rem; letter-spacing: .12em; align-items: baseline; }
    .eyebrow::before { align-self: center; }
    .hero-lead { font-size: clamp(2.55rem, 11vw, 3.65rem); margin-bottom: .26em; text-wrap: balance; }
    .hero-continuation, .hero-accent { font-size: clamp(1.9rem, 8.3vw, 2.8rem); }
    .hero-description { margin-top: 17px; }
    .hero-actions { margin-top: 21px; }
    .hero-visual { display: grid; min-height: 0; }
    .hero-art { position: relative; top: auto; left: auto; width: calc(100% - 24px); margin-inline: auto; transform: none; }
    .hero-visual::before { display: none; }
    .hero-stats { position: static; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 22px var(--gutter); background: var(--green-dark); }
    .hero-stats strong { font-size: clamp(2.8rem, 12vw, 4rem); }
    .hero-stats li + li { border: 0; border-left: 1px solid #77a76a; padding: 0 0 0 15px; }
}
.web-design {
    padding: clamp(120px, 8.3vw, 150px) var(--gutter);
    color: #f7faf6;
    background: #102c23;
}
.web-design-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: clamp(32px, 5vw, 92px);
}
.web-design-copy { grid-area: 1 / 2; }
.web-design-copy h2,
.web-design-ownership h3 {
    margin: 0 0 .45em;
    font-weight: 650;
    letter-spacing: -.038em;
    line-height: 1.03;
    text-wrap: balance;
}
.web-design-copy h2 { font-size: clamp(2.5rem, 3.65vw, 4.65rem); }
.web-design-copy p,
.web-design-ownership p {
    max-width: 62ch;
    margin: 0 0 1em;
    color: #dce9df;
    font-size: clamp(.98rem, 1.13vw, 1.24rem);
    line-height: 1.62;
}
.web-design-copy .web-design-lead {
    margin-bottom: .85em;
    color: #d5efba;
    font: 550 clamp(1.25rem, 1.7vw, 1.95rem)/1.22 Outfit, sans-serif;
}
.web-design-copy p:last-child { margin-bottom: 0; }
.web-design-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65em 1.25em;
    margin: 1.35em 0;
    padding: 1.15em 0;
    border-block: 1px solid #456454;
    list-style: none;
    font-size: clamp(.93rem, 1.06vw, 1.14rem);
}
.web-design-features li { display: flex; align-items: baseline; gap: .6em; }
.web-design-features li::before {
    content: "";
    flex: 0 0 .6em;
    height: 2px;
    transform: translateY(-.22em) skewX(-38deg);
    background: var(--brand);
}
.web-design-figure { grid-area: 1 / 1; margin: 0; min-width: 0; }
.web-design-devices {
    position: relative;
    isolation: isolate;
    padding: 11% 0 7%;
}
.web-design-devices::before,
.web-design-devices::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}
.web-design-devices::before {
    inset: 3% 3% 0 1%;
    background: #204638;
    clip-path: polygon(25% 0, 96% 0, 69% 100%, 0 100%);
}
.web-design-devices::after {
    inset: 3% 7% 0 0;
    background: var(--brand);
    clip-path: polygon(26% 0, 26.55% 0, 1.55% 100%, 1% 100%);
}
.web-design-laptop { position: relative; width: 87%; }
.web-design-laptop-screen {
    position: relative;
    width: 94%;
    margin: auto;
    padding: clamp(5px, .75vw, 13px);
    border: 1px solid #79908a;
    border-radius: clamp(6px, .9vw, 17px) clamp(6px, .9vw, 17px) 2px 2px;
    background: #182221;
}
.web-design-laptop-screen::before {
    content: "";
    position: absolute;
    top: 3px;
    left: calc(50% - 1px);
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #8caaa0;
}
.web-design-laptop::after {
    content: "";
    display: block;
    width: 100%;
    height: clamp(7px, 1vw, 18px);
    border-top: 1px solid #bbc6c0;
    border-radius: 1px 1px 46% 46% / 1px 1px 65% 65%;
    background: linear-gradient(#a6b1ac 2%, #64736e 63%, #263b32 66%);
}
.web-design-devices img { width: 100%; height: auto; }
.web-design-phone {
    position: absolute;
    right: 0;
    bottom: 1%;
    width: 21.5%;
    overflow: hidden;
    padding: clamp(3px, .45vw, 8px);
    border: 1px solid #97a8a0;
    border-radius: clamp(9px, 1.4vw, 23px);
    background: #141d1b;
    box-shadow: -8px 7px 20px #06120d70;
}
.web-design-phone img { border-radius: clamp(6px, .9vw, 15px); }
.web-design-figure figcaption {
    margin-top: 1em;
    color: #c1d6c6;
    font-size: .88rem;
}
.web-design-figure figcaption span { display: inline-block; margin-inline: .5em; color: var(--brand); }
.web-design-ownership {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    gap: clamp(20px, 5vw, 92px);
    margin-top: clamp(55px, 6vw, 116px);
    padding-top: clamp(28px, 4vw, 72px);
    border-top: 1px solid #52735f;
}
.web-design-ownership h3 {
    max-width: 13ch;
    margin: 0;
    color: #d5efba;
    font-size: clamp(2rem, 3.1vw, 4rem);
}
.web-design-ownership p { margin-bottom: 1.45em; }
.web-design-action { background: var(--brand); color: #102c23; white-space: normal; }
a.web-design-action:hover { background: #a4d875; }
.web-design a:focus-visible { outline-color: #b7e58d; }

@media (max-width: 1180px) {
    .web-design { padding-block: clamp(80px, 8.5vw, 100px); }
}

@media (max-width: 959px) {
    .web-design-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .web-design-copy, .web-design-figure { grid-area: auto; }
    .web-design-figure { width: min(100%, 695px); margin-inline: auto; }
}

@media (max-width: 699px) {
    .web-design { padding-block: clamp(64px, 12vw, 80px); }
    .web-design-ownership { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 359px) {
    .web-design-features { grid-template-columns: minmax(0, 1fr); }
}
