/* Loaded after the design kit so the dealt palette and fonts win. */
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-ext.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root {
  --p-bg: #ecebe7; --p-surface: #e1dfd9; --p-ink: #38450f; --p-muted: #5a6537;
  --p-accent: #38450f; --p-accent-ink: #ecebe7; --p-action: #38450f; --p-action-ink: #ecebe7;
  --p-inv-bg: #38450f; --p-inv-surface: #435020; --p-inv-ink: #ecebe7; --p-inv-muted: #bbbfaf;
  --p-inv-accent: #ecebe7; --p-inv-accent-ink: #38450f; --p-inv-action: #ecebe7; --p-inv-action-ink: #38450f;
  --font-display: "Figtree", system-ui, sans-serif;
  --font-text: "Figtree", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.025em;
  --display-tracking-xl: -0.035em;
}
/* Page layout and project captures. The kit remains untouched. */
html { scroll-behavior: auto; }
.hero--split .hero__grid { width: 100%; min-width: 0; }
.hero--split .hero__text { align-self: stretch; min-width: 0; }
.hero--split .hero__grid > .hero__text { grid-column: 1 / span 5; }
.hero--split .hero__grid > .hero__media { grid-column: 7 / span 6; }
.hero--split h1 { font-size: clamp(38px, 4.16vw, 60px); overflow-wrap: normal; }
.hero--split .hero__media { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid var(--line); }
.hero--split .hero__media::before { content: "●  ●  ●"; position: absolute; inset: 0 0 auto; height: 36px; z-index: 1; padding: 8px 14px; box-sizing: border-box; border-bottom: 1px solid var(--line); background: var(--p-surface); color: var(--p-muted); font-size: 11px; letter-spacing: 2px; }
.hero--split .hero__media::after { content: "clubzapateo.com"; position: absolute; top: 10px; left: 50%; z-index: 2; transform: translateX(-50%); color: var(--p-muted); font-size: 12px; }
.hero--split .hero__media > img { top: 36px; bottom: 0; width: 100%; height: calc(100% - 36px); object-fit: cover; object-position: center top; }
.hero--split .ly-float { width: min(300px, calc(100% - 2 * var(--s-5))); }

.rows .rows__name small { display: block; margin-top: 8px; color: var(--p-ink); font-size: var(--t-body); font-weight: 400; line-height: 1.45; }
#servicios > .wrap { height: 100%; align-content: stretch; align-items: stretch; }
#servicios > .wrap > * { min-height: 0; }
.service-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.service-rows .rows__value { max-width: 135px; color: var(--p-ink); font-size: var(--t-small); text-align: right; white-space: normal; }
#servicios .rows { margin-bottom: 0; }
#servicios .rows li { padding-block: 13px; }
.service-visual .frame { width: 100%; height: 100%; min-height: 0; overflow: hidden; border-radius: var(--r-lg); background: #f5e7dc; }
.service-visual img { width: 100%; height: 100%; object-fit: contain; object-position: center top; }

.project-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; color: inherit; text-decoration: none; }
.project-card__media { height: 245px; min-height: 0; background: var(--p-surface); overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; transition: transform .25s ease; }
a.project-card:hover .project-card__media img { transform: scale(1.025); }
a.project-card:focus-visible { outline: 3px solid var(--action); outline-offset: 4px; box-shadow: 0 0 0 6px var(--bg); }
.project-card__body { padding: 24px; color: var(--p-ink); }
.project-card__body h3 { margin-bottom: 10px; }
.project-card__body p { color: var(--p-ink); font-size: var(--t-body); line-height: 1.45; }
.project-card__link { display: inline-block; margin-top: 16px; }
.work-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px 24px; }
.work-item { display: block; grid-column: span 2; color: var(--p-ink); text-decoration: none; min-width: 0; }
.work-item:nth-child(4) { grid-column: 1 / span 3; }
.work-item:nth-child(5) { grid-column: 4 / span 3; }
@media (min-width: 640px) { .work-item:nth-child(n+4) .work-item__frame { aspect-ratio: 2.95 / 1; } }
.work-item__frame { position: relative; aspect-ratio: 1.9 / 1; overflow: hidden; background: var(--p-surface); border-radius: var(--r-md); }
.work-item__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: inherit; }
.work-item__label { padding-top: 12px; }
.work-item__label h3 { margin: 0 0 2px; font-size: 19px; }
.work-item__label p { margin: 0; font-size: 14px; line-height: 1.3; }
.work-item:focus-visible { outline: 3px solid var(--p-action); outline-offset: 4px; border-radius: var(--r-md); }
.work-item:hover .work-item__frame { transform: translateY(-2px); }
.work-item:hover .work-item__frame img { transform: scale(1.025); }
.work-item__frame img { transition: transform .3s ease; }
.project-card__fallback { position: relative; height: 100%; min-height: 245px; padding: 32px; display: flex; align-items: flex-end; background: var(--p-surface); font-size: var(--t-h2); overflow: hidden; }
.fallback-grid { position: absolute; inset: 24px; opacity: .15; background-image: linear-gradient(var(--p-ink) 1px,transparent 1px),linear-gradient(90deg,var(--p-ink) 1px,transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, black, transparent); }

.product-capture { flex: none; margin: 0 0 24px; height: min(500px,56vh); overflow: hidden; border-radius: var(--r-lg); }
.product-capture img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.product-grid { display: grid; flex: none; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.product-grid .project-card__media { flex: none; height: 240px; }
.product-grid .project-card__body { flex: 1; }
.product-grid .project-card { background: var(--p-bg); }
.stack-line { margin: 16px 0 0; font-size: var(--t-small); color: var(--p-ink); }
.products-section .btn-row { flex: none; margin-top: auto; }
.products-section .group { display: contents; }

.tools-grid, .about-grid { flex: 1 1 auto; min-height: 0; align-items: stretch; }
.tools-grid > *, .about-grid > * { min-height: 0; }
.tools-grid .rows { margin: 0; }
.tools-visual { display: flex; }
@media (min-width: 1024px) { .tools-grid > .span-6:first-child { display: flex; flex-direction: column; } .tools-grid .rows { flex: 1; display: flex; flex-direction: column; justify-content: space-between; } .tools-visual { align-items: flex-start; } .tools-visual > .diagram-panel { flex: 1; height: auto; aspect-ratio: 1.3 / 1; min-height: 0; } }
.diagram-panel { flex: 1; position: relative; min-height: 360px; }
.diagram-panel > .dg { --dg-w: 3px; --dg-line: color-mix(in oklab, var(--dg-ink) 45%, transparent); }

.about-links { display: flex; gap: 24px; margin-top: 32px; }
.about-visual { display: flex; }
.tech-wall { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 48px 24px; margin: 0; padding: 0; list-style: none; }
.tech-wall li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; font-size: var(--t-small); color: var(--p-ink); }
.tech-wall img { width: 64px; height: 64px; }

.closing__cta.close--type { display: flex; flex-direction: column; align-items: flex-start; }
.closing__cta.close--type .section-head { margin-bottom: 24px; }
.closing__cta.close--type > .btn--xl { width: min(50%, 640px); }
.footer__lede + .link { margin-top: 12px; }

@media (min-width: 640px) and (max-width: 1023px) {
  #servicios > .wrap > .span-5 { display: flex; flex-direction: column; }
  #servicios .service-rows { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
  /* Productos en dos pantallas: el encabezado y la captura, después las dos tarjetas y el botón */
  #productos > .wrap { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); row-gap: calc(var(--padt) + var(--padb) + var(--bar)); }
  #productos .group { display: flex; flex-direction: column; min-height: 0; }
  #productos .product-capture { flex: 1; height: auto; min-height: 0; margin: 0; }
  #productos .product-grid { flex: 1; }
  .tools-grid, .about-grid { display: flex; flex-direction: column; gap: 48px; }
  .tools-grid > .tools-visual, .about-grid > .about-visual { flex: 1; }
  .tech-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; align-content: space-evenly; }
  .tech-wall img { width: 56px; height: 56px; }
  .closing__cta.close--type > .btn--xl { height: var(--btn-h); font: 500 16px/1 var(--font-text); letter-spacing: 0; }
  .products-section .btn-row { margin-top: 32px; }
  .work-grid .work-item, .work-grid .work-item:nth-child(4) { grid-column: auto / span 3; }
  .work-grid .work-item:nth-child(5) { grid-column: 1 / -1; }
  .work-grid .work-item .work-item__frame, .work-grid .work-item:nth-child(4) .work-item__frame { aspect-ratio: 2.1 / 1; }
  .work-grid .work-item:nth-child(5) .work-item__frame { aspect-ratio: 4 / 1; }
  @media (min-width: 800px) { .work-grid .work-item:nth-child(5) .work-item__frame { aspect-ratio: 3 / 1; } }
  .tools-grid, .about-grid { flex: 1 1 auto; }
  .closing__links .grid > .span-4 { grid-column: 1 / -1; }
  .closing__links .grid > .footer__col { grid-column: auto / span 4; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1023px) {
  /* Servicios en dos pantallas (la lista, después la captura), como un .g2 del kit */
  #servicios { --h: 2; --hm: 2; }
  #servicios > .wrap { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); row-gap: calc(var(--padt) + var(--padb) + var(--bar)); align-content: stretch; }
  #servicios .service-visual .frame { height: calc(100svh - var(--padt) - var(--padb) - var(--bar)); min-height: 0; margin-top: 0; }
  .hero--split .hero__media { width: 100%; max-width: 100%; min-width: 0; }
  .service-visual .frame { height: 460px; }
}
@media (max-width: 639px) {
  .nav .nav__bar { gap: 4px; }
  .nav:not(.is-open) .nav__actions { margin-left: auto; }
  .nav:not(.is-open) .nav__actions .btn { padding-inline: 8px; }
  .nav .nav__name { display: none; }
  .nav .nav__logo { flex: none; }
  .hero--split .hero__grid { max-width: 100%; }
  .hero--split .hero__text { width: 100%; }
  .hero--split h1 { font-size: clamp(36px, 10vw, 40px); overflow-wrap: anywhere; }
  .hero--split .hero__media { flex: 1 1 0; height: auto; min-height: 220px; max-width: 100%; }
  .hero--split .hero__media > img { object-position: center top; }
  #trabajos { --hm: 2; }
  #servicios > .wrap { display: flex; flex-direction: column; row-gap: 0; }
  #servicios .service-visual { flex: 1; display: flex; margin-top: 48px; min-height: 360px; }
  #servicios .service-visual .frame { position: relative; flex: 1; height: auto; }
  #servicios .service-visual img { position: absolute; inset: 0; }
  .tech-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .work-grid .work-item__frame, .work-grid .work-item:nth-child(n) .work-item__frame { aspect-ratio: 1.75 / 1; }
  .work-grid, .product-grid { display: grid; flex: none; grid-template-columns: minmax(0,1fr); grid-template-rows: auto; gap: 12px; }
  .work-item, .work-item:nth-child(4), .work-item:nth-child(5) { grid-column: auto; }
  .service-rows li { display: block; }
  .service-rows .rows__value { display: block; max-width: none; margin-top: 8px; text-align: left; }
  .product-capture { height: 270px; }
  .product-grid .project-card__media { height: 220px; }
  .tools-grid, .about-grid { flex: none; }
  .tech-wall { gap: 14px 12px; margin-top: 20px; }
  .tech-wall li { gap: 6px; }
  .tech-wall img { width: 36px; height: 36px; }
  .diagram-panel { width: 100%; height: 200px; min-height: 0; flex: none; --p-h: 200px; }
  .closing__cta.close--type .section-head { margin-bottom: 12px; }
  #herramientas .rows li { padding-block: 12px; }
  .closing__links .grid > .footer__col { grid-column: auto / span 4; }
  .closing__links .footer__col h4 { margin-bottom: 8px; }
  .closing__links .footer__col li { font-size: var(--t-small); }
  .footer__legal { font-size: 12px; gap: 4px; }
  .closing__cta.close--type > .btn--xl { width: 100%; }
  .about-links { flex-direction: column; gap: 12px; }
}
