/* Hoopytech v2 — Encaje. Values are generated in tokens.css; usage rules: design-system/README.md. */
@import './fonts.css';
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{color-scheme:light;background:var(--fondo);color:var(--tinta);scroll-behavior:smooth;scroll-padding-top:96px}
html[data-theme="dark"]{color-scheme:dark}
body{font-family:var(--sans);font-size:var(--cuerpo);line-height:var(--cuerpo-line-height);font-weight:var(--cuerpo-weight);-webkit-font-smoothing:antialiased}
::selection{background:var(--tinta);color:var(--sobre-tinta)}
a{color:inherit;text-underline-offset:5px}a:hover{color:var(--tinta)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}
:focus-visible{outline:2px solid var(--tinta);outline-offset:4px}[hidden]{display:none!important}
img{display:block;max-width:100%;height:auto}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}
h1,h2,h3{color:var(--tinta);font-weight:700}p{color:var(--tinta-secundaria)}
.container,.nav-inner,.footer-inner{width:100%;max-width:1200px;margin-inline:auto}
.saltar{position:fixed;top:-100px;left:var(--space-4);z-index:1000;padding:var(--space-3);background:var(--superficie)}.saltar:focus{top:var(--space-3)}
.sr-only,.trampa{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.nav{position:sticky;top:0;z-index:100;background:var(--fondo);border-bottom:1px solid var(--linea);padding:var(--space-4) var(--space-12)}
.nav-inner{display:flex;gap:var(--space-6);align-items:center}.nav-logo{display:inline-flex;align-items:center;min-height:52px;padding-block:var(--space-3);flex-shrink:0}.nav-logo img,.footer-brand img{height:26px;width:auto}
.nav-menu{margin-left:auto}.nav-links{display:flex;list-style:none;gap:var(--space-6)}.nav-links a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;font-size:14px;color:var(--tinta-secundaria)}.nav-links a:hover{text-decoration:underline;color:var(--tinta)}
.nav-lang{display:flex;gap:var(--space-1);font-family:var(--mono);font-size:var(--etiqueta)}.nav-lang a{min-width:44px;min-height:44px;display:grid;place-items:center;text-decoration:none;border:1px solid transparent;border-radius:var(--radius-sm)}.nav-lang a[aria-current]{border-color:var(--linea);background:var(--superficie)}
.theme-toggle{min-width:44px;min-height:44px;border:1px solid var(--linea);border-radius:var(--radius-sm);background:transparent;color:var(--tinta);display:grid;place-items:center}.theme-toggle svg{width:18px;height:18px}
.nav-burger{display:none;min-width:44px;min-height:44px;background:transparent;border:1px solid var(--linea);border-radius:var(--radius-sm);align-items:center;justify-content:center;flex-direction:column;gap:5px}.nav-burger span{width:18px;height:1px;background:var(--tinta)}
.logo-placeholder{display:none;max-width:180px;font-family:var(--mono);font-size:13px;color:var(--tinta-tenue);border:1px dashed var(--linea);padding:var(--space-2);line-height:1.4;min-height:44px;align-items:center}
[data-theme="dark"] .brand-logo{display:none}[data-theme="dark"] .logo-placeholder{display:inline-flex}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);min-height:52px;padding:var(--space-3) var(--space-6);border:1px solid var(--tinta);border-radius:var(--radius-sm);font-weight:600;font-size:var(--cuerpo);line-height:1.4;text-decoration:none;text-align:center;background:transparent;color:var(--tinta);transition:background .15s,color .15s}
.btn-dark{background:var(--tinta);color:var(--sobre-tinta);border-color:var(--tinta)}.btn-dark:hover{background:var(--tinta);border-color:var(--tinta);color:var(--sobre-tinta)}
.btn-ghost:hover,.btn-claro:hover{background:var(--superficie);color:var(--tinta)}.nav-cta.btn{min-height:44px;font-size:14px;padding:var(--space-2) var(--space-4)}
.enlace-flecha{display:inline-flex;min-height:44px;align-items:center;gap:var(--space-2);text-decoration:underline;font-weight:600}.enlace-flecha::after{content:'→'}
.etiqueta,.card-eyebrow,.card-step,.footer-titulo,.tech-stack,.nota{font-family:var(--mono);font-size:var(--etiqueta);font-weight:400;line-height:var(--etiqueta-line-height);color:var(--tinta-tenue)}.etiqueta,.card-eyebrow{text-transform:lowercase;letter-spacing:0}.etiqueta{margin-bottom:var(--space-6)}
.cabecera{padding:var(--space-24) var(--space-12)}.cabecera h1{font-size:var(--display);line-height:var(--display-line-height);font-weight:var(--display-weight);letter-spacing:-.035em;margin-bottom:var(--space-8);max-width:22ch}
.cabecera-texto{font-size:var(--cuerpo-grande);line-height:var(--cuerpo-grande-line-height);max-width:57ch;margin-bottom:var(--space-8)}.acciones{display:flex;flex-wrap:wrap;gap:var(--space-3)}
.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--space-12);align-items:center}.hero-copy{position:relative;z-index:1}

.section{padding:var(--space-24) var(--space-12)}.section>.container{border-top:1.5px solid var(--tinta);padding-top:var(--space-8)}.section .etiqueta{margin-bottom:var(--space-4)}
.section-title,.cierre-titulo{font-size:var(--titulo-seccion);line-height:var(--titulo-seccion-line-height);font-weight:var(--titulo-seccion-weight);letter-spacing:-.025em;max-width:28ch;margin-bottom:var(--space-4)}.section-subtitle{font-size:var(--cuerpo-grande);line-height:var(--cuerpo-grande-line-height);max-width:65ch;margin-bottom:var(--space-12)}
.rejilla,.pasos{list-style:none;display:grid;gap:var(--space-4)}.rejilla--2{grid-template-columns:repeat(2,minmax(0,1fr))}.rejilla--3{grid-template-columns:repeat(3,minmax(0,1fr))}.rejilla--verticales{grid-template-columns:repeat(3,minmax(0,1fr))}.pasos--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.card,.tarjeta,.paso{background:var(--superficie);border:0;box-shadow:var(--sombra-tarjeta);border-radius:var(--radius-md);padding:var(--space-8);display:flex;flex-direction:column;gap:var(--space-4);min-width:0}
.card h3,.tarjeta h3,.paso h3{font-size:var(--titulo-tarjeta);line-height:var(--titulo-tarjeta-line-height);font-weight:var(--titulo-tarjeta-weight)}.card p{margin:0}.card .enlace-flecha{margin-top:auto}.card-icon{width:40px;height:40px;color:var(--tinta)}.card-icon svg{width:100%;height:100%}.card-step{font-size:var(--dato);color:var(--tinta-tenue)}.tech-stack{border-top:1px solid var(--linea);padding-top:var(--space-4)}.nota{margin-bottom:var(--space-6)}
.section-media{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-12);align-items:center;margin-bottom:var(--space-12)}.section-media-image img{width:100%;aspect-ratio:1.65;object-fit:cover;border-radius:var(--radius-md)}.section-media .section-subtitle{margin-bottom:0}
.cierre p:not(.etiqueta){max-width:60ch;margin-bottom:var(--space-6)}
.formulario{max-width:800px;background:var(--superficie);border:1px solid var(--linea);padding:var(--space-8);border-radius:var(--radius-md)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-4)}.form-group{margin-bottom:var(--space-6);min-width:0}.form-group>label{display:block;font-weight:600;margin-bottom:var(--space-2)}
.form-group input:not([type="checkbox"]),.form-group select,.form-group textarea{width:100%;min-height:52px;background:var(--fondo);color:var(--tinta);border:1px solid var(--tinta-tenue);border-radius:var(--radius-sm);padding:var(--space-3) var(--space-4);resize:vertical}.form-group input::placeholder,.form-group textarea::placeholder{color:var(--tinta-tenue);opacity:1}
.form-group label.form-consent{display:flex;align-items:flex-start;gap:var(--space-3);font-weight:400}.form-consent input{min-width:20px;height:20px;margin-top:4px;accent-color:var(--tinta)}.form-consent span{color:var(--tinta-secundaria)}.campo-error,.form-estado--error{color:var(--error)}[aria-invalid="true"]{border-color:var(--error)!important}.form-estado{padding:var(--space-4);margin-bottom:var(--space-6);border:1px solid currentColor;border-radius:var(--radius-sm)}.form-estado--ok{color:var(--tinta)}
.footer{padding:var(--space-12);border-top:1px solid var(--linea);background:var(--superficie)}.footer-top{display:flex;justify-content:space-between;gap:var(--space-12);padding-bottom:var(--space-12);border-bottom:1px solid var(--linea)}.footer-brand{max-width:300px}.footer-brand>a{display:inline-block;padding:var(--space-6) 0}.footer-brand p{font-size:var(--cuerpo)}.footer-links{display:flex;gap:var(--space-8)}.footer-titulo{margin:var(--space-6) 0 var(--space-3);text-transform:lowercase}.footer-links ul{list-style:none}.footer-links a,.footer-links span,.enlace-boton{display:inline-flex;align-items:center;min-height:44px;max-width:230px;font-size:14px;text-decoration:none}.enlace-boton{background:none;border:0;color:inherit;text-align:left}.footer-links a:hover,.enlace-boton:hover{text-decoration:underline}.footer-bottom{display:flex;justify-content:space-between;gap:var(--space-6);padding-top:var(--space-8);font:var(--etiqueta)/var(--etiqueta-line-height) var(--mono);color:var(--tinta-tenue)}
.cookie-banner,.cookie-prefs{display:none;position:fixed;z-index:200;background:var(--superficie);border:1px solid var(--linea);color:var(--tinta)}.cookie-banner.visible{display:block}.cookie-banner{bottom:var(--space-4);left:var(--space-4);right:var(--space-4);max-width:760px;margin:auto;padding:var(--space-6);border-radius:var(--radius-md)}.cookie-banner h2,.cookie-prefs h2{font-size:var(--titulo-tarjeta);margin-bottom:var(--space-3)}.cookie-banner-actions,.cookie-prefs-actions{display:flex;gap:var(--space-3);flex-wrap:wrap;margin-top:var(--space-4)}.cookie-prefs{inset:0;overflow:auto;background:var(--fondo);padding:var(--space-8)}.cookie-prefs.visible{display:grid;place-items:center}.cookie-prefs-inner{position:relative;max-width:680px;padding:var(--space-8);background:var(--superficie);border:1px solid var(--linea);border-radius:var(--radius-md)}.cookie-prefs-close{position:absolute;top:var(--space-2);right:var(--space-2);width:44px;height:44px;border:0;background:transparent;color:var(--tinta);font-size:24px}.cookie-cat{padding:var(--space-6) 0;border-bottom:1px solid var(--linea)}.cookie-cat-head{display:flex;justify-content:space-between;gap:var(--space-4);margin-bottom:var(--space-2)}.cookie-switch input{width:24px;height:24px;accent-color:var(--tinta)}
/* Base readability for routes not yet individually reviewed; no page-specific redesign in this preview. */
.legal{max-width:80ch}.legal h2{margin:var(--space-8) 0 var(--space-4)}.legal p,.legal ul{margin-bottom:var(--space-4)}.legal ul{padding-left:var(--space-6)}.chips{list-style:none;display:flex;gap:var(--space-2);flex-wrap:wrap}.chips li{border:1px solid var(--linea);border-radius:var(--radius-sm);padding:var(--space-2) var(--space-3)}
@media(max-width:1100px){.nav-inner{gap:var(--space-3)}.nav-links{gap:var(--space-3)}.nav-cta{display:none}.hero-grid{gap:var(--space-8)}.pasos--4{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-top{flex-wrap:wrap}}
@media(max-width:800px){.nav{padding:var(--space-3) var(--space-6)}.nav-menu{margin-left:auto}.nav-links{display:none;position:absolute;top:100%;left:0;right:0;padding:var(--space-6);background:var(--superficie);border-bottom:1px solid var(--linea)}.nav-links.open{display:flex;flex-direction:column}.nav-burger{display:flex}.nav-logo img{height:22px}.nav-inner{gap:var(--space-2)}.nav-logo{margin-right:auto}.logo-placeholder{max-width:120px;font-size:13px}.cabecera,.section{padding:var(--space-12) var(--space-6)}.hero-grid{grid-template-columns:1fr}.cabecera h1{font-size:40px;max-width:24ch}.section-title,.cierre-titulo{font-size:28px}.rejilla--3,.rejilla--verticales,.section-media{grid-template-columns:1fr}.section-media{gap:var(--space-6)}.footer{padding:var(--space-12) var(--space-6)}.footer-links{flex-wrap:wrap}.footer-bottom{flex-direction:column}.card,.formulario{padding:var(--space-6)}.form-row{grid-template-columns:1fr}.section-media-image{max-width:540px}}
@media(max-width:480px){.nav{padding-inline:var(--space-4)}.nav-lang a{min-width:44px}.nav-inner{gap:var(--space-1)}.nav-logo img{height:20px}.pasos--4,.rejilla--2{grid-template-columns:1fr}.acciones .btn{width:100%}.cookie-banner-actions .btn{width:100%}.footer-links{flex-direction:column}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}

@media(max-width:480px){.logo-placeholder{max-width:96px}}

.nav-logo,.footer-brand>a{text-decoration:none}

/* Encaje: the supplied composition is the only large decorative graphic. */
.hero-isometric{width:100%;align-self:center}.hero-isometric svg{display:block;width:100%;height:auto}
.cabecera--portada h1{max-width:13ch}.cabecera--portada .etiqueta{display:none}
.service-modules{display:grid;grid-template-columns:repeat(3,20px);gap:5px;width:max-content;margin-bottom:var(--space-6)}
.service-modules span{width:20px;height:20px;background:var(--modulo-claro);border-radius:var(--radius-sm)}
.service-modules .green{background:var(--verde)}.service-modules .dark{background:var(--modulo-oscuro)}.service-modules .empty{visibility:hidden}
.cases-band{background:var(--modulo-oscuro-sombra);color:var(--modulo-claro-cara);border-radius:0}
.cases-band>.container{border-top-color:var(--modulo-claro-cara)}
.cases-band h2,.cases-band h3{color:var(--modulo-claro-cara)}.cases-band p{color:var(--modulo-claro)}
.cases-band .etiqueta,.cases-band .card-eyebrow{color:var(--verde-claro)}
.cases-band .card{background:var(--superficie);box-shadow:var(--sombra-tarjeta);border:0;border-radius:var(--radius-md);padding:var(--space-8)}
.cases-band .card h3{color:var(--tinta)}
.cases-band .card p{color:var(--tinta-secundaria)}
[data-theme="dark"] .cases-band .card{background:var(--modulo-oscuro-cara)}
.cases-band .rejilla{gap:var(--space-4)}
@media(max-width:800px){.cases-band .card{padding:var(--space-6)}}
@media(max-width:800px){.hero-isometric{max-width:540px;margin:var(--space-6) auto 0}.cabecera--portada h1{max-width:18ch}.hero-grid{gap:var(--space-6)}}

.btn-ghost,.btn-claro{border-width:1.5px}

/* A small fitting piece gives each case a brand accent without coloring its text. */
.case-accent{display:flex;gap:5px;align-items:center;margin-bottom:var(--space-2)}
.case-accent span{width:16px;height:16px;border-radius:var(--radius-sm);background:var(--modulo-claro)}
.case-accent span:nth-child(2){background:var(--verde);transform:translateY(-4px)}
.case-accent span:last-child{background:var(--modulo-medio)}

.case-heading{display:flex;flex-direction:column;gap:var(--space-3);padding-bottom:var(--space-6);border-bottom:1px solid var(--linea)}
.case-heading h3{font-size:var(--titulo-tarjeta);font-weight:700;line-height:1.2}
.case-work{font-size:var(--cuerpo);line-height:1.5}
.case-engagement{font-family:var(--mono);font-size:var(--etiqueta);text-transform:lowercase}
.case-duration{display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--space-2) var(--space-3);margin-top:var(--space-4)}
.case-duration strong{font-size:32px;font-weight:var(--cifra-weight);letter-spacing:-.04em;line-height:1.1;color:var(--tinta)}
.case-duration span{font-family:var(--mono);font-size:var(--etiqueta);color:var(--tinta-secundaria)}
.cases-band .case-client{font-size:16px;font-weight:600;line-height:1.4;color:var(--tinta)}

/* Interior pages share the approved system, without decorative hero modules. */
.rejilla--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.faq details{padding:var(--space-6) 0;border-bottom:1px solid var(--linea)}
.faq summary{font-size:var(--cuerpo-grande);font-weight:600;min-height:44px;cursor:pointer;color:var(--tinta)}
.faq details p{margin-top:var(--space-4);max-width:75ch}
.legal{max-width:none;padding:var(--space-24) var(--space-12)}.legal>.container{max-width:80ch}
.legal h1{font-size:var(--titulo-seccion);line-height:var(--titulo-seccion-line-height);margin-bottom:var(--space-8);letter-spacing:-.025em}
.legal h2{font-size:var(--titulo-tarjeta);line-height:1.3}.legal h3{margin:var(--space-6) 0 var(--space-3)}
.legal li{margin-bottom:var(--space-2)}.legal a{overflow-wrap:anywhere}.legal table{display:block;overflow-x:auto;width:100%;border-collapse:collapse;margin-block:var(--space-6)}
.legal th,.legal td{padding:var(--space-3);border:1px solid var(--linea);text-align:left;vertical-align:top}.legal th{background:var(--superficie)}
.legal-pending-notice{background:var(--superficie);padding:var(--space-6);margin-bottom:var(--space-8);border-radius:var(--radius-md)}
.form-estado[data-state="error"]{color:var(--error)}.form-estado[data-state="success"]{color:var(--tinta)}
@media(max-width:1100px){.rejilla--4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.legal{padding:var(--space-12) var(--space-6)}.legal h1{font-size:28px}.rejilla--4{grid-template-columns:1fr}}
