
:root {
  --ink: #2c251e;
  --muted: #5e5146;
  --paper: #fcf7ee;
  --ivory: #fffaf2;
  --cream: #f1dcc5;
  --burgundy: #4b1918;
  --red: #a63b25;
  --clay: #b7472a;
  --olive: #465146;
  --line: #d9c7b5;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 79rem;
  --gutter: clamp(1.15rem, 4.8vw, 4.65rem);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 1rem; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 400; }
h1, h2 { font-family: var(--display); line-height: 1.045; letter-spacing: -.047em; text-wrap: pretty; }
h1 { font-size: clamp(2.7rem, 7.8vw, 4.95rem); }
h2 { font-size: clamp(2.5rem, 6.1vw, 4.25rem); }
h1 em, h2 em { color: var(--red); font-weight: inherit; }
p { max-width: 62ch; }
[id] { scroll-margin-top: 6rem; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(4.3rem, 8vw, 8rem); }
.eyebrow { display: flex; align-items: center; gap: .63rem; margin-bottom: 1rem; font-size: .72rem; font-weight: 730; line-height: 1.4; text-transform: uppercase; letter-spacing: .15em; }
.signal { width: .49rem; height: .49rem; flex-shrink: 0; border-radius: 50%; background: var(--clay); }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: .72rem; width: fit-content; min-height: 2.75rem; font-size: .88rem; font-weight: 680; line-height: 1.25; }
.button { padding: .83rem 1.19rem; border: 1px solid transparent; border-radius: .28rem; background: var(--burgundy); color: var(--ivory); transition: background .18s ease, color .18s ease; }
.button:hover { background: var(--red); }
.button span, .text-link span { font-size: 1.06rem; line-height: 1; }
.text-link { border-bottom: 1px solid currentColor; }
.text-link:hover { color: var(--red); }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 10; padding: .7rem 1rem; background: var(--ivory); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { position: relative; display: flex; align-items: center; gap: .75rem; min-height: 4.45rem; }
.wordmark { color: var(--burgundy); font-family: var(--display); font-size: clamp(1.38rem, 4.8vw, 2.04rem); font-weight: 700; line-height: 1; letter-spacing: -.075em; white-space: nowrap; }
.wordmark span { color: var(--clay); }
.wordmark img { width: auto; height: 2.1rem; max-width: 9rem; object-fit: contain; }
.header-cta { margin-left: auto; gap: .3rem; padding-inline: .62rem; font-size: clamp(.68rem, 2.5vw, .82rem); white-space: nowrap; }
.header-cta span { display: none; }
.menu-toggle { display: flex; align-items: center; gap: .35rem; order: 2; min-height: 2.75rem; padding: 0 .15rem 0 .25rem; border: none; background: none; color: var(--burgundy); font-size: .82rem; font-weight: 700; }
.menu-toggle span { font-size: 1.05rem; line-height: 1; }
.menu-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.nav { display: none; position: absolute; top: 100%; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); background: var(--paper); padding: .55rem var(--gutter) 1rem; border-bottom: 1px solid var(--line); box-shadow: 0 14px 28px #4b19181a; }
.nav.open { display: grid; }
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .87rem; font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--red); }

.hero { overflow: hidden; padding-block: clamp(2.95rem, 6.4vw, 6rem) clamp(2.75rem, 5.4vw, 4.8rem); }
.hero-layout { display: grid; align-items: center; gap: clamp(2rem, 4vw, 4rem); }
.hero-copy { max-width: 60rem; }
.hero-copy .eyebrow { color: var(--burgundy); margin-bottom: 1.28rem; }
.hero h1 { color: var(--burgundy); }
.hero h1 em { display: block; }
.hero-description { max-width: 62ch; margin-top: clamp(1.35rem, 3vw, 1.85rem); color: var(--muted); font-size: clamp(1rem, 1.58vw, 1.15rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.25rem; margin-top: 1.55rem; }
.hero-actions .text-link { color: var(--burgundy); }
.hero-actions .text-link:hover { color: var(--red); }
.editorial-photo { width: 100%; height: auto; border-radius: .45rem; }

.needs { background: var(--burgundy); color: var(--ivory); padding-block: clamp(3.5rem, 6vw, 6rem); }
.needs-layout, .process-layout, .faq-layout { display: grid; gap: 2rem; }
.needs .eyebrow, .needs h2 em { color: #edb68f; }
.needs h2 + p { margin-top: 1.1rem; color: #f2dbc9; }
.needs-list { border-top: 1px solid #f6d3ad59; }
.needs-list a { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; min-height: 3.6rem; padding: .72rem .1rem; border-bottom: 1px solid #f6d3ad59; line-height: 1.42; transition: color .16s, padding .16s; }
.needs-list a:hover { color: #ffd0a4; padding-inline: .5rem; }
.needs-list span { color: #edb68f; }

.split { display: grid; gap: 1.05rem; }
.section-intro { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-intro > p { color: var(--muted); }
.solutions .eyebrow, .projects .eyebrow, .team .eyebrow { color: var(--red); }
.cards { display: grid; gap: .8rem; }
.service { position: relative; min-width: 0; padding: clamp(1.45rem, 2.7vw, 2.15rem); border: 1px solid var(--line); border-radius: .38rem; background: var(--ivory); transition: border-color .2s, background .2s; }
.service:target { border-color: var(--red); background: #f7e7d8; }
.service h3 { margin: 1.1rem 0 .52rem; color: var(--burgundy); font: 400 clamp(1.42rem, 2.35vw, 1.76rem)/1.12 var(--display); letter-spacing: -.032em; }
.service p { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.service-shape { position: relative; display: block; width: 2rem; height: 2rem; color: var(--red); }
.service:nth-child(3n) .service-shape, .service:nth-child(4n) .service-shape { color: var(--olive); }
.shape-identity { border: 1px solid; border-radius: 50% 50% 47% 47%; box-shadow: inset 0 0 0 4px var(--ivory), inset 0 0 0 5px currentColor; }
.shape-web { border: 1px solid; border-radius: .27rem; }
.shape-web::before { content:""; position: absolute; left: 0; right: 0; top: 26%; border-top: 1px solid; }
.shape-web::after { content:""; position: absolute; width: 35%; height: 34%; left: 20%; top: 44%; border: 1px solid; }
.shape-systems { background: repeating-linear-gradient(0deg, currentColor 0 1px, transparent 1px 9px); border: 1px solid; border-radius: .27rem; }
.shape-systems::before { position: absolute; content: ""; inset: 0 33%; border-inline: 1px solid; }
.shape-flow::before, .shape-flow::after { content: ""; position: absolute; width: 1.45rem; height: .82rem; border: 1px solid; border-radius: 1rem; transform: rotate(-45deg); }
.shape-flow::before { top: .23rem; right: -.1rem; }
.shape-flow::after { bottom: .23rem; left: -.1rem; }
.shape-ai::before { content: "✧"; position: absolute; font-size: 2.65rem; line-height: .75; }
.shape-strategy { border: 1px solid; border-radius: 50%; }
.shape-strategy::after { content: "↗"; position: absolute; inset: 0; display: grid; place-items: center; line-height: 1; font-size: 1.35rem; }

.process { background: var(--olive); color: var(--ivory); }
.process h2 em, .process .eyebrow { color: #f2c9a5; }
.process h2 + p { margin-block: 1.1rem 1rem; color: #fcf0e0; }
.process .text-link:hover { color: #f2c9a5; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; border-top: 1px solid #f1dcc55f; }
.steps li { display: grid; grid-template-columns: 2.15rem 1fr; column-gap: .5rem; padding-block: .9rem; border-bottom: 1px solid #f1dcc55f; counter-increment: step; }
.steps li::before { grid-row: span 2; content: counter(step, decimal-leading-zero); color: #f2c9a5; font-size: .72rem; margin-top: .3rem; }
.steps h3 { font: 400 1.58rem/1.15 var(--display); }
.steps p { color: #f8ebdc; font-size: .88rem; margin-top: .25rem; }

.meaning { padding-block: clamp(3.4rem, 7vw, 6.6rem); background: var(--cream); }
.meaning-layout { display: grid; align-items: center; gap: clamp(1.9rem, 5.3vw, 6rem); }
.meaning .eyebrow { color: var(--burgundy); }
.meaning h2 + p { margin-top: 1.15rem; color: var(--muted); }

.project-card { display: grid; border: 1px solid var(--line); border-radius: .42rem; overflow: hidden; background: var(--ivory); }
.project-card + .project-card { margin-top: 1rem; }
.project-visual { min-height: 15rem; display: grid; place-items: center; padding: 1.3rem; overflow: hidden; background: repeating-linear-gradient(122deg, #ffffff1c 0 1px, transparent 1px 8px), #d19a6a; }
.project-visual:has(img) { padding: 0; }
.project-visual img { width: 100%; height: 100%; object-fit: cover; }
.menu-sample { position: relative; isolation: isolate; width: min(67%, 15rem); aspect-ratio: .84; align-content: center; padding: 1.15rem; color: var(--ivory); background: var(--burgundy); border: 1px solid #f2dbba55; box-shadow: 1rem 1rem 0 #465146, 1rem 1rem 2.15rem #4b19185e; transform: rotate(-7deg); overflow: hidden; }
.menu-sample span { position: relative; display: block; margin-bottom: .63rem; font-size: .52rem; letter-spacing: .12em; }
.menu-sample strong { position: relative; font: 400 clamp(1.65rem, 4vw, 3rem)/.87 var(--display); letter-spacing: -.04em; }
.menu-sample strong em { color: #f5c79a; }
.menu-sample i { position: absolute; z-index: -1; width: 97%; height: 58%; bottom: -22%; right: -19%; background: repeating-linear-gradient(0deg, #f3cf915e 0 1px, transparent 1px 4px), var(--clay); border-radius: 50%; transform: rotate(-25deg); }
.project-copy { padding: clamp(1.55rem, 4.5vw, 3.4rem); }
.project-copy h3 { font: 400 clamp(1.9rem, 4vw, 3.05rem)/1.03 var(--display); letter-spacing: -.045em; color: var(--burgundy); }
.project-copy .project-status { margin-bottom: .7rem; }
.project-sector { color: var(--muted); margin-block: .6rem 1.15rem; }
.project-copy dl { display: grid; gap: .65rem; font-size: .9rem; }
.project-copy dt { font-weight: 700; color: var(--burgundy); }
.project-copy dd { color: var(--muted); }
.project-copy .text-link { margin-top: .85rem; }

.team { background: #f2e5d6; }
.team-grid { display: grid; gap: .65rem; }
.team-member { padding: 1.3rem 1.45rem; border: 1px solid var(--line); border-top: 3px solid var(--clay); border-radius: .32rem; background: var(--paper); }
.team-member:nth-child(2) { border-top-color: var(--olive); }
.team-member:nth-child(3) { border-top-color: var(--burgundy); }
.team-member h3 { color: var(--burgundy); font: 400 1.85rem/1.16 var(--display); letter-spacing: -.04em; }
.team-member img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 1rem; border-radius: .25rem; }
.team-member p { margin-top: .38rem; }
.member-role { color: var(--red); font-size: .78rem; font-weight: 700; line-height: 1.5; }
.member-description { color: var(--muted); font-size: .95rem; }

.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .91rem; min-height: 3.15rem; cursor: pointer; font-size: .95rem; font-weight: 650; line-height: 1.42; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { flex: 0 0 1.5rem; text-align: center; content: "+"; color: var(--red); font-size: 1.3rem; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding: 0 2rem 1rem 0; color: var(--muted); font-size: .93rem; }

.contact { padding-block: clamp(3.65rem, 8vw, 8rem); background: var(--burgundy); color: var(--ivory); }
.contact-inner { max-width: 64rem; text-align: center; }
.contact .eyebrow { margin-inline: auto; justify-content: center; color: #edb68f; }
.contact h2 em { color: #f3be98; }
.contact-actions { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.contact .button { border-color: #f7d8bc8a; color: var(--ivory); }
.contact .button[href]:hover { background: var(--cream); color: var(--burgundy); }
.contact .button[aria-disabled="true"] { color: #f2cabc; border-style: dashed; cursor: default; }
.contact-note { margin: 1.1rem auto 0; font-size: .85rem; color: #f2cabc; }
.footer { padding-block: 1.2rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer .text-link { min-height: 2.25rem; font-size: .78rem; }

@media (min-width: 40rem) {
  .cards, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .meaning-layout { grid-template-columns: .8fr 1.2fr; }
}
@media (min-width: 48rem) {
  .hero h1 { font-size: clamp(3rem, 5.15vw, 4.9rem); }
  .needs-layout, .process-layout { grid-template-columns: .86fr 1.14fr; gap: clamp(2.1rem, 8vw, 8rem); }
  .faq-layout { grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 8vw, 8rem); }
  .split { grid-template-columns: 1.15fr .85fr; gap: 2.1rem; align-items: end; }
  .section-intro > p { padding-bottom: .1rem; }
  .project-card:has(.project-visual:not([hidden])) { grid-template-columns: 1fr 1fr; }
  .project-visual { min-height: 24rem; }
}
@media (min-width: 64rem) {
  .header-inner { min-height: 5.1rem; gap: 1.35rem; }
  .nav, .nav.open { position: static; display: flex; justify-content: center; flex: 1; gap: clamp(.85rem, 1.95vw, 2rem); padding: 0; border: 0; box-shadow: none; }
  .nav a { font-size: .82rem; }
  .menu-toggle { display: none; }
  .header-cta { padding-inline: .92rem; font-size: .8rem; }
  .header-cta span { display: inline; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-layout { grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); }
  .hero-photo { aspect-ratio: 1.08; object-fit: cover; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media (max-width: 22rem) {
  .header-inner { gap: .45rem; }
  .header-cta { padding-inline: .45rem; }
  .menu-toggle { gap: .25rem; padding-inline: .05rem; font-size: .74rem; }
  .hero h1 { font-size: 2.4rem; }
}

.demos { background: #f2e5d6; }
.demos .eyebrow { color: var(--red); }
.chat-ui { position: fixed; z-index: 9; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); }
.chat-toggle { float: right; cursor: pointer; border: 1px solid #f1dcc5a6; box-shadow: 0 5px 18px #4b19182d; border-radius: 1.75rem; padding: .55rem 1rem .55rem .75rem; }
.chat-icon { display: block; flex: none; width: 2.6rem; height: 2rem; background: url("mascota-identiza.webp") center / contain no-repeat; }
.chat-panel { clear: both; display: grid; grid-template-rows: auto auto minmax(4rem, 1fr) auto auto; width: min(calc(100vw - 2rem), 24rem); height: min(32rem, calc(100dvh - 5.6rem)); margin-bottom: .65rem; border: 1px solid var(--line); border-radius: .55rem; overflow: hidden; background: var(--ivory); box-shadow: 0 12px 44px #34221a34; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem .8rem .45rem 1rem; color: var(--ivory); background: var(--burgundy); }
.chat-head h2 { font: 680 .96rem/1.3 var(--body); letter-spacing: 0; }
.chat-close { width: 2.75rem; height: 2.75rem; border: 0; color: inherit; background: transparent; cursor: pointer; font-size: 1.45rem; }
.chat-status { padding: .6rem 1rem; color: var(--muted); background: #f2e5d6; font-size: .78rem; line-height: 1.35; }
.chat-messages { min-height: 0; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .5rem; }
.chat-message { align-self: start; max-width: 91%; padding: .56rem .68rem; border-radius: .62rem; background: #f2e5d6; font-size: .88rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message[data-role="user"] { align-self: end; color: var(--ivory); background: var(--olive); }
.chat-form { display: flex; gap: .4rem; padding: .45rem .8rem; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; width: 0; min-width: 0; min-height: 2.75rem; border: 1px solid var(--line); border-radius: .24rem; padding: .35rem .55rem; background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; }
.chat-form button { cursor: pointer; }
.chat-form button:disabled { opacity: .6; cursor: progress; }
.chat-foot { display: flex; flex-wrap: wrap; gap: .25rem .7rem; padding: .22rem .8rem .62rem; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.chat-foot a { color: var(--burgundy); text-decoration: underline; text-underline-offset: .13em; }
@media (min-width: 40rem) { .demos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* Navegación de páginas y catálogo */
.nav a[aria-current] { color: var(--red); text-decoration: underline; text-underline-offset: .4em; }
.hero-routes { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; margin-top: .92rem; font-size: .86rem; }
.hero-routes a { text-decoration: underline; text-underline-offset: .25em; padding-block: .4rem; }
.hero-routes a:hover { color: var(--red); }
.page-intro { padding-block: clamp(3rem, 7vw, 6.3rem) clamp(1.8rem, 3.5vw, 3rem); }
.page-intro .eyebrow { color: var(--red); }
.page-intro h1 { color: var(--burgundy); }
.page-description { margin-top: 1.25rem; color: var(--muted); font-size: 1.05rem; }
.process h1 em, .contact h1 em { color: #f3be98; }
.process h1 + p { margin-block: 1.1rem 1rem; color: #fcf0e0; }
.contact-intro { margin: 1.35rem auto 0; color: #f2dbc9; }
.contact { min-height: 61vh; display: grid; align-items: center; }
.catalog { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(.85rem, 2vw, 1.6rem); padding-bottom: clamp(3rem, 6vw, 6rem); }
.catalog-card { position: relative; isolation: isolate; aspect-ratio: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; border-radius: .5rem; border: 1px solid var(--line); background: var(--ivory); transition: box-shadow .18s, border-color .18s; }
.catalog-card:hover, .catalog-card:focus-within { border-color: var(--red); box-shadow: 0 6px 18px #4b19181a; }
.catalog-visual { position: relative; overflow: hidden; background: var(--olive); pointer-events: none; border-bottom: 1px solid var(--line); }
.catalog-visual iframe { position: absolute; top: 0; left: 0; width: 300%; height: 300%; border: 0; transform: scale(0.333333); transform-origin: top left; pointer-events: none; }
.catalog-copy { display: grid; align-content: start; gap: .43rem; padding: clamp(.8rem, 2.4vw, 1.45rem); }
.catalog-copy .eyebrow { margin: 0; color: var(--red); letter-spacing: .11em; font-size: .68rem; }
.catalog-copy h2 { font-size: clamp(1.27rem, 3.2vw, 2.15rem); line-height: 1.07; color: var(--burgundy); }
.catalog-copy > p:not(.eyebrow) { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.catalog-copy .button { justify-self: start; margin-top: .2rem; padding-block: .55rem; }
.catalog-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.demo-intro .text-link { margin-bottom: 1.42rem; }
.demo-intro .button { margin-top: 1rem; }
.demo-experiencia { margin-bottom: 5rem; }
.demo-experiencia iframe { display: block; width: 100%; height: min(79vh, 48rem); min-height: 25rem; border: 1px solid var(--line); border-radius: .45rem; }
body { padding-bottom: 4.45rem; }
.chat-ui { z-index: 4; }
.chat-panel { max-height: calc(100dvh - 10.2rem); }
body:has(.nav.open) .chat-ui { visibility: hidden; }
@media (min-width: 40rem) { .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 26rem) {
  .catalog-card { aspect-ratio: 1; }
  .catalog-copy > p:not(.eyebrow) { font-size: .79rem; }
}
.demo-page .chat-ui { right: auto; left: max(1rem, env(safe-area-inset-left)); }
.demo-page .chat-toggle { float: left; }
@media (max-width: 22rem) {
  .catalog-card { grid-template-rows: minmax(4.2rem, 1fr) auto; }
  .catalog-copy { gap: .36rem; }
}
