/* Todoyarte — blanco y negro */
:root {
  --black: #000;
  --white: #fff;
  --grey: #595959;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0; background: var(--white); color: var(--black);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

/* Cabecera: fondo sólido para que siempre se lea */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1rem var(--pad); background: var(--white); color: var(--black);
  border-bottom: 2px solid var(--black);
}
.brand img { height: 1.5rem; width: auto; }
.nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.nav a { text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; padding: .2rem 0; }
.nav a:hover { border-bottom-color: var(--black); }

/* Portada */
.hero { position: relative; overflow: hidden; padding: clamp(4rem, 10vw, 8rem) var(--pad) 0; }
.dots {
  position: absolute; right: 0; top: 0; width: 65%; height: 85%;
  background: radial-gradient(var(--black) 1.5px, transparent 2.1px) 0 0 / 14px 14px;
  -webkit-mask-image: radial-gradient(circle at 82% 25%, #000 0, transparent 60%);
  mask-image: radial-gradient(circle at 82% 25%, #000 0, transparent 60%);
}
.hero h1 {
  position: relative; font-weight: 800; font-size: clamp(2.8rem, 10vw, 9rem);
  letter-spacing: -.05em; animation: rise .9s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }
.hero-foot {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem 3rem; flex-wrap: wrap; margin-top: clamp(3rem, 8vw, 6rem);
  padding: 1.5rem 0 2.25rem; border-top: 2px solid var(--black);
}
.hero-foot p { max-width: 30rem; font-size: 1.15rem; }
.btn {
  display: inline-block; padding: .95rem 1.7rem; border-radius: 999px;
  background: var(--black); color: var(--white); border: 2px solid var(--black);
  text-decoration: none; font-weight: 600; transition: background .2s, color .2s;
}
.btn:hover { background: var(--white); color: var(--black); }

/* Cinta */
.marquee { overflow: hidden; background: var(--black); color: var(--white); padding: .9rem 0; }
.track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.group { display: flex; align-items: center; flex-shrink: 0; }
.group span {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  letter-spacing: -.03em; padding: 0 clamp(1rem, 2vw, 1.75rem);
}
.group i { width: 1.1rem; aspect-ratio: 1; border: .3rem solid var(--white); border-radius: 50%; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Servicios */
.services { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 9vw, 8rem); }
.services h2, .about h2, .contact h2 { font-family: var(--text); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
.services h2 { padding: 0 var(--pad) 1.25rem; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1rem var(--pad); align-items: center;
  padding: 1.75rem var(--pad); border-top: 2px solid var(--black);
  transition: background .2s, color .2s;
}
.service:last-child { border-bottom: 2px solid var(--black); }
.service h3 { font-weight: 800; font-size: clamp(1.4rem, 3.2vw, 2.6rem); letter-spacing: -.04em; overflow-wrap: anywhere; }
.service p { color: var(--grey); transition: color .2s; }
.service:hover, .service:focus-visible { background: var(--black); color: var(--white); outline-offset: -6px; }
.service:hover p, .service:focus-visible p { color: var(--white); }

.art { position: relative; width: 4.5rem; aspect-ratio: 1; }
.art-rings { border-radius: 50%; background: repeating-radial-gradient(circle, currentColor 0 .22rem, transparent .22rem .55rem); }
.art-dots { border-radius: 50%; background: radial-gradient(currentColor 1.4px, transparent 1.9px) 0 0 / 8px 8px; }
.art-half::before, .art-half::after { content: ""; position: absolute; left: 0; right: 0; }
.art-half::before { top: 0; bottom: 50%; background: currentColor; border-radius: 999px 999px 0 0; }
.art-half::after { top: 50%; bottom: 0; border: .28rem solid currentColor; border-top: 0; border-radius: 0 0 999px 999px; }
.art-square { border: .28rem solid currentColor; }
.art-square::after { content: ""; position: absolute; inset: 22%; background: currentColor; border-radius: 50%; }
.art-rays {
  border-radius: 50%; background: repeating-conic-gradient(currentColor 0 6deg, transparent 6deg 12deg);
  -webkit-mask: radial-gradient(circle, transparent 20%, #000 21%); mask: radial-gradient(circle, transparent 20%, #000 21%);
}

/* La agencia */
.about {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 1.5rem var(--pad);
  padding: clamp(3rem, 7vw, 6rem) var(--pad); border-top: 2px solid var(--black);
}
.about-text { display: grid; gap: 1.75rem; max-width: 48rem; }
.lead { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -.03em; }
.about-text p:not(.lead) { color: var(--grey); }

/* Contacto */
.contact {
  background: var(--black); color: var(--white);
  padding: clamp(4rem, 9vw, 8rem) var(--pad);
  display: grid; gap: 1.25rem; justify-items: start;
}
.contact-intro { max-width: 28rem; margin-bottom: 1rem; }
.contact-big {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 5vw, 4.5rem);
  letter-spacing: -.045em; line-height: 1.05; text-decoration: none; overflow-wrap: anywhere;
  border-bottom: 3px solid currentColor; transition: background .2s, color .2s;
}
.contact-big:hover { background: var(--white); color: var(--black); }

.site-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.5rem var(--pad); background: var(--black); color: var(--white);
  border-top: 1px solid rgba(255,255,255,.3); font-size: .95rem;
}
.site-footer img { height: 1.3rem; width: auto; filter: invert(1); }

@media (max-width: 820px) {
  .service { grid-template-columns: 4rem 1fr; }
  .service p { grid-column: 1 / -1; }
  .art { width: 3.5rem; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .brand img { height: 1.2rem; }
  .nav { gap: .9rem; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track, .hero h1 { animation: none; }
  * { transition: none !important; }
}

/* Botón y panel de WhatsApp */
[hidden] { display: none !important; }
.wa {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 20;
  display: flex; flex-direction: column; align-items: flex-end; gap: .85rem;
}
.wa-toggle {
  display: grid; place-items: center; width: 3.7rem; height: 3.7rem; padding: 0; cursor: pointer;
  background: var(--black); color: var(--white);
  border: 2px solid var(--white); border-radius: 50%;
  box-shadow: 0 0 0 2px var(--black);
  transition: background .2s, color .2s;
}
.wa-toggle:hover { background: var(--white); color: var(--black); }
.wa-panel {
  width: min(22rem, calc(100vw - 2.5rem)); padding: 1.25rem;
  background: var(--white); color: var(--black);
  border: 2px solid var(--black); box-shadow: 6px 6px 0 var(--black);
}
.wa-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.wa-head h2 { font-size: 1.05rem; letter-spacing: -.03em; line-height: 1.2; }
.wa-close { background: none; border: 0; padding: 0 .25rem; font-size: 1.8rem; line-height: 1; cursor: pointer; color: inherit; }
.wa-panel form { display: grid; gap: .9rem; }
.wa-panel label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.wa-panel input, .wa-panel textarea {
  width: 100%; font: inherit; font-weight: 400; padding: .65rem .75rem;
  border: 2px solid var(--black); border-radius: 0; background: var(--white); color: var(--black);
}
.wa-panel textarea { resize: vertical; }
.wa-send { cursor: pointer; font: inherit; font-weight: 600; width: 100%; text-align: center; }
.wa-note, .wa-fallback { font-size: .85rem; color: var(--grey); }
.wa-fallback { color: var(--black); font-weight: 600; }
