/* Digital Web Spain · estilos */
@font-face{font-family:'Geist';src:url('fonts/geist.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Instrument Serif';src:url('fonts/instrument-serif.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}

:root{
  --ink:#161615;
  --ink-2:#262624;
  --muted:#64645E;
  --soft:#8A8A83;
  --line:#E6E6E1;
  --stone:#F5F5F1;
  --chip:#F2F2EE;
  --lime:#CEDF62;
  --lime-dark:#B6C83C;
  --lime-tint:#EEF2D2;
  --olive:#5F6A22;
  --on-dark:#BDBDB6;
  --serif:'Instrument Serif',Georgia,'Times New Roman',serif;
  --sans:'Geist',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img,svg{display:block;max-width:100%}
a{color:var(--ink)}
a:hover{color:#000}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:4px}
.dark :focus-visible{outline-color:var(--lime)}

.wrap{max-width:1320px;margin:0 auto;padding:0 40px}
.serif{font-family:var(--serif);font-weight:400;letter-spacing:-.015em;line-height:1;margin:0;text-wrap:balance}
.muted{color:var(--muted)}
.lead{font-size:19px;line-height:1.55;margin:0;color:var(--muted);max-width:580px;text-wrap:pretty}
.dot{color:var(--lime-dark)}
.dark .dot{color:var(--lime)}
.skip{position:absolute;left:-9999px;top:8px;background:var(--ink);color:#fff;padding:10px 16px;border-radius:999px;z-index:100}
.skip:focus{left:16px;color:#fff}

/* Botones */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:0 24px;border-radius:999px;text-decoration:none;font:500 15px/1 var(--sans);border:0;cursor:pointer;transition:background .2s ease,color .2s ease,box-shadow .2s ease}
.btn-ink{background:var(--ink);color:#fff}.btn-ink:hover{background:var(--lime);color:var(--ink)}
.btn-line{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px #D6D6D0}.btn-line:hover{box-shadow:inset 0 0 0 1px var(--ink);color:var(--ink)}
.btn-lime{background:var(--lime);color:var(--ink)}.btn-lime:hover{background:#fff;color:var(--ink)}
.btn-ghost{background:var(--ink-2);color:#fff}.btn-ghost:hover{background:#34342F;color:#fff}
.btns{display:flex;flex-wrap:wrap;gap:10px}

/* Cabecera */
.header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:24px;padding-bottom:24px;position:relative;z-index:20}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:600;font-size:15px;letter-spacing:-.01em}
.nav{display:flex;align-items:center;gap:36px}
.nav a{text-decoration:none;font-size:15px}
.nav a[aria-current="page"]{text-decoration:underline;text-decoration-color:var(--lime);text-decoration-thickness:3px;text-underline-offset:8px}
.header-cta{display:flex;align-items:center;gap:10px}
.header-cta .btn{min-height:42px;padding:0 20px;font-size:14px}
.menu-btn{display:none;width:44px;height:44px;align-items:center;justify-content:center;border:0;border-radius:999px;background:var(--chip);cursor:pointer}
.mobile-nav{display:none}

/* Portada */
.hero{display:flex;flex-wrap:wrap;gap:48px;align-items:stretch;padding-top:48px;padding-bottom:120px}
.hero-text{flex:1 1 540px;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:32px;padding:16px 0}
.h1-kicker{display:block;font-family:var(--sans);font-size:17px;font-weight:500;letter-spacing:0;line-height:1.4;color:var(--muted);margin-bottom:20px}
.h1-big{display:block;font-size:clamp(60px,8.4vw,132px);line-height:.92}
.hero-panel{flex:1 1 440px;min-width:0;min-height:520px;border-radius:36px;background:var(--ink);color:#fff;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:40px}
.hero-panel .art{flex:1;display:flex;align-items:center;justify-content:center}
.hero-panel .art svg{width:100%;height:auto;overflow:visible}
.hero-panel p{margin:0;color:var(--on-dark);font-size:15px;max-width:360px}

.page-hero{display:flex;flex-wrap:wrap;gap:48px 72px;align-items:stretch;padding-top:48px;padding-bottom:120px}
.page-hero .text{flex:1 1 580px;min-width:0;display:flex;flex-direction:column;gap:28px;justify-content:center}
.page-hero h1{font-size:clamp(52px,6.6vw,100px);line-height:.95}
.crumbs{font-size:14px;color:var(--muted)}
.crumbs a{color:var(--muted)}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.crumbs li+li::before{content:"/";margin-right:6px}

.card-dark{flex:1 1 380px;min-width:0;border-radius:28px;background:var(--ink);color:#fff;padding:44px;display:flex;flex-direction:column;justify-content:center;gap:22px}
.card-dark h2{font-size:36px}
.checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.checks li{display:flex;gap:14px;align-items:flex-start}
.checks svg{flex:none;margin-top:3px}

/* Secciones */
.section{padding-top:140px;padding-bottom:140px}
.section-tight{padding-bottom:140px}
.stone{background:var(--stone)}
.dark{background:var(--ink);color:#fff}
.dark .muted,.dark .lead{color:var(--on-dark)}
.dark a{color:#fff}
.sec-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px 24px;margin-bottom:48px}
.sec-head h2{font-size:clamp(40px,4.4vw,64px)}
.sec-head p{margin:0;max-width:400px}
.statement{font-size:clamp(32px,3.8vw,54px);line-height:1.15;max-width:1100px}
.statement span{color:var(--soft)}

/* Filas de servicios / listas */
.rows{border-bottom:1px solid var(--line)}
.row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(380px,100%),1fr));gap:12px 48px;align-items:baseline;padding:40px 0;text-decoration:none;color:var(--ink);border-top:1px solid var(--line)}
.row h3{font-size:clamp(34px,3.6vw,52px);transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.row .desc{display:flex;justify-content:space-between;align-items:center;gap:24px}
.row .desc span:first-child{color:var(--muted);max-width:440px}
.arrow{width:44px;height:44px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;flex:none;transition:background .25s ease}
a.row:hover{color:var(--ink)}
a.row:hover h3{transform:translateX(12px)}
a.row:hover .arrow{background:var(--lime)}

.projects{border-bottom:1px solid var(--line)}
.project{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px 32px;padding:28px 0;border-top:1px solid var(--line);text-decoration:none;color:var(--ink)}
.project strong{font-family:var(--serif);font-weight:400;font-size:clamp(30px,3vw,42px);letter-spacing:-.015em;line-height:1.1}
.project span{color:var(--muted);font-size:15px;display:inline-flex;align-items:center;gap:10px}
a.project:hover strong{color:var(--olive)}

.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr));gap:0 56px}
.item{border-top:1px solid var(--line);padding:28px 0;display:flex;flex-direction:column;gap:6px}
.item h3{margin:0;font-size:19px;font-weight:500}
.item p{margin:0;color:var(--muted)}

.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:20px}
.steps li{background:#fff;border-radius:24px;padding:32px;display:flex;flex-direction:column;gap:14px}
.steps h3{font-size:30px}
.steps p{margin:0;color:var(--muted);font-size:16px}
.num{width:40px;height:40px;border-radius:999px;background:var(--lime);display:inline-flex;align-items:center;justify-content:center;font-weight:500}

/* Precios */
.plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:20px;align-items:stretch}
.plan{border-radius:28px;padding:40px;box-shadow:inset 0 0 0 1px var(--line);display:flex;flex-direction:column;gap:22px;background:#fff}
.plan.featured{background:var(--ink);color:#fff;box-shadow:none}
.plan h3{font-size:36px}
.plan .top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.badge{font-size:13px;background:var(--lime);color:var(--ink);border-radius:999px;padding:4px 12px;white-space:nowrap}
.price{margin:0;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.price strong{font-family:var(--serif);font-weight:400;font-size:56px;line-height:1;letter-spacing:-.02em}
.price span{color:var(--muted);font-size:15px}
.plan.featured .price span{color:var(--on-dark)}
.plan ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px;font-size:16px;color:var(--muted)}
.plan.featured ul{color:#D9D9D2}
.plan .btn{margin-top:auto}
.note{margin:24px 0 0;font-size:15px;color:var(--muted)}

/* Cursos */
.course{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(380px,100%),1fr));gap:14px 48px;align-items:start;padding:40px 0;border-top:1px solid var(--line)}
.course h3{font-size:clamp(32px,3.2vw,46px)}
.course p{margin:0;color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.chip{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border-radius:999px;background:var(--chip);font-size:14px}
.callout{margin-top:24px;border-radius:28px;background:var(--lime-tint);padding:48px;display:flex;flex-wrap:wrap;gap:24px 48px;align-items:center;justify-content:space-between}
.callout h3{font-size:clamp(30px,3vw,44px)}
.callout p{margin:10px 0 0;color:#4A4A44}
.callout>div{flex:1 1 480px}

/* Banda oscura */
.band{border-radius:28px;background:var(--ink);color:#fff;padding:56px;display:flex;flex-wrap:wrap;gap:32px 64px;align-items:center;justify-content:space-between}
.band h2{font-size:clamp(34px,3.6vw,52px)}
.band p{margin:14px 0 0;color:var(--on-dark);max-width:560px}
.band>div:first-child{flex:1 1 480px;min-width:0}

/* Preguntas */
.faq{display:flex;flex-wrap:wrap;gap:48px}
.faq h2{flex:1 1 340px;font-size:clamp(40px,4.4vw,64px)}
.faq .list{flex:1.6 1 560px;min-width:0;border-bottom:1px solid var(--line)}
details{border-top:1px solid var(--line)}
summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:80px;font-size:19px;font-weight:500}
summary::-webkit-details-marker{display:none}
summary .plus{flex:none;transition:transform .2s ease}
details[open] summary .plus{transform:rotate(45deg)}
details p{margin:0;padding-bottom:28px;color:var(--muted)}

/* Formularios */
.contact{display:flex;flex-wrap:wrap;gap:56px 80px}
.contact .intro{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:24px}
.contact h2{font-size:clamp(60px,8.4vw,132px);line-height:.92}
.contact .reach{display:flex;flex-direction:column;gap:4px}
.contact .reach a:first-child{font-size:22px;text-decoration:none}
form.f{flex:1 1 460px;min-width:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:14px;align-content:end}
.f label{display:flex;flex-direction:column;gap:8px;font-size:14px}
.f .full{grid-column:1/-1}
.f input[type=text],.f input[type=email],.f input[type=tel],.f input[type=url],.f input[type=number],.f select,.f textarea{min-height:54px;border:0;border-radius:12px;padding:0 16px;font:inherit;width:100%}
.f textarea{padding-top:14px;resize:vertical;min-height:130px}
.dark .f label{color:var(--on-dark)}
.dark .f input,.dark .f select,.dark .f textarea{background:var(--ink-2);color:#fff}
.light-form{border-radius:28px;background:var(--stone);padding:44px}
.light-form label{font-weight:500}
.light-form input,.light-form select,.light-form textarea{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1px #E0E0DA}
.f .check{flex-direction:row;align-items:flex-start;gap:12px}
.f .check input{width:20px;height:20px;margin:1px 0 0;flex:none;accent-color:var(--lime)}
.light-form .check input{accent-color:var(--ink)}
.dark .f .check a{color:var(--lime)}
.f .legal{grid-column:1/-1;margin:0;font-size:13px;color:var(--soft)}
.f fieldset{grid-column:1/-1;border:0;margin:0;padding:0}
.f legend{font-size:14px;font-weight:500;margin-bottom:10px}
.opts{display:flex;flex-wrap:wrap;gap:8px}
.opt{display:inline-flex!important;flex-direction:row!important;gap:8px!important;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px #E0E0DA;font-size:15px!important;font-weight:400!important;cursor:pointer}
.opt input{accent-color:var(--ink)}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

.lines{border-bottom:1px solid var(--line)}
.line{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:22px 0;border-top:1px solid var(--line);text-decoration:none;color:var(--ink)}
.line .v{font-size:18px;font-weight:500}
a.line:hover .v{color:var(--olive)}

/* Pie */
.footer{padding-top:40px;padding-bottom:48px;display:flex;flex-direction:column;gap:40px;font-size:15px}
.footer .cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:40px;padding-top:40px;border-top:1px solid #2E2E2B}
.footer nav,.footer .col{display:flex;flex-direction:column;gap:8px}
.footer strong{font-weight:500}
.footer a,.footer p,.footer span{color:var(--on-dark)}
.footer p{margin:0}
.footer .legal-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;font-size:14px;color:var(--soft)}
.footer .legal-links a,.footer .legal-links span{color:var(--soft)}
.footer .legal-links div{display:flex;flex-wrap:wrap;gap:24px}

/* Textos legales */
.prose{max-width:780px;padding-top:24px;padding-bottom:120px}
.prose h1{font-size:clamp(44px,5vw,72px);margin-bottom:32px}
.prose h2{font-family:var(--serif);font-weight:400;font-size:30px;margin:44px 0 12px;letter-spacing:-.01em}
.prose p,.prose li{color:#3E3E3A}
.prose table{border-collapse:collapse;width:100%;font-size:15px}
.prose th,.prose td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line)}
.todo{background:#FFF4C2;padding:0 4px;border-radius:4px}

/* Móvil */
@media (max-width:960px){
  .wrap{padding:0 20px}
  .nav,.header-cta .btn{display:none}
  .menu-btn{display:inline-flex}
  .mobile-nav{position:fixed;inset:0;background:#fff;z-index:50;padding:24px 20px;flex-direction:column;gap:8px}
  .mobile-nav.open{display:flex}
  .mobile-nav .top{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}
  .mobile-nav a.m{font-family:var(--serif);font-size:40px;text-decoration:none;line-height:1.3}
  .mobile-nav .btn{margin-top:24px;align-self:flex-start}
  .hero-panel{min-height:360px;padding:28px}
  .section{padding-top:96px;padding-bottom:96px}
  .section-tight{padding-bottom:96px}
  .hero,.page-hero{padding-bottom:80px}
  .band,.callout,.light-form,.card-dark{padding:32px}
  .plan{padding:32px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
}

/* Proyectos */
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(340px,100%),1fr));gap:40px 28px}
.pcard{display:flex;flex-direction:column;gap:18px;text-decoration:none;color:var(--ink)}
.pc-media{display:block;aspect-ratio:16/10;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px var(--line)}
.pc-media img{width:100%;height:100%;object-fit:cover;object-position:top;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.pc-empty{display:flex;align-items:center;justify-content:center;background:var(--ink);box-shadow:none}
.stone .pc-empty{background:var(--ink)}
.pc-name{color:#fff;font-size:clamp(30px,3vw,40px);text-align:center;padding:24px}
.pc-body{display:flex;flex-direction:column;gap:4px}
.pc-body strong{font-weight:400;font-size:28px;line-height:1.1}
.pc-body .muted{font-size:15px}
.pc-role{font-size:14px;color:var(--olive);display:inline-flex;align-items:center;gap:6px;margin-top:4px}
.pcard:hover .pc-media img{transform:scale(1.03)}
.pcard:hover strong{color:var(--olive)}
.sec-head .btn{flex:none}

/* Blog */
.posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(340px,100%),1fr));gap:20px}
.post{display:flex;flex-direction:column;gap:12px;padding:32px;border-radius:24px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);text-decoration:none;color:var(--ink);transition:box-shadow .2s ease}
.post strong{font-weight:400;font-size:28px;line-height:1.12}
.post .muted{font-size:15px;line-height:1.55}
.post:hover{box-shadow:inset 0 0 0 1px var(--ink);color:var(--ink)}
.post-cat{align-self:flex-start;font-size:13px;background:var(--lime-tint);color:var(--olive);border-radius:999px;padding:3px 12px}
.post-head{max-width:860px;padding-top:40px;padding-bottom:40px;display:flex;flex-direction:column;gap:20px}
.post-head h1{font-size:clamp(44px,5.6vw,80px);line-height:1}
.post-meta{margin:0;color:var(--muted);font-size:15px}
.post-meta a{color:var(--muted)}
.post-body{max-width:740px;padding-bottom:120px}
.post-lead{font-size:21px;line-height:1.55;color:#3E3E3A;margin:0 0 16px}
.post-body h2{font-family:var(--serif);font-weight:400;font-size:clamp(30px,3vw,40px);letter-spacing:-.015em;line-height:1.1;margin:56px 0 16px}
.post-body h3{font-size:19px;font-weight:600;margin:32px 0 8px}
.post-body p,.post-body li{color:#3E3E3A}
.post-body ul,.post-body ol{padding-left:22px;display:flex;flex-direction:column;gap:8px}
.post-body kbd{font-family:var(--sans);font-size:14px;background:var(--chip);border-radius:6px;padding:2px 7px;box-shadow:inset 0 -1px 0 #D6D6D0}
.faq-inline{border-bottom:1px solid var(--line)}
.post-cta{margin-top:64px;border-radius:28px;background:var(--ink);color:#fff;padding:40px;display:flex;flex-wrap:wrap;gap:24px 40px;align-items:center;justify-content:space-between}
.post-cta>div{flex:1 1 360px}
.post-cta h2{margin:0 0 8px!important;color:#fff;font-size:32px!important}
.post-cta p{margin:0;color:var(--on-dark)!important}

/* Banner de cookies */
.cookie{position:fixed;left:16px;right:16px;bottom:16px;z-index:60;max-width:560px;background:#fff;color:var(--ink);border-radius:24px;box-shadow:0 0 0 1px var(--line),0 12px 40px rgba(22,22,21,.14);padding:28px;display:flex;flex-direction:column;gap:18px;font-size:15px;line-height:1.55}
.cookie[hidden]{display:none}
.cookie p{margin:0;color:#3E3E3A}
.cookie-title{font-family:var(--serif);font-size:28px!important;line-height:1.1;color:var(--ink)!important;margin-bottom:8px!important}
.cookie-main p+p{margin-top:0}
.cookie-prefs{display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--line);padding-top:16px}
.cookie-prefs[hidden]{display:none}
.cookie-opt{display:flex;gap:12px;align-items:flex-start;cursor:pointer}
.cookie-opt input{width:20px;height:20px;margin:2px 0 0;flex:none;accent-color:var(--ink)}
.cookie-opt span{display:flex;flex-direction:column;color:var(--muted)}
.cookie-opt strong{color:var(--ink);font-weight:500}
.cookie-btns{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr));gap:8px}
.cookie-btns .btn{min-height:46px;padding:0 16px;font-size:14px}
.cookie-btns .btn[hidden]{display:none}
.link-btn{background:none;border:0;padding:0;font:inherit;color:var(--soft);text-decoration:underline;cursor:pointer}
.link-btn:hover{color:#fff}
