/* =========================================================
   OJITOCORP · Ambientes: portada propia de cada área,
   franja de productos, bloque de contexto y catálogos.
   ========================================================= */

#scene { position: relative; overflow: clip; color: var(--ink); }
.scene-inner { --enter: 0ms; }
.scene-inner[data-enter="wave"] { --enter: 120ms; }
.scene-inner[data-enter="load"] { --enter: 60ms; }

.hero { position: relative; isolation: isolate; }
.intro-copy { position: relative; z-index: 1; min-width: 0; }
.line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.06em; }
.line > span { display: inline-block; }
.highlight { font-style: normal; position: relative; }
.hero-split h1 { font-size: clamp(42px, 4.6vw, 72px); }
.scribble { display: none; }
.intro-description { color: var(--muted); max-width: 44ch; font-size: 18px; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.hero-figure { position: relative; min-width: 0; overflow: hidden; }
.hero-figure > img { width: 100%; height: 100%; }
.title-tail { display: block; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.2; letter-spacing: -.03em; margin-top: 18px; color: var(--muted); }

/* ---------- Franja de productos (ticker) ---------- */
[data-theme="inicio"] { --band-bg: #173a32; --band-ink: #e9f3d6; --band-icon: #a3c96b; }
[data-theme="tecnologia"] { --band-bg: #b4f24a; --band-ink: #08161b; --band-icon: #0b5f55; }
[data-theme="negocios"] { --band-bg: #1d2436; --band-ink: #f5eee1; --band-icon: #d6a23a; }
[data-theme="digital"] { --band-bg: linear-gradient(90deg, #d61f7f, #6a46f0); --band-ink: #fff; --band-icon: #ffd2ec; }
[data-theme="alimentos"] { --band-bg: #a63c12; --band-ink: #fff3e2; --band-icon: #ffc58a; }
[data-theme="formacion"] { --band-bg: #1f58c0; --band-ink: #fff; --band-icon: #ffb39e; }
.ticker { overflow: hidden; background: var(--band-bg); color: var(--band-ink); padding: 18px 0; }
.ticker-track { display: flex; width: max-content; }
.ticker-track > div { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.ticker span { font: 600 clamp(18px, 2vw, 26px)/1 Sora, sans-serif; letter-spacing: -.02em; white-space: nowrap; }
.ticker .icon { width: 18px; height: 18px; color: var(--band-icon); }

/* =========================================================
   INICIO
   ========================================================= */
.hero-home { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; min-height: min(820px, calc(100svh - 78px)); padding-block: 56px 72px; }
.hero-home h1 { font-size: clamp(44px, 5vw, 78px); }
[data-theme="inicio"] .highlight { background: linear-gradient(transparent 60%, var(--accent) 60%, var(--accent) 90%, transparent 90%); }
.home-visual { position: relative; padding-bottom: 64px; }
.home-arch { height: 520px; border-radius: 260px 260px 22px 22px; box-shadow: 0 40px 80px -40px #173a3266; }
.home-tech { position: absolute; left: -40px; bottom: 0; width: 44%; overflow: hidden; border: 8px solid var(--bg); border-radius: 20px; box-shadow: 0 20px 40px -20px #173a3277; }
.home-tech img { width: 100%; height: 160px; }
.home-inset { position: absolute; right: -24px; bottom: 34px; width: 34%; text-align: center; }
.home-inset img { width: 100%; aspect-ratio: 1; height: auto; border-radius: 50%; border: 8px solid var(--bg); box-shadow: 0 20px 40px -20px #173a3277; }
.home-inset figcaption { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.home-ring { position: absolute; z-index: -1; top: 30px; right: -40px; width: 150px; aspect-ratio: 1; border-radius: 50%; background: var(--accent-2); }
.home-ring::after { content: ''; position: absolute; left: -330px; top: 300px; width: 90px; aspect-ratio: 1; border-radius: 50%; background: var(--accent); }

.area-index { padding-block: 88px 96px; }
.area-index .section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; align-items: end; margin-bottom: 36px; }
.area-index .section-heading .eyebrow { grid-column: 1 / -1; margin: 0; }
.area-index .section-heading p:last-child { color: var(--muted); }
.area-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 16px; }
.area-tile { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; gap: 16px; padding: 26px; border-radius: 24px; background: var(--bg); color: var(--ink); grid-column: span 3; transition: transform .45s var(--ease), box-shadow .45s; }
.area-tile.tile-1 { grid-column: span 4; grid-row: span 2; }
.area-tile.tile-2, .area-tile.tile-3 { grid-column: span 2; }
.area-tile figure { position: absolute; inset: 0; z-index: -2; }
.area-tile img { width: 100%; height: 100%; transition: transform .9s var(--ease); }
.area-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--bg) 6%, color-mix(in srgb, var(--bg) 78%, transparent) 34%, transparent 72%); }
.area-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 65%); }
.area-tile:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px var(--glow), 0 0 0 2px var(--accent); }
.area-tile:hover img { transform: scale(1.07); }
.area-tile:hover::after { opacity: 1; }
.tile-number { position: absolute; top: 20px; left: 22px; display: grid; place-items: center; min-width: 44px; height: 32px; padding: 0 10px; border-radius: 99px; background: var(--accent); color: var(--btn-ink); font: 700 13px Sora, sans-serif; }
[data-theme="digital"].area-tile .tile-number { background: var(--btn-bg); }
[data-theme="negocios"].area-tile .tile-number { color: var(--ink); }
[data-theme="formacion"].area-tile .tile-number, [data-theme="alimentos"].area-tile .tile-number { color: #fff; background: var(--accent-ink); }
.tile-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tile-title { font: 600 clamp(24px, 2.2vw, 34px)/1.1 Sora, sans-serif; letter-spacing: -.035em; }
.tile-1 .tile-title { font-size: clamp(30px, 3.4vw, 50px); }
.tile-text { margin-top: 6px; color: var(--muted); font-weight: 600; font-size: 15px; }
.tile-arrow { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid currentColor; transition: background .3s, color .3s, transform .3s var(--ease), border-color .3s; }
.area-tile:hover .tile-arrow { background: var(--accent); border-color: var(--accent); color: var(--btn-ink); transform: rotate(-45deg); }
[data-theme="negocios"].area-tile:hover .tile-arrow { color: var(--ink); }

.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 14px Sora, sans-serif; margin-bottom: 18px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* =========================================================
   TECNOLOGÍA · estructura precisa, oscuro y luminoso
   ========================================================= */
.hero-tech { overflow: hidden; padding-block: 64px 88px; min-height: min(820px, calc(100svh - 78px)); display: flex; align-items: center; }
.tech-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse at 70% 45%, #000 15%, transparent 72%); }
.tech-grid::after { content: ''; position: absolute; right: 8%; top: 8%; width: 560px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 62%); }
.hero-split { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
[data-theme="tecnologia"] .highlight { color: var(--accent); text-shadow: 0 0 40px var(--glow); }
.spec-chips { margin-top: 36px; }
.spec-chips p { font: 600 12px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff06; font-size: 13px; font-weight: 600; transition: border-color .25s, color .25s, box-shadow .25s, transform .25s var(--ease); }
.chip-list .num { font: 600 11px ui-monospace, Consolas, monospace; color: var(--accent-2); }
.chip-list .icon { display: none; }
.chip-list button:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--glow); transform: translateY(-2px); }
.tech-visual { position: relative; padding: 0 0 70px 48px; }
.tech-frame { height: 480px; overflow: visible; }
.tech-frame > img { border-radius: 8px; filter: saturate(.85) contrast(1.05); }
.corner { position: absolute; width: 30px; height: 30px; border: 2px solid var(--accent); }
.c1 { top: -12px; left: -12px; border-right: 0; border-bottom: 0; }
.c2 { top: -12px; right: -12px; border-left: 0; border-bottom: 0; }
.c3 { bottom: -12px; left: -12px; border-right: 0; border-top: 0; }
.c4 { bottom: -12px; right: -12px; border-left: 0; border-top: 0; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-2), transparent); box-shadow: 0 0 18px var(--accent-2); opacity: .8; }
.tech-frame figcaption { position: absolute; right: 20px; top: 20px; padding: 6px 12px; background: #08161bd9; color: var(--accent); border: 1px solid var(--accent); font: 600 12px ui-monospace, Consolas, monospace; }
.tech-frame figcaption::before { content: '> '; }
.tech-float { position: absolute; left: 0; bottom: 0; width: 44%; overflow: hidden; border: 6px solid var(--bg); border-radius: 10px; box-shadow: 0 24px 50px -16px #000; }
.tech-float img { width: 100%; height: 180px; }

/* =========================================================
   NEGOCIOS · editorial, aire de lectura y líneas sobrias
   ========================================================= */
.hero-business { padding-block: 64px 80px; }
.business-head h1 { font-size: clamp(48px, 6.6vw, 104px); letter-spacing: -.055em; line-height: 1.02; }
[data-theme="negocios"] .highlight { color: var(--accent-ink); background: linear-gradient(var(--accent), var(--accent)) 0 92% / 100% .09em no-repeat; }
.rule { display: block; height: 2px; margin: 40px 0; background: var(--ink); transform-origin: left; }
.business-grid { display: grid; grid-template-columns: 1.1fr .9fr 1fr; gap: 48px; align-items: start; }
.business-photos { position: relative; padding-bottom: 56px; }
.business-photo { height: 360px; border-radius: 2px; }
.business-inset { position: absolute; right: -28px; bottom: 0; width: 48%; overflow: hidden; border: 6px solid var(--bg); }
.business-inset img { width: 100%; height: 150px; }
.business-copy .intro-description { margin-top: 0; font: 600 21px/1.5 Sora, sans-serif; letter-spacing: -.02em; color: var(--ink); }
.business-index .eyebrow { margin-bottom: 10px; }
.index-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.index-list button { display: grid; grid-template-columns: 36px minmax(0, 1fr) 20px; gap: 12px; align-items: center; width: 100%; min-height: 56px; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 600; transition: padding .3s var(--ease), color .3s; }
.index-list .num { font: 600 13px Sora, sans-serif; color: var(--accent-ink); }
.index-list .icon { width: 18px; height: 18px; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s var(--ease); }
.index-list button:hover { padding-left: 10px; color: var(--accent-ink); }
.index-list button:hover .icon { opacity: 1; transform: none; }

/* =========================================================
   DIGITAL · color vibrante, piezas superpuestas y ritmo
   ========================================================= */
.hero-digital { overflow: hidden; padding-block: 64px 120px; min-height: min(820px, calc(100svh - 78px)); display: flex; align-items: center; }
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.b1 { width: 500px; height: 500px; background: var(--accent); top: -160px; right: 8%; }
.b2 { width: 440px; height: 440px; background: var(--accent-2); bottom: -200px; left: 28%; }
.b3 { width: 280px; height: 280px; background: #ffb36b; top: 32%; left: -100px; opacity: .35; }
[data-theme="digital"] .highlight { background: linear-gradient(100deg, var(--accent-ink), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.digital-stack { position: relative; height: 520px; }
.digital-stack figure { position: absolute; overflow: hidden; border-radius: 24px; border: 6px solid #fff; box-shadow: 0 30px 60px -24px #20133a77; transition: transform .7s var(--ease); }
.digital-stack img { width: 100%; height: 100%; }
.stack-a { inset: 50px 70px 70px 40px; z-index: 1; transform: rotate(-3deg); }
.stack-b { width: 44%; height: 44%; right: 0; top: 0; z-index: 2; transform: rotate(6deg); }
.stack-c { width: 42%; height: 40%; left: 0; bottom: 0; z-index: 2; transform: rotate(-7deg); }
.digital-stack:hover .stack-a { transform: rotate(-1deg) scale(1.02); }
.digital-stack:hover .stack-b { transform: rotate(10deg) translate(14px, -12px); }
.digital-stack:hover .stack-c { transform: rotate(-11deg) translate(-14px, 12px); }
.outline-word { position: absolute; z-index: -1; left: var(--gutter); bottom: -.16em; font: 700 clamp(64px, 12vw, 190px)/1 Sora, sans-serif; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--accent-2); opacity: .3; white-space: nowrap; pointer-events: none; }

/* =========================================================
   ALIMENTOS Y BEBIDAS · fotografía cálida y formas orgánicas
   ========================================================= */
.hero-food { display: flex; align-items: center; overflow: hidden; min-height: min(840px, calc(100svh - 78px)); padding-block: 64px; }
.food-bg { position: absolute; inset: 0 0 0 32%; z-index: -1; }
.food-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg), transparent 34%), linear-gradient(0deg, #3a1d1266, transparent 45%); }
.hero-food-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 40px; align-items: end; }
.hero-food .intro-copy { padding: 44px; border-radius: 32px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 40px 80px -40px #3a1d1288; max-width: 640px; }
.hero-food .intro-description { margin-bottom: 26px; }
[data-theme="alimentos"] .highlight { color: var(--accent-ink); }
.food-side { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.food-blob { width: clamp(180px, 20vw, 290px); aspect-ratio: 1; overflow: hidden; border: 8px solid var(--surface); border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; box-shadow: 0 30px 60px -20px #3a1d1299; }
.food-blob img { width: 100%; height: 100%; }
.food-word { font: 700 clamp(46px, 6vw, 96px)/1 Sora, sans-serif; letter-spacing: -.05em; color: #fff; text-shadow: 0 4px 30px #0008; text-align: right; }

/* =========================================================
   FORMACIÓN · personas, centro de atención y trazo a mano
   ========================================================= */
.hero-learning { padding-block: 72px 88px; text-align: center; }
.hero-learning .intro-copy { max-width: 900px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.hero-learning .intro-description { margin-inline: auto; }
.hero-learning .hero-actions { justify-content: center; }
[data-theme="formacion"] .highlight { color: var(--accent-ink); display: inline-block; }
[data-theme="formacion"] .scribble { display: block; position: absolute; left: 0; bottom: -.1em; width: 100%; height: .3em; overflow: visible; }
.scribble path { fill: none; stroke: var(--accent-2); stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; }
.learning-strip { position: relative; display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 20px; margin-top: 56px; align-items: end; }
.learning-strip::before, .learning-strip::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; }
.learning-strip::before { width: 170px; aspect-ratio: 1; background: var(--accent-2); left: 4%; top: -50px; }
.learning-strip::after { width: 120px; aspect-ratio: 1; background: var(--accent); right: 6%; bottom: -40px; }
.learning-strip figure { overflow: hidden; height: 300px; border-radius: 32px; }
.learning-strip figure:first-child { order: 2; height: 400px; }
.learning-strip figure:nth-child(3) { order: 3; }
.learning-strip img { width: 100%; height: 100%; }

/* =========================================================
   Bloque de contexto (imagen + texto)
   ========================================================= */
.image-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 96px; }
.story-visual { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: end; min-width: 0; }
.story-visual figure { min-width: 0; }
.story-visual img { width: 100%; border-radius: var(--story-radius, 18px); }
.story-visual figure:first-child img { height: 400px; }
.story-visual figure:last-child:not(:first-child) img { height: 270px; }
.story-visual figcaption { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding-top: 10px; color: var(--muted); }
.story-copy h2 { margin-bottom: 18px; max-width: 18ch; }
.story-copy p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.image-story.text-only { grid-template-columns: 1fr; text-align: center; }
.image-story.text-only .story-copy { max-width: 760px; margin-inline: auto; }
.image-story.text-only h2 { margin-inline: auto; }
[data-theme="tecnologia"] .image-story { --story-radius: 8px; }
[data-theme="tecnologia"] .story-visual { order: 2; }
[data-theme="negocios"] .image-story { --story-radius: 2px; border-top: 2px solid var(--ink); }
[data-theme="digital"] .image-story { --story-radius: 24px; }
[data-theme="digital"] .story-visual figure:last-child { transform: rotate(4deg); }
[data-theme="alimentos"] .image-story { --story-radius: 32px; }
[data-theme="alimentos"] .story-visual figure:last-child img { aspect-ratio: 1; height: auto; border-radius: 50%; }
[data-theme="formacion"] .image-story { --story-radius: 28px; }

/* =========================================================
   Catálogo: piezas compartidas
   ========================================================= */
.catalog { padding-bottom: 96px; }
.catalog > .section-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: 12px 40px; align-items: end; padding: 56px 0 40px; border-top: 1px solid var(--line); }
.catalog > .section-heading .eyebrow { grid-column: 1 / -1; margin: 0; }
.catalog > .section-heading h2 { max-width: 24ch; }
.catalog > .section-heading > p:last-child { color: var(--muted); }
.catalog-group { padding-block: 40px; border-top: 1px solid var(--line); }
.catalog-group[id] { scroll-margin-top: 100px; }
.catalog-group-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 28px; }
.catalog-group-heading .eyebrow { margin-bottom: 8px; }
.catalog-group-heading > p { color: var(--muted); max-width: 48ch; }
.group-title { font-size: clamp(24px, 2.2vw, 32px); }
.group-index { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-right: 14px; border-radius: 50%; background: var(--accent); color: var(--btn-ink); font-size: 14px; vertical-align: middle; }
[data-theme="alimentos"] .group-index { background: var(--accent-ink); color: #fff; }
[data-theme="formacion"] .group-index { background: var(--accent-ink); color: #fff; }
[data-theme="digital"] .group-index { background: var(--btn-bg); color: #fff; }
.group-items { display: grid; gap: 20px; }

.catalog-card { position: relative; isolation: isolate; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--card-radius, 18px); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.catalog-card::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 60%); }
.catalog-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 26px 50px -26px var(--glow); }
.catalog-card:hover::before { opacity: 1; }
.catalog-card:focus-within { border-color: var(--accent-ink); }
.card-image { position: relative; overflow: hidden; }
.card-image img { width: 100%; height: 220px; transition: transform .8s var(--ease); }
.catalog-card:hover .card-image img { transform: scale(1.06); }
.card-image img.is-zoomed { transform: scale(var(--zoom)); }
.catalog-card:hover .card-image img.is-zoomed { transform: scale(calc(var(--zoom) * 1.04)); }
.card-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 20px 22px 6px; }
.item-type { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.card-copy h3 { margin-bottom: 10px; }
.card-copy > p:not(.item-type) { font-size: 15px; line-height: 1.6; color: var(--muted); margin-bottom: 12px; }
.card-action { width: 100%; justify-content: space-between; margin-top: auto; min-height: 52px; border-top: 1px solid var(--line); }
.card-action::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.catalog-card:hover .card-action .icon { transform: translate(3px, -3px); }

/* Tecnología: equipos comparables y filas de servicio */
[data-theme="tecnologia"] .catalog-card { --card-radius: 10px; background: linear-gradient(160deg, #13303a, var(--surface)); }
.tecnologia-catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tecnologia-catalog .card-image { margin: 12px 12px 0; border-radius: 6px; }
.tecnologia-catalog .card-image img { height: 180px; }
.service-list { grid-template-columns: 1fr; gap: 14px; }
.service-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: stretch; }
.service-row .card-image { min-height: 120px; }
.service-row .card-image img { position: absolute; inset: 0; height: 100%; }
.service-row .card-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 32px; align-items: center; padding: 22px 26px; }
.service-row .item-type { grid-column: 1; margin: 0; }
.service-row h3 { grid-column: 1; margin: 0; font-size: 21px; }
.service-row .card-copy > p:not(.item-type) { grid-column: 1; margin: 0; }
.service-row .card-action { grid-column: 2; grid-row: 1 / span 3; width: auto; border: 0; gap: 10px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); }
.service-row:hover .card-action { border-color: var(--accent); color: var(--accent-ink); }
.future-note { margin: 0; padding-top: 40px; border-top: 1px dashed var(--line); }

/* Negocios: tarjetas editoriales */
[data-theme="negocios"] .catalog-card { --card-radius: 2px; background: transparent; border: 0; border-top: 3px solid var(--ink); }
[data-theme="negocios"] .catalog-card:hover { border-color: var(--accent); box-shadow: none; }
.negocios-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.negocios-catalog.business-education { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.negocios-catalog .card-image { margin-top: 18px; }
.negocios-catalog .card-image img { height: 210px; filter: grayscale(.25); }
.negocios-catalog .catalog-card:hover .card-image img { filter: none; }
.negocios-catalog .card-copy { padding: 18px 0 0; }
.negocios-catalog .card-context { font-size: 14px !important; border-left: 3px solid var(--accent); padding-left: 12px; }

/* Digital: pieza destacada y parejas */
[data-theme="digital"] .catalog-card { --card-radius: 26px; }
[data-theme="digital"] .catalog-card:hover { border-color: transparent; box-shadow: 0 0 0 2px var(--accent), 0 30px 60px -28px var(--accent-2); }
.digital-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.digital-catalog .card-image { margin: 12px 12px 0; border-radius: 18px; }
.digital-catalog .card-image img { height: 230px; }
.digital-catalog.has-feature .catalog-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
.digital-catalog.has-feature .catalog-card:first-child .card-image { margin: 12px 0 12px 12px; min-height: 320px; }
.digital-catalog.has-feature .catalog-card:first-child .card-image img { position: absolute; inset: 0; height: 100%; }
.digital-catalog.has-feature .catalog-card:first-child .card-copy { padding: 36px; }
.digital-catalog.has-feature .catalog-card:first-child h3 { font-size: 34px; }

/* Alimentos: escala variable y esquinas suaves */
[data-theme="alimentos"] .catalog-card { --card-radius: 30px; }
.alimentos-catalog { grid-template-columns: 1.3fr 1fr 1fr; }
.alimentos-catalog .card-image img { height: 250px; }
.alimentos-catalog .catalog-card:first-child .card-image img { height: 300px; }
.alimentos-catalog h3 { font-size: 26px; }

/* Formación: bloques de habilidades */
[data-theme="formacion"] .catalog-card { --card-radius: 24px; border-top: 6px solid var(--accent); }
[data-theme="formacion"] .catalog-card:nth-child(2) { border-top-color: var(--accent-2); }
.formacion-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.formacion-catalog .card-image img { height: 230px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1099px) {
  .hero-home, .hero-split { gap: 36px; }
  .hero-home { min-height: 0; padding-block: 40px 56px; }
  .home-arch { height: 420px; }
  .home-tech { left: -12px; }
  .home-inset { right: -8px; }
  .home-ring::after, .spec-chips { display: none; }
  .hero-tech, .hero-digital, .hero-food { min-height: 0; }
  .tech-frame { height: 400px; }
  .tech-visual { padding-left: 24px; }
  .business-grid { grid-template-columns: 1fr 1fr; }
  .business-photos { grid-column: 1 / -1; }
  .business-photo { height: 340px; }
  .business-inset { right: 0; width: 34%; }
  .digital-stack { height: 440px; }
  .hero-food-layout { grid-template-columns: 1fr; }
  .food-bg { inset: 0; }
  .food-bg::after { background: linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 40%, transparent) 50%, transparent 80%); }
  .food-side { display: none; }
  .hero-food { padding-top: 260px; }
  .area-bento { grid-auto-rows: 220px; }
  .area-tile.tile-1 { grid-column: 1 / -1; grid-row: span 2; }
  .area-tile, .area-tile.tile-2, .area-tile.tile-3 { grid-column: span 3; }
  .area-tile.tile-5 { grid-column: 1 / -1; }
  .image-story { gap: 36px; padding-block: 72px; }
  .story-visual { grid-template-columns: 1fr; }
  .story-visual figure:not(:first-child) { display: none; }
  .tecnologia-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .negocios-catalog, .formacion-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alimentos-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alimentos-catalog .catalog-card:first-child { grid-column: 1 / -1; }
  .service-row .card-copy { grid-template-columns: 1fr; }
  .service-row .card-action { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
}
@media (max-width: 700px) {
  .hero-home { grid-template-columns: 1fr; padding-block: 28px 40px; gap: 28px; }
  .hero-home h1 { font-size: clamp(36px, 10vw, 50px); }
  .home-visual { padding-bottom: 48px; }
  .home-arch { height: 320px; border-radius: 160px 160px 18px 18px; }
  .home-tech { left: 0; width: 46%; border-width: 6px; }
  .home-tech img { height: 100px; }
  .home-inset { right: 0; bottom: 18px; width: 36%; }
  .home-inset figcaption { display: none; }
  .home-ring { width: 90px; right: -10px; }
  .intro-description { font-size: 16px; margin: 16px 0 22px; }
  .hero-actions { gap: 10px 18px; }
  .hero-actions .button { padding: 12px 18px; font-size: 13px; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-tech, .hero-digital { padding-block: 32px 56px; }
  .tech-visual { padding: 0 0 56px 12px; }
  .tech-frame { height: 260px; }
  .tech-float img { height: 110px; }
  .hero-business { padding-block: 32px 48px; }
  .business-head h1 { font-size: clamp(40px, 11vw, 56px); }
  .rule { margin: 26px 0; }
  .business-grid { grid-template-columns: 1fr; gap: 32px; }
  .business-photo { height: 240px; }
  .business-inset img { height: 100px; }
  .business-copy .intro-description { font-size: 18px; }
  .digital-stack { height: 330px; }
  .stack-a { inset: 34px 36px 44px 20px; }
  .outline-word { font-size: 72px; }
  .hero-food { padding-top: 220px; padding-bottom: 32px; }
  .hero-food .intro-copy { padding: 26px 22px; border-radius: 24px; }
  .hero-learning { padding-block: 36px 48px; }
  .learning-strip { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
  .learning-strip figure, .learning-strip figure:first-child { height: 180px; border-radius: 22px; }
  .learning-strip figure:first-child { order: 0; grid-column: 1 / -1; height: 230px; }
  .learning-strip::before { width: 100px; top: -30px; }
  .ticker { padding: 13px 0; }
  .area-index { padding-block: 56px 64px; }
  .area-index .section-heading { grid-template-columns: 1fr; }
  .area-bento { grid-template-columns: 1fr; grid-auto-rows: 210px; gap: 12px; }
  .area-tile, .area-tile.tile-1, .area-tile.tile-2, .area-tile.tile-3, .area-tile.tile-5 { grid-column: auto; grid-row: auto; padding: 20px; }
  .tile-arrow { width: 44px; height: 44px; }
  .steps { grid-template-columns: 1fr; margin-top: 36px; }
  .image-story { grid-template-columns: 1fr; gap: 24px; padding-block: 56px; }
  [data-theme="tecnologia"] .story-visual { order: 0; }
  .story-visual figure:first-child img { height: 240px; }
  .catalog { padding-bottom: 64px; }
  .catalog > .section-heading { grid-template-columns: 1fr; padding: 40px 0 28px; }
  .catalog-group { padding-block: 28px; }
  .catalog-group-heading { grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
  .tecnologia-catalog, .negocios-catalog, .negocios-catalog.business-education, .digital-catalog, .alimentos-catalog, .formacion-catalog { grid-template-columns: 1fr; }
  .alimentos-catalog .catalog-card:first-child { grid-column: auto; }
  .card-image img, .alimentos-catalog .catalog-card:first-child .card-image img { height: 200px; }
  .service-row { grid-template-columns: 96px minmax(0, 1fr); }
  .service-row .card-copy { padding: 16px; }
  .service-row h3 { font-size: 19px; }
  .digital-catalog.has-feature .catalog-card:first-child { display: flex; grid-column: auto; }
  .digital-catalog.has-feature .catalog-card:first-child .card-image { margin: 12px 12px 0; min-height: 0; }
  .digital-catalog.has-feature .catalog-card:first-child .card-image img { position: static; height: 210px; }
  .digital-catalog.has-feature .catalog-card:first-child .card-copy { padding: 20px 22px 6px; }
  .digital-catalog.has-feature .catalog-card:first-child h3 { font-size: 26px; }
}
@media (max-width: 359px) {
  .hero-actions .button { width: 100%; }
  .service-row { grid-template-columns: 1fr; }
  .service-row .card-image img { height: 150px; }
}
