:root {
    color-scheme: light;
    --paper: #f8f7f2;
    --ink: #172c42;
    --navy: #14273c;
    --muted: #4d5f6d;
    --line: #d9dedf;
    --rust: #a73426;
    --warm: #f3b39a;
    --display: "Instrument Sans", "DM Sans", Arial, sans-serif;
    --body: "DM Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.57 var(--body); }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3, dt { font-family: var(--display); }
:focus-visible { outline: 3px solid #267fac; outline-offset: 5px; }
[hidden] { display: none !important; }
section { scroll-margin-top: 1rem; }
.shell { width: min(100% - 96px, 1260px); margin-inline: auto; }
.skip { position: absolute; z-index: 10; left: 1rem; top: .75rem; transform: translateY(-170%); padding: .5rem 1rem; background: white; }
.skip:focus { transform: none; }
.section { padding-block: clamp(4rem, 7.5vw, 7.5rem); }
.split { display: grid; grid-template-columns: .87fr 1.13fr; gap: clamp(2.5rem, 7vw, 7.2rem); }
.eyebrow, .category { color: var(--rust); font-size: .77rem; font-weight: 700; letter-spacing: .115em; line-height: 1.4; text-transform: uppercase; }
h2 { font-size: clamp(2.65rem, 5.25vw, 5rem); line-height: .99; letter-spacing: -.04em; word-spacing: .025em; font-weight: 600; text-wrap: balance; }
.section h2 { margin-top: .9rem; }
.section-body { color: var(--muted); margin-top: 1.35rem; max-width: 42ch; font-size: clamp(1rem, 1.35vw, 1.16rem); }

.site-header { background: var(--paper); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1.25rem; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: 114px; height: auto; mix-blend-mode: multiply; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.6rem); }
nav a { text-decoration: none; font-size: .87rem; font-weight: 700; }
nav a:hover, .text-link:hover { color: var(--rust); }
.nav-contact { border: 1px solid #aeb9c3; padding: .52rem .84rem; }
.nav-contact span { margin-left: .45rem; color: var(--rust); }

.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .84rem 1.12rem; min-height: 49px; border: 1px solid transparent; background: var(--rust); color: #fff; font: 700 .88rem/1.35 var(--body); text-decoration: none; cursor: pointer; }
.button:hover { background: #882b21; }
.button span { font-size: 1.1rem; font-weight: 500; }
.text-link { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; text-decoration: underline; text-underline-offset: .28em; text-decoration-color: #738695; font-size: .89rem; }
.text-link span { color: var(--rust); }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #faf9f2; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0 0 0 34%; background: radial-gradient(ellipse at 60% 48%, #4c697b 0, #273f54 51%, transparent 78%), repeating-linear-gradient(90deg, transparent 0 71px, #e0eaf314 71px 72px), repeating-linear-gradient(0deg, transparent 0 71px, #e0eaf312 71px 72px); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.hero-inner { display: grid; min-height: min(660px, 54vw); grid-template-columns: 1fr .94fr; align-items: center; padding-block: clamp(4.2rem, 7.8vw, 7.4rem); gap: 1.2rem; }
.hero-copy { position: relative; z-index: 1; }
.hero .eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--warm); }
.mark { display: inline-block; width: 1.45rem; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(3.6rem, 6.05vw, 5.65rem); font-weight: 600; letter-spacing: -.04em; word-spacing: .035em; line-height: .98; margin: 1.15rem 0 1.4rem; }
.hero h1 em { display: block; font-style: normal; color: #efb69e; }
.lede { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.22rem); max-width: 41ch; }
.hero .lede { color: #e0e7eb; }
.hero-actions { display: flex; align-items: center; gap: 1.25rem 1.65rem; flex-wrap: wrap; margin-top: 1.85rem; }
.hero .button { background: #f2b49b; color: #1d2d3d; }
.hero .button:hover { background: #f7cbb9; }
.hero .text-link { color: #f4f4f1; text-decoration-color: #a4b6c3; }
.hero .text-link span { color: var(--warm); }
.hero-visual { width: 122%; margin-left: -11%; align-self: center; }
.hero-visual img { width: 100%; height: auto; filter: drop-shadow(0 20px 23px #061728a0); }
.hero-visual figcaption { color: #c7d4de; font-size: .72rem; text-align: right; padding-right: 4%; margin-top: .45rem; }

.trust { background: #fffefa; border-bottom: 1px solid var(--line); padding-block: clamp(2.4rem, 4.4vw, 3.7rem); }
.trust h2 { color: var(--muted); font-family: var(--body); text-align: center; }
.logos { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; justify-items: center; gap: .8rem; list-style: none; margin: 1.45rem 0 0; padding: 0; }
.logos li { display: grid; place-items: center; min-width: 0; width: 100%; min-height: 78px; padding: .45rem .8rem; }
.logos li + li { border-left: 1px solid #e3e5e2; }
.logos img { width: min(100%, 154px); height: 52px; object-fit: contain; }
.logos li:nth-child(3) img { width: min(100%, 123px); }
.logos li:last-child img { width: min(100%, 134px); }

.solutions-intro { align-items: center; gap: 1.5rem 5rem; }
.solutions-intro .section-copy { padding-block: 1.4rem; }
.formats { width: min(100%, 570px); justify-self: end; padding-inline: .7rem; }
.formats img { width: 100%; height: auto; filter: drop-shadow(0 10px 12px #5d472925); }
.process { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid #bac7cb; margin-top: 2.8rem; }
.process a { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: baseline; padding: 1.3rem 1rem 1.4rem; text-decoration: none; }
.process a:hover { background: #eceee9; }
.process a + a { border-left: 1px solid #bac7cb; }
.step-order { color: var(--rust); font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.process a strong { display: block; font: 700 1.17rem/1.2 var(--display); margin-bottom: .31rem; }
.process a strong + span { color: var(--muted); display: block; font-size: .87rem; }
.process-arrow { color: var(--rust); font-size: 1rem; }

.equipment { background: #eaf0f2; border-block: 1px solid #dce4e7; }
.equipment-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.equipment-head > p { max-width: 34ch; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.8rem 0 1.35rem; }
.filters button { border: 1px solid #9eafb7; background: transparent; color: var(--ink); padding: .5rem .87rem; min-height: 44px; font: 700 .84rem/1.25 var(--body); cursor: pointer; }
.filters button:hover { background: #dbe6ea; }
.filters button[aria-pressed=true] { color: #fff; background: var(--ink); border-color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.machine-card { background: #fffefa; min-width: 0; }
.machine-card > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; border: 1px solid #cdd9de; transition: border-color .2s, background-color .2s; }
.machine-card a:hover { border-color: #838f9a; background: #fff; }
.card-media { overflow: hidden; display: grid; place-items: center; background: #f5f7f7; border-bottom: 1px solid #dce4e7; aspect-ratio: 1.73; padding: .85rem 1rem; }
.card-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s; }
.machine-card a:hover img { transform: scale(1.045); }
.card-copy { display: grid; align-content: start; flex: 1; position: relative; padding: 1.25rem 3.3rem 1.35rem 1.17rem; }
.card-copy .category { font-size: .68rem; }
.card-copy h3 { margin-top: .25rem; font-size: clamp(1.75rem, 2.4vw, 2.3rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.07; }
.machine-description { color: var(--muted); font-size: .9rem; margin-top: .45rem; }
.card-arrow { position: absolute; right: 1.12rem; top: 1.18rem; border: 1px solid #b9c7ce; color: var(--rust); width: 2rem; height: 2rem; display: grid; place-items: center; }
.machine-card a:hover .card-arrow { background: var(--ink); border-color: var(--ink); color: #fff; }

.services .text-link, .product-details .text-link { margin-top: 1.25rem; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.55rem 1.7rem; align-content: start; }
.service-list > div { border-top: 1px solid #bac7cb; padding-top: 1rem; }
.service-list dt, .specs dt { font: 700 1.16rem/1.26 var(--display); }
.service-list dd, .specs dd { color: var(--muted); font-size: .92rem; margin-top: .38rem; }

.contact { background: var(--navy); color: #fcfcf7; }
.contact .eyebrow { color: var(--warm); }
.contact .section-body { color: #d5e0e8; }
.contact form { display: grid; gap: 1rem; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; min-width: 0; }
.field { display: grid; gap: .34rem; min-width: 0; }
.field label { font-size: .88rem; font-weight: 700; }
.field label span, .form-note { color: #d5e0e8; font-size: .78rem; font-weight: 400; }
.field input, .field textarea { width: 100%; min-width: 0; border: 1px solid #8296a6; border-radius: 0; background: #233b52; color: #fff; padding: .67rem .76rem; font: inherit; }
.field textarea { resize: vertical; min-height: 6.3rem; }
.contact :focus-visible { outline-color: #c3e5ff; outline-offset: 3px; }
.contact .button { justify-self: start; background: #f2b49b; color: var(--ink); }
.contact .button:hover { background: #f7cbb9; }
.notice, .equipment-context { padding: .63rem .8rem; border-left: 3px solid currentColor; background: #233b52; font-size: .91rem; }
.notice-success { color: #c8f2d6; }
.notice-error { color: #ffd3c9; }
.equipment-context a { color: #f2b49b; margin-left: .4rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 90px; color: var(--muted); font-size: .81rem; }
.footer-inner .brand img { width: 93px; }

.product-top { background: #eaf0f2; padding-block: 1.6rem clamp(3rem, 5.5vw, 5.6rem); border-bottom: 1px solid #dce4e7; }
.back-link { display: inline-flex; align-items: center; gap: .55rem; font-size: .86rem; text-decoration: none; font-weight: 700; }
.back-link:hover { text-decoration: underline; }
.back-link span { color: var(--rust); }
.product-hero { display: grid; grid-template-columns: .82fr 1.18fr; gap: 2.5rem; align-items: center; padding-top: clamp(2.5rem, 5vw, 4.7rem); }
.product-copy h1 { margin: .52rem 0 .45rem; font-size: clamp(3.2rem, 6.7vw, 6.6rem); letter-spacing: -.04em; word-spacing: .035em; line-height: .98; font-weight: 600; }
.product-subtitle { font: 600 clamp(1.24rem, 2.5vw, 2.1rem)/1.16 var(--display); max-width: 26ch; letter-spacing: -.024em; }
.product-copy .lede { margin-top: .95rem; font-size: 1.02rem; }
.product-copy .button { margin-top: 1.4rem; }
.product-image { background: #f8faf9; border: 1px solid #c8d5db; display: grid; place-items: center; aspect-ratio: 1.48; padding: clamp(1rem, 3vw, 2.4rem); }
.product-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-figure figcaption, .gallery figcaption { font-size: .77rem; color: var(--muted); padding-top: .65rem; }
.product-details .case-link { display: table; }
.specs > div { padding: 1rem 0; border-top: 1px solid #b9c7cb; }
.specs > div:last-child { border-bottom: 1px solid #b9c7cb; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.8rem; }
.gallery img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; background: #eaf0f2; }
.gallery figcaption span { color: #5e6f7c; }
.product-next { background: #eaf0f2; border-top: 1px solid #dce4e7; }
.next-inner { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 1.2rem; padding-block: 1.65rem; }

@media (max-width: 1120px) {
    .hero h1 { font-size: clamp(3.15rem, 6.2vw, 5rem); }
    .shell { width: calc(100% - 64px); }
    .hero-visual { width: 112%; margin-left: -7%; }
}
@media (max-width: 800px) {
    .shell { width: calc(100% - 40px); }
    .hero-inner, .split, .product-hero { grid-template-columns: 1fr; }
    .hero-inner { padding-block: 3.4rem 2.1rem; gap: 1.5rem; min-height: 0; }
    .hero h1 { font-size: clamp(2.7rem, 8vw, 4.45rem); }
    .hero-visual { width: 100%; margin-left: 0; max-width: 610px; justify-self: center; }
    .hero-visual figcaption { padding-right: 0; }
    .hero::before { inset: 26% 0 0; mask-image: linear-gradient(0deg, #000, transparent); }
    nav { gap: .9rem; }
    .brand img { width: 98px; }
    .header-inner { min-height: 67px; }
    nav a { font-size: .78rem; }
    .nav-contact { padding: .46rem .55rem; }
    .nav-contact span { margin-left: .18rem; }
    .logos { gap: .25rem; }
    .logos li { padding: .35rem .5rem; }
    .logos img { height: 43px; }
    .formats { max-width: 490px; justify-self: center; }
    .solutions-intro .section-copy { padding-block: 0; }
    .process { margin-top: 1.9rem; }
    .process a { padding: 1rem .64rem; gap: .45rem; }
    .process a strong { font-size: 1rem; }
    .process a strong + span { font-size: .8rem; }
    .equipment-head { align-items: start; flex-direction: column; gap: .95rem; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .product-hero { gap: 1.65rem; }
}
@media (max-width: 500px) {
    .nav-section { display: none; }
    .hero h1 { font-size: clamp(2.3rem, 9.3vw, 3.3rem); }
    .hero-actions { gap: 1.05rem; }
    .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .7rem; }
    .logos li { min-height: 58px; border-left: 0 !important; }
    .logos li:last-child { grid-column: 1 / -1; }
    .logos img { height: 38px; width: min(100%, 128px); }
    .process { grid-template-columns: 1fr; }
    .process a + a { border-left: none; border-top: 1px solid #bac7cb; }
    .process a { padding: .92rem .25rem; gap: .8rem; }
    .cards { grid-template-columns: minmax(0, 1fr); }
    .form-row, .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
.logos li:nth-child(3) img { filter: brightness(0); opacity: .82; }

/* Official TF22 photograph and sector references. */
.hero-visual { width: 108%; margin-left: -4%; }
.hero-machine { position: relative; display: grid; place-items: center; min-height: 350px; padding: 1.8rem 1rem 3.2rem; background: #f1f5f4; border: 1px solid #9eaeb7; text-decoration: none; }
.hero-machine img { width: 100%; height: auto; filter: none; mix-blend-mode: multiply; transition: transform .25s; }
.hero-machine:hover img { transform: translateY(-4px); }
.hero-machine-link { position: absolute; bottom: .85rem; left: 1.1rem; right: 1.1rem; display: flex; justify-content: space-between; color: var(--ink); border-top: 1px solid #b7c7ce; padding-top: .7rem; font-size: .85rem; font-weight: 700; }
.hero-machine-link > span { color: var(--rust); }
.hero-visual figcaption { padding-right: 0; }
.logos { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .65rem; }
.logos li { padding-inline: .7rem; }
.logos li:nth-child(6) img { width: min(100%, 140px); }
.logos li:nth-child(7) img { height: 64px; width: 100%; }

.markets { border-top: 1px solid var(--line); background: #fffefa; }
.market-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2.6rem; }
.market-grid article { border-top: 2px solid var(--rust); padding-top: 1.3rem; }
.market-grid h3 { font-size: 1.48rem; line-height: 1.15; font-weight: 600; letter-spacing: -.025em; margin-bottom: .7rem; }
.market-grid p { color: var(--muted); font-size: .95rem; }
.market-grid .text-link { margin-top: 1rem; font-size: .82rem; }
.international { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid #c2ced3; }
.international-copy h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.035em; margin: .75rem 0 1rem; font-weight: 600; }
.international-copy > p:last-child { color: var(--muted); font-size: .95rem; max-width: 39ch; }
.case-list a { display: grid; position: relative; gap: .3rem; padding: 1rem 2rem 1.1rem 0; border-bottom: 1px solid #c2ced3; text-decoration: none; }
.case-list a:first-child { padding-top: 0; }
.case-list .case-meta { color: var(--rust); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; }
.case-list strong { font: 600 1.35rem/1.2 var(--display); }
.case-list strong + span { color: var(--muted); font-size: .89rem; }
.case-arrow { color: var(--rust); position: absolute; right: 0; top: 1rem; }
.case-list a:first-child .case-arrow { top: 0; }
.case-list a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 1000px) {
    .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .logos li:nth-child(5) { border-left: 0; }
    .international { gap: 2rem; }
}
@media (max-width: 800px) {
    .hero-visual { width: 100%; margin-left: 0; }
    .hero-machine { min-height: 0; padding: 1.2rem .7rem 3rem; }
    .market-grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .market-grid article { max-width: 100%; }
    .international { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (max-width: 500px) {
    .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .logos li:last-child { grid-column: 1 / -1; }
    .logos li:nth-child(7) img { height: 58px; }
}

.hero-machine-cutout { background: transparent; border: 0; padding: 0 0 2.8rem; }
.hero-machine-cutout img { mix-blend-mode: normal; filter: drop-shadow(0 14px 18px #06172870); }
.hero-machine-cutout .hero-machine-link { border-color: #708493; color: #fffefa; }
.hero-machine-cutout .hero-machine-link > span { color: var(--warm); }

.gallery img[src="/tf22-envase-cerezas.webp"] { background: #fff; object-fit: cover; }
