/* Neuronas Creativas — hoja de estilos principal
   Paleta tomada del sitio actual: degradado rosa → coral → amarillo, con amarillo cálido
   y verde menta en las secciones. Tipografía Work Sans, como la marca.
   Concepto: portada con un "axón" que conecta los servicios hasta llegar al cliente;
   el resto del sitio, claro y alineado a la izquierda, con bandas rosa, amarillo y menta. */
:root {
  --brand-deep: #c93c78;    /* rosa profundo: cabecera y botones (contraste AA con blanco) */
  --brand-pink: #de558b;    /* rosa del degradado actual */
  --brand-coral: #e8706b;
  --brand-yellow: #f9e216;  /* amarillo del degradado actual */
  --sun: #ffd171;           /* amarillo de la sección Clientes */
  --mint: #50d0b0;          /* verde menta de la sección Contacto */
  --mint-ink: #127a63;      /* menta con contraste AA para texto */
  --plum: #2a1f3d;          /* texto y pie */
  --brand-gradient: linear-gradient(115deg, #c93c78 0%, #cf4380 42%, #e8706b 70%, #f5b335 88%, #f9e216 100%);
  --brand-gradient-v: linear-gradient(170deg, #c93c78 0%, #cf4380 38%, #e8706b 68%, #f6c22c 100%);
  --paper: #fffcfd;
  --surface: #ffffff;
  --line: #f0e0e8;
  --text: #2a1f3d;
  --muted: #6b5c6e;
  --accent: #c93c78;
  --accent-ink: #a92e63;
  --signal: #50d0b0;
  --ink: #c93c78;           /* alias de compatibilidad */
  --on-ink: #ffffff;
  --on-ink-muted: rgba(255,255,255,.88);
  --tint-pink: #fdeef4;
  --tint-yellow: #fff4da;
  --tint-mint: #e2f7f1;
  --font-display: "Work Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: clamp(.83rem, .8rem + .15vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + .45vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.25rem + .9vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.8vw, 2.8rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 4.2rem);
  --radius: 14px;
  --wrap: 1180px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--mint-ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; margin: 0; color: inherit; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: .6rem 1rem; color: var(--text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: clamp(3.5rem, 3rem + 4vw, 7rem); }
.section + .section { padding-top: 0; }
.section--tint { --tint: var(--tint-pink); background: var(--tint); }
.tint-yellow { --tint: var(--tint-yellow); }
.tint-mint { --tint: var(--tint-mint); }
.section--tint + .section { padding-top: clamp(3.5rem, 3rem + 4vw, 7rem); }
.section-head { display: grid; gap: .9rem; max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.prose-width { max-width: 42rem; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 var(--step-0)/1 var(--font-body);
  padding: .95rem 1.35rem; border-radius: 999px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--text); background: transparent; }
.btn--ghost:hover { color: var(--accent-ink); }
.on-ink .btn--ghost { color: var(--on-ink); }
.on-ink .btn--ghost:hover { color: #fff; background: rgba(255,255,255,.14); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Cabecera */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--brand-deep); }
/* cabecera */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--brand-deep); color: var(--on-ink); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--on-ink); text-decoration: none; font: 700 1.15rem/1 var(--font-display); letter-spacing: -.01em; }
.brand img { height: 44px; width: auto; }
.brand:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--on-ink-muted); text-decoration: none; font-weight: 500; padding: .55rem .75rem; border-radius: 8px; }
.nav a { color: rgba(255,255,255,.9); }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sun); border-radius: 0; }
.nav .btn { margin-left: .5rem; padding: .7rem 1.1rem; background: #fff; color: var(--brand-deep); }
.nav .btn:hover { background: var(--sun); color: var(--plum); }
.nav-toggle { display: none; background: none; border: 1.5px solid rgba(255,255,255,.3); color: var(--on-ink); border-radius: 10px; padding: .55rem .75rem; font: 600 .95rem var(--font-body); cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--brand-deep); padding: .5rem var(--gutter-r) 1.25rem var(--gutter); border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav.is-open { display: flex; }
  .nav { flex-wrap: wrap; }
  .nav a { padding: .85rem .25rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: #fff; }
  .nav .btn { margin: 1rem 0 0; border-bottom: 0; border-radius: 999px; }
}

/* Portada (banda ink) */
.on-ink { background: var(--brand-gradient); color: var(--on-ink); }
@media (max-width: 860px) { .on-ink { background: var(--brand-gradient-v); } }
.on-ink .btn--primary { background: #fff; color: var(--brand-deep); }
.on-ink .btn--primary:hover { background: var(--plum); color: #fff; }
.on-ink a:not(.btn) { color: #fff; }
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3.5rem, 2rem + 5vw, 6.5rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero-lede { margin-top: 1.4rem; font-size: var(--step-1); line-height: 1.5; color: var(--on-ink-muted); max-width: 36rem; }
.hero .actions { margin-top: 2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 2.25rem 0 0; padding: 0; list-style: none; color: var(--on-ink-muted); font-size: var(--step--1); }
.hero-facts li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.axon { width: 100%; max-width: 460px; justify-self: end; }
.axon svg { width: 100%; height: auto; overflow: visible; }
.axon .path { fill: none; stroke: url(#axonGrad); stroke-width: 3; stroke-linecap: round; }
.axon .branch { fill: none; stroke: rgba(42,31,61,.22); stroke-width: 1.5; }
.axon .node { fill: #fff; stroke: var(--plum); stroke-width: 2.5; }
.axon .node--end { fill: var(--mint); stroke: #fff; stroke-width: 3; }
.axon text { fill: var(--plum); font: 700 15px var(--font-display); }
.axon text.small { fill: var(--plum); opacity: .8; font: 500 12.5px var(--font-body); }
@media (prefers-reduced-motion: no-preference) {
  .axon .path { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.8s .2s cubic-bezier(.6,.1,.2,1) forwards; }
  .axon .node, .axon text { opacity: 0; animation: pop .4s forwards; }
  .axon [data-i="1"] { animation-delay: .35s; } .axon [data-i="2"] { animation-delay: .7s; }
  .axon [data-i="3"] { animation-delay: 1.05s; } .axon [data-i="4"] { animation-delay: 1.4s; }
  .axon [data-i="5"] { animation-delay: 1.8s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pop { to { opacity: 1; } }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .axon { justify-self: start; max-width: 340px; }
}

/* Cabecera de páginas internas */
.page-hero { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-hero h1 { font-size: var(--step-4); max-width: 22ch; }
.page-hero .lede { margin-top: 1.1rem; color: var(--on-ink-muted); font-size: var(--step-1); max-width: 40rem; line-height: 1.5; }
.page-hero .actions { margin-top: 1.75rem; }
.crumbs { font-size: var(--step--1); color: rgba(255,255,255,.9); margin-bottom: 1.25rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .5; }
.crumbs a { color: rgba(255,255,255,.9) !important; text-decoration: none; }
.crumbs a:hover { color: #fff !important; }

/* Franja de clientes */
.clients { border-bottom: 1px solid var(--line); background: var(--surface); }
.clients .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 2rem; padding-block: 1.4rem; }
.clients p { color: var(--muted); font-size: var(--step--1); margin-right: .5rem; }
.clients ul { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; list-style: none; margin: 0; padding: 0; }
.clients li { font: 650 1.02rem var(--font-display); color: var(--text); opacity: .78; }

/* Índice de servicios */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 4rem); border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .35rem 1.1rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.service svg { grid-row: span 2; width: 40px; height: 40px; color: var(--accent); margin-top: .1rem; }
.service h3 { font-size: var(--step-2); }
.service p { color: var(--muted); }
.service:hover h3 { color: var(--accent-ink); }
.service .more { grid-column: 2; margin-top: .4rem; font-weight: 600; color: var(--accent-ink); font-size: var(--step--1); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* Proceso (secuencia real) */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 19px; left: 20px; right: 20px; height: 2px; background: linear-gradient(90deg, var(--brand-deep), var(--brand-coral), var(--sun)); }
.process li { position: relative; display: grid; gap: .55rem; align-content: start; }
.process li::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--accent); font: 700 1rem var(--font-display); color: var(--accent-ink); position: relative; margin-bottom: .5rem; }
.section--tint .process li::before { background: var(--tint); }
.process h3 { font-size: var(--step-1); }
.process p { color: var(--muted); font-size: var(--step--1); line-height: 1.55; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 1.75rem; }
  .process::before { top: 20px; bottom: 20px; left: 19px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--brand-deep), var(--brand-coral), var(--sun)); }
  .process li { grid-template-columns: 40px minmax(0,1fr); column-gap: 1rem; }
  .process li::before { grid-row: span 2; margin: 0; }
}

/* Portfolio */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.work { display: grid; gap: .8rem; text-decoration: none; color: var(--text); align-content: start; }
.work-media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--tint-pink); position: relative; max-width: 100%; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work:hover .work-media img { transform: scale(1.03); }
.work-media .mono { position: absolute; inset: 0; display: grid; place-items: center; font: 750 clamp(2.5rem, 6vw, 4rem) var(--font-display); color: #fff; background: var(--brand-gradient); letter-spacing: -.03em; }
.work h2, .work h3 { font-size: var(--step-1); }
.work:hover h2, .work:hover h3 { color: var(--accent-ink); }
.work .meta { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .work-grid { grid-template-columns: 1fr; } }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { font: 500 var(--step--1) var(--font-body); padding: .5rem .95rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--brand-deep); color: #fff; border-color: var(--brand-deep); }
.section-foot { margin-top: 2.5rem; }

/* Testimonios */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.quote { margin: 0; display: grid; gap: 1rem; align-content: start; padding-top: 1.25rem; border-top: 3px solid var(--accent); }
.quote blockquote { margin: 0; font: 500 var(--step-1)/1.45 var(--font-display); letter-spacing: -.005em; }
.quote figcaption { color: var(--muted); font-size: var(--step--1); }
.stars { color: #f2a900; letter-spacing: .1em; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* Banda Tarjeta Digital */
.promo { border-radius: calc(var(--radius) * 1.5); background: var(--sun); color: var(--plum); padding: clamp(1.75rem, 1rem + 3vw, 3.25rem); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 1.5rem 3rem; align-items: center; position: relative; overflow: hidden; }
.promo::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--mint); opacity: .45; box-shadow: 0 0 0 40px rgba(201,60,120,.12); pointer-events: none; }
.promo h2 { font-size: var(--step-2); }
.promo p { color: var(--plum); margin-top: .6rem; max-width: 38rem; }
.promo .btn { position: relative; z-index: 1; }
@media (max-width: 760px) { .promo { grid-template-columns: 1fr; } }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.post-card { display: grid; gap: .6rem; align-content: start; }
.post-card .work-media { aspect-ratio: 4 / 3; }
.post-card h2, .post-card h3 { font-size: var(--step-1); }
.post-card h2 a, .post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--accent-ink); }
.post-card p { color: var(--muted); font-size: var(--step--1); }
.post-meta { color: var(--muted); font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
.post-meta a { color: var(--accent-ink); text-decoration: none; }
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .posts { grid-template-columns: 1fr; } }
.cat-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.25rem; padding: 0; list-style: none; }
.cat-list a { display: inline-block; padding: .45rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: var(--step--1); background: var(--surface); }
.cat-list a[aria-current="page"] { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }

/* Artículo */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.prose { max-width: 42rem; font-size: 1.08rem; line-height: 1.72; min-width: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--radius); }
.prose code { font-size: .9em; background: var(--tint-pink); padding: .1em .35em; border-radius: 5px; }
.prose blockquote { margin-left: 0; padding-left: 1.2rem; border-left: 3px solid var(--accent); color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose .table-wrap { overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .6rem .5rem; text-align: left; }
.prose .tldr { background: var(--tint-pink); border-radius: var(--radius); padding: 1.1rem 1.25rem; font-size: 1.02rem; }
.aside { position: sticky; top: 96px; display: grid; gap: 1.25rem; }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .75rem; }
.aside-card h2 { font-size: var(--step-1); }
.aside-card p { color: var(--muted); font-size: var(--step--1); }
.aside-card ul { margin: 0; padding-left: 1.1rem; font-size: var(--step--1); }
.aside-card li + li { margin-top: .35rem; }
.featured-img { border-radius: var(--radius); margin-bottom: 2rem; aspect-ratio: 4/3; object-fit: cover; width: 100%; max-width: 42rem; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .aside { position: static; } }

/* Página de servicio */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.answer { font-size: var(--step-1); line-height: 1.55; max-width: 44rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.checks li { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: .75rem; align-items: start; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: .15rem; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.type { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; display: grid; gap: .45rem; align-content: start; }
.type p { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 560px) { .types { grid-template-columns: 1fr; } }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.tags li { padding: .4rem .85rem; border-radius: 999px; background: var(--tint-mint); font-size: var(--step--1); }
.callout { border-left: 3px solid var(--accent); padding: .25rem 0 .25rem 1.25rem; color: var(--muted); font-size: var(--step-1); line-height: 1.5; max-width: 44rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; font: 650 var(--step-1)/1.3 var(--font-display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font: 400 1.6rem var(--font-body); color: var(--accent-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 1.4rem; color: var(--muted); max-width: 44rem; }

/* CTA final */
.cta-final .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: center; padding-block: clamp(3.5rem, 3rem + 4vw, 6rem); }
.cta-final h2 { font-size: var(--step-3); }
.cta-final p { color: var(--on-ink-muted); margin-top: 1rem; font-size: var(--step-1); max-width: 34rem; }
.contact-lines { display: grid; gap: .9rem; }
.contact-lines a { display: flex; gap: .75rem; align-items: center; color: #fff; text-decoration: none; font-size: var(--step-1); font-weight: 500; }
.contact-lines svg { width: 24px; height: 24px; color: #fff; flex: none; }
.contact-lines a:hover { color: var(--plum); }
@media (max-width: 860px) { .cta-final .wrap { grid-template-columns: 1fr; } }

/* Formulario */
.form { display: grid; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--text); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: .8rem .9rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(201,60,120,.18); }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--step--1); color: var(--muted); }
.form-status { font-weight: 600; }
.form-status[data-state="ok"] { color: #137a4b; }
.form-status[data-state="error"] { color: #b3261e; }

/* Pie */
.site-footer { background: var(--plum); color: rgba(255,255,255,.78); font-size: var(--step--1); border-top: 1px solid rgba(255,255,255,.08); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 3.5rem 2rem; }
.site-footer h2 { font: 650 .98rem var(--font-display); color: #fff; margin-bottom: .9rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer address { font-style: normal; display: grid; gap: .4rem; margin-top: 1rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.08); }
.footer-legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-block: 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); grid-template-columns: none; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

/* Botón flotante WhatsApp */
.wa-float { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #1fae5b; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(23,17,59,.28); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #178a48; color: #fff; }

/* Utilidades */
.lead-muted { color: var(--muted); }
.stack { display: grid; gap: 1.25rem; }
.stack-lg { display: grid; gap: 2rem; }
.mt-2 { margin-top: 2rem; }
.notfound { min-height: 50vh; display: grid; align-content: center; gap: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .wa-float, .site-footer, .cta-final { display: none; }
}

/* Clases que sustituyen estilos en línea (requisito de la CSP) */
.consent { display: flex; gap: .6rem; align-items: start; }
.consent input { margin-top: .3rem; }
.page-hero .lede--meta { font-size: var(--step--1); }
.lead-lg { font-size: var(--step-1); max-width: 36rem; }
.h-service { font-size: var(--step-2); }
.page-hero .h-article { font-size: var(--step-3); max-width: 28ch; }
.footer-about { margin-top: .9rem; max-width: 30rem; }
.actions--spaced { margin-top: 1.75rem; }
.mt-1 { margin-top: 1rem; }
.post-cats { margin-top: 2.5rem; color: var(--muted); font-size: var(--step--1); }
.section:not(.section--tint) + .section--tint { padding-top: clamp(3.5rem, 3rem + 4vw, 7rem); }
/* Iconos de servicio en los colores de la marca, como en el sitio actual */
.service:nth-child(3n+2) svg { color: var(--mint-ink); }
.service:nth-child(3n) svg { color: #d9701f; }

/* Elementos ocultos por el filtro del portfolio (el atributo hidden siempre gana) */
[hidden] { display: none !important; }
.clients li a { color: inherit; text-decoration: none; }
.clients li a:hover { color: var(--accent-ink); text-decoration: underline; }

/* Galería de proyecto: carrusel con imágenes ampliables */
.gallery-section { padding-top: 0; }
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: clamp(.75rem, 2vw, 1.25rem); overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: .75rem; overscroll-behavior-x: contain; scrollbar-width: thin;
}
.carousel-track:focus-visible { outline-offset: 6px; }
.slide { flex: 0 0 clamp(250px, 40%, 520px); margin: 0; scroll-snap-align: start; display: grid; gap: .6rem; align-content: start; }
.slide a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--tint-pink); aspect-ratio: 4 / 3; cursor: zoom-in; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .35s ease; }
.slide a:hover img { transform: scale(1.03); }
.slide a::after {
  content: ""; position: absolute; right: .6rem; bottom: .6rem; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(42,31,61,.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.slide figcaption { color: var(--muted); font-size: var(--step--1); line-height: 1.45; }
@media (max-width: 560px) { .slide { flex-basis: 82%; } }
.carousel-nav { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--text);
}
.carousel-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn:hover { border-color: var(--brand-deep); color: var(--brand-deep); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-count { color: var(--muted); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.prose a[data-zoom] { cursor: zoom-in; display: block; }
.featured-zoom { display: block; cursor: zoom-in; }

/* Visor de imágenes ampliadas */
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  background: rgb(24,16,36); color: #fff;
}
.lightbox::backdrop { background: rgba(24,16,36,.85); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lb-stage { overflow: auto; display: grid; place-items: center; padding: max(56px, env(safe-area-inset-top, 0px)) max(56px, env(safe-area-inset-right, 0px)) 8px max(56px, env(safe-area-inset-left, 0px)); }
.lb-stage img { max-width: min(92vw, 1400px); max-height: 80vh; width: auto; height: auto; border-radius: 8px; background: #fff; }
.lb-stage.tall { place-items: start center; }
.lb-stage.tall img { max-height: none; width: min(92vw, 1100px); }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .9rem 1rem calc(.9rem + env(safe-area-inset-bottom, 0px)); text-align: center; }
.lb-caption { max-width: 60ch; font-size: .98rem; line-height: 1.4; }
.lb-count { opacity: .7; font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); }
.lb-prev { left: calc(12px + env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: calc(12px + env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb-stage { padding: 56px 8px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); transform: none; }
}
