/* =========================================================
   SIMBIOSIS x Lluis de la Riva
   Editorial "papel" · anotaciones a mano · garabatos rojos
   ========================================================= */

:root {
  --paper:    #f2eee4;   /* crema papel */
  --paper-2:  #e9e3d5;
  --ink:      #15130d;   /* negro cálido */
  --ink-soft: #544f43;
  --ink-mute: #8c8474;
  --dark:     #141209;   /* secciones oscuras */
  --dark-2:   #1d1a12;
  --cream:    #f2eee4;   /* texto sobre oscuro */
  --red:      #df3a1f;   /* garabato / acento */
  --red-deep: #bb2f17;
  --sage:     #93a07d;   /* verde (pincel / línea) */
  --line:     rgba(21,19,13,0.14);
  --line-d:   rgba(242,238,228,0.16);

  --poster: "Anton", Impact, sans-serif;       /* titulares condensados */
  --serif:  "Fraunces", Georgia, serif;          /* serif editorial */
  --hand:   "Caveat", "Comic Sans MS", cursive;  /* manuscrito / garabatos */
  --sans:   "Archivo", -apple-system, sans-serif;

  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* textura papel sutil */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(22px, 5vw, 64px); }

/* ---------- Tipografía base ---------- */
.poster { font-family: var(--poster); font-weight: 400; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.005em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--red); display: inline-block; }
.eyebrow.center { justify-content: center; }

.lead { color: var(--ink-soft); font-size: clamp(18px, 2vw, 22px); font-weight: 350; }
em, .ital { font-style: italic; }

/* ---------- Manuscrito / anotaciones ---------- */
.hand { font-family: var(--hand); font-weight: 600; line-height: 1; color: var(--red); }
.note {
  font-family: var(--hand); font-weight: 600; color: var(--red);
  font-size: clamp(22px, 2.6vw, 34px); transform: rotate(-4deg); display: inline-block;
}
.note.dark { color: var(--ink); }

/* ---------- Garabatos (SVG dibujados a mano) ---------- */
.scribble { position: absolute; pointer-events: none; overflow: visible; }
.scribble path { fill: none; stroke: var(--red); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.scribble path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in .scribble path, .scribble.in path { animation: draw 1s var(--ease) forwards; }
.in .scribble path:nth-child(2), .scribble.in path:nth-child(2) { animation-delay: .55s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* posiciones típicas */
.u-wrap { position: relative; display: inline-block; }
.u-wrap .scribble.underline { left: -4%; right: -4%; width: 108%; bottom: -0.32em; height: 0.42em; }
.c-wrap { position: relative; display: inline-block; isolation: isolate; }
.c-wrap .scribble.circle { left: -10%; right: -10%; top: -22%; width: 120%; height: 150%; z-index: -1; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9995;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(22px, 5vw, 64px);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease), color .4s;
  color: var(--cream); border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--paper); color: var(--ink);
  padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--poster); text-transform: uppercase; font-size: 22px; letter-spacing: 0.02em; display: flex; align-items: center; gap: 9px; }
.brand .x { font-family: var(--hand); text-transform: none; color: var(--red); font-size: 26px; font-weight: 700; line-height: 1; }
.brand .sm { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; transform: translateY(3px); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  position: relative; padding: 6px 2px; transition: color .3s; opacity: .85;
}
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--red); transition: width .35s var(--ease); }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--red); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 22px; position: relative; z-index: 60; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: .35s var(--ease); }
.nav-toggle span:nth-child(1) { top: 2px; } .nav-toggle span:nth-child(2) { top: 10px; } .nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--dark); color: var(--cream); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img,
.hero-media video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(0.62); transform: scale(1.06); animation: kb 16s ease-out forwards; }
@keyframes kb { to { transform: scale(1); } }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(20,18,9,0.92) 30%, rgba(20,18,9,0.45) 70%, rgba(20,18,9,0.7) 100%); }

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero .eyebrow { color: #ff7a5e; }
.hero .eyebrow::before { background: var(--red); }
.hero h1 { margin: 22px 0 0; }
.hero h1 .big { font-family: var(--poster); font-weight: 400; text-transform: uppercase; font-size: clamp(64px, 16vw, 230px); line-height: 0.84; letter-spacing: -0.01em; display: block; }
.hero h1 .script { font-family: var(--hand); font-weight: 700; color: var(--red); font-size: clamp(34px, 7vw, 92px); display: inline-block; transform: rotate(-3deg); margin-top: 6px; }
.hero p { max-width: 500px; margin-top: 30px; color: rgba(242,238,228,0.82); }
.hero .annot { position: absolute; top: 16%; right: 4%; max-width: 230px; text-align: center; display: none; }
.hero .annot .note { color: #ff8a70; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; font-family: var(--hand); font-weight: 600; font-size: 20px; color: #ff8a70; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scroll-cue i { width: 2px; height: 40px; background: linear-gradient(var(--red), transparent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.4); transform-origin: top; opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* =========================================================
   MARQUEE (palabras gigantes que pasan)
   ========================================================= */
.marquee { overflow: hidden; border-block: 2px solid var(--ink); padding: 18px 0; background: var(--paper); }
.marquee.dark { background: var(--dark); border-color: var(--line-d); }
.marquee-track { display: inline-flex; white-space: nowrap; will-change: transform; animation: scroll-x 90s linear infinite; }
.marquee span { font-family: var(--poster); text-transform: uppercase; font-size: clamp(34px, 6vw, 76px); padding: 0 26px; color: transparent; -webkit-text-stroke: 1.4px var(--ink); }
.marquee.dark span { -webkit-text-stroke-color: rgba(242,238,228,0.4); }
.marquee span .dot { color: var(--red); -webkit-text-stroke: 0; }
.marquee span.solid { color: var(--ink); -webkit-text-stroke: 0; }
.marquee.dark span.solid { color: var(--cream); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* =========================================================
   SECCIONES
   ========================================================= */
section { position: relative; z-index: 2; }
.section { padding: clamp(72px, 12vh, 140px) 0; }
.section.dark { background: var(--dark); color: var(--cream); }
.section-head { max-width: 820px; }
.section-head h2 { margin-top: 20px; }
.h-poster { font-family: var(--poster); text-transform: uppercase; font-weight: 400; line-height: 0.92; font-size: clamp(40px, 8vw, 110px); letter-spacing: -0.005em; }
.h-poster .red { color: var(--red); }
.h-serif { font-family: var(--serif); font-size: clamp(34px, 6vw, 76px); }

/* Sobre mí */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 84px); align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.about-media .tape { position: absolute; top: -14px; left: 22px; background: var(--red); color: var(--paper); font-family: var(--hand); font-weight: 700; font-size: 24px; padding: 4px 20px; transform: rotate(-3deg); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.about-media .scribble.arrow { width: 150px; height: 90px; right: -56px; bottom: 40px; }
.about-text .h-poster { margin: 16px 0 10px; }
.about-text p { color: var(--ink-soft); }
.about-text p + p { margin-top: 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tag { font-family: var(--hand); font-weight: 600; font-size: 21px; color: var(--ink); border: 2px solid var(--ink); border-radius: 40px 24px 40px 24px / 24px 40px 24px 40px; padding: 4px 18px; transform: rotate(-1.5deg); }
.tag:nth-child(even) { transform: rotate(1.5deg); border-color: var(--red); color: var(--red); }

/* Filosofía */
.philosophy { text-align: center; }
.philosophy .big-quote { font-family: var(--poster); text-transform: uppercase; font-size: clamp(46px, 12vw, 168px); line-height: 0.86; margin: 18px auto 0; }
.philosophy .big-quote .red { color: var(--red); position: relative; }
.philosophy .sub-note { margin-top: 34px; }
.philosophy .sub-note .note { font-size: clamp(26px, 3.4vw, 44px); }

/* Servicios preview (home) — tarjetas con foto */
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 50px; }
.svc-card { position: relative; overflow: hidden; border: 2px solid var(--ink); background: var(--ink); aspect-ratio: 1 / 1.14; display: block; color: var(--cream); }
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.6) contrast(1.05); transition: transform .9s var(--ease), filter .6s; }
.svc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,15,7,.92) 8%, rgba(18,15,7,.18) 56%, rgba(18,15,7,.5)); }
.svc-card:hover img { transform: scale(1.07); filter: grayscale(0) brightness(.74) contrast(1.02); }
.svc-card-in { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 22px 24px; }
.svc-card .meta h3 { font-family: var(--poster); text-transform: uppercase; font-weight: 400; font-size: clamp(21px, 2.1vw, 28px); line-height: .98; }
.svc-card .note-sm { font-family: var(--hand); font-weight: 600; color: #ff8a70; font-size: 20px; display: block; margin-top: 8px; line-height: 1.06; }
.svc-card .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: 0; transform: translateY(8px); transition: .4s var(--ease); }
.svc-card:hover .go { opacity: 1; transform: none; }
.svc-card .go .arr { transition: transform .35s var(--ease); }
.svc-card:hover .go .arr { transform: translateX(5px); }

/* tarjeta final: enlace a todos */
.svc-card--cta { background: var(--paper-2); color: var(--ink); }
.svc-card--cta::after { display: none; }
.cta-in { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 28px; transition: color .4s; }
.cta-in .hand { font-family: var(--hand); font-weight: 700; color: var(--red); font-size: 30px; transform: rotate(-4deg); align-self: flex-start; }
.cta-in h3 { font-family: var(--poster); text-transform: uppercase; font-weight: 400; font-size: clamp(26px, 2.8vw, 38px); line-height: .95; }
.cta-in .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--red); }
.cta-in .go .arr { transition: transform .35s var(--ease); }
.svc-card--cta:hover { background: var(--ink); }
.svc-card--cta:hover .cta-in { color: var(--cream); }
.svc-card--cta:hover .cta-in .hand, .svc-card--cta:hover .cta-in .go { color: #ff8a70; }
.svc-card--cta:hover .cta-in .go .arr { transform: translateX(5px); }

/* =========================================================
   BOCETO A MANO (sketch estilo cuaderno)
   ========================================================= */
.sketch-section { background: rgba(54, 44, 20, 0.055); border-block: 2px solid var(--ink); overflow: visible; z-index: 6; }
.sketch-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: center; max-width: 1120px; margin-inline: auto; }
.sketch-title { font-family: var(--hand); font-weight: 700; color: var(--ink); font-size: clamp(38px, 5.1vw, 82px); line-height: 1.12; text-transform: lowercase; }
.sketch-title .red { color: var(--red); }
.sketch-cap { margin-top: 22px; color: var(--ink-soft); max-width: 360px; }
.sketch-cap .star { color: var(--red); }
.sketch-text { position: relative; }
.sketch-title { transform: rotate(-3deg); transform-origin: 6% 50%; }
.sketch-tag { font-family: var(--hand); font-weight: 700; color: var(--red); font-size: clamp(22px, 2.4vw, 30px); transform: rotate(-3deg); display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; }
.sketch-tag .scribble { position: static; width: 60px; height: 26px; flex: 0 0 auto; }
.sketch-tag .scribble path { stroke: var(--red); stroke-width: 2.6; }
.sketch { position: relative; max-width: 540px; margin: 0 auto; }
.sketch svg { width: 100%; height: auto; overflow: visible; display: block; transform: rotate(-5deg); transform-origin: 50% 50%; }

.sketch .ink { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal.in .sketch .inks-main path { animation: draw 1.5s var(--ease) forwards; }
.reveal.in .sketch .inks-detail path { animation: draw 1s var(--ease) forwards; animation-delay: .9s; }
.sketch .inks-detail path { stroke-width: 1.8; }
.sketch .box-bg { fill: var(--paper-2); }

.sketch .star5 { fill: var(--red); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); }
.reveal.in .sketch .star5 { animation: pop .55s var(--ease) forwards; animation-delay: 1.35s; }
.reveal.in .sketch .star5:nth-of-type(2) { animation-delay: 1.5s; }
.reveal.in .sketch .star5:nth-of-type(3) { animation-delay: 1.65s; }
@keyframes pop { 0% { opacity: 0; transform: scale(.2) rotate(-15deg); } 70% { opacity: 1; transform: scale(1.18) rotate(4deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }

.sketch text.box-lbl { font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: 0.14em; fill: var(--ink); }
.sketch text.note-lbl { font-family: var(--hand); font-weight: 700; font-size: 30px; fill: var(--red); }
.sketch text.note-ink { font-family: var(--hand); font-weight: 700; font-size: 30px; fill: var(--ink); }
.sketch .accent-red { stroke: var(--red); stroke-width: 4.8; }
.sketch .dot-red { fill: var(--red); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2); }
.reveal.in .sketch .dot-red { animation: pop .55s var(--ease) forwards; animation-delay: 1.4s; }
.sketch .lbl { opacity: 0; }
.reveal.in .sketch .lbl { animation: fadein .7s var(--ease) forwards; animation-delay: 1.2s; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.sketch { cursor: grab; touch-action: none; }
.sketch.dragging { cursor: grabbing; }

/* Boceto "El método" como imagen (fondo transparente) */
.sketch-img { width: 100%; height: auto; display: block; transform: rotate(-2deg); transform-origin: 50% 50%; -webkit-user-drag: none; user-select: none; }

/* firma manuscrita */
.signature { font-family: var(--hand); font-weight: 700; color: var(--ink); font-size: clamp(34px, 4vw, 50px); margin-top: 22px; display: inline-block; transform: rotate(-4deg); }
.signature .pen { color: var(--red); }

/* círculo a mano alrededor de una palabra */
.c-wrap .scribble.circle path { stroke-width: 2.6; }

/* =========================================================
   SERVICIOS (página)
   ========================================================= */
.svc-item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; padding: clamp(54px, 9vh, 100px) 0; border-bottom: 2px solid var(--ink); }
.svc-item:nth-child(even) .svc-item-media { order: 2; }
.svc-item-media { position: relative; }
.svc-item-media img,
.svc-item-media video { width: 100%; aspect-ratio: 5/6; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .9s var(--ease); }
/* pasan a color cuando la imagen aparece completa en pantalla */
.svc-item-media.is-color img,
.svc-item-media.is-color video { filter: grayscale(0) contrast(1.02); }
.svc-item-media .idx { position: absolute; top: -28px; left: -10px; font-family: var(--poster); font-size: clamp(70px, 11vw, 150px); color: var(--red); line-height: 1; z-index: 2; }
.svc-item-media .tape { position: absolute; bottom: 18px; right: -12px; background: var(--ink); color: var(--paper); font-family: var(--hand); font-weight: 700; font-size: 24px; padding: 5px 20px; transform: rotate(2.5deg); }
.svc-item-body .h-poster { font-size: clamp(34px, 6vw, 72px); margin: 8px 0 18px; }
.svc-item-body p { color: var(--ink-soft); } .svc-item-body p + p { margin-top: 14px; }
.spec-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.spec-list li { display: flex; gap: 14px; align-items: baseline; font-family: var(--hand); font-weight: 600; font-size: 24px; color: var(--ink); }
.spec-list li::before { content: "✦"; color: var(--red); font-size: 18px; }

/* --- Galería "Arroces y fideuás": las fotos pasan al hacer scroll --- */
.svc-gallery { position: relative; }
.shots { position: relative; width: 100%; aspect-ratio: 5/6; overflow: hidden; background: var(--ink); }
.shots .shot { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.shots .shot.is-on { opacity: 1; }
.shots-dots { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 9px; z-index: 3; }
.shots-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(242,238,228,.55); transition: background .3s var(--ease), transform .3s var(--ease); }
.shots-dots span.on { background: var(--red); transform: scale(1.35); }

@media (min-width: 881px) {
  .svc-gallery { height: calc(100vh + var(--shots, 4) * 58vh); }
  .svc-gallery-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
  .svc-item-gallery { border-bottom: 0; padding: 0; width: 100%; margin: 0; }
  .svc-item-gallery .svc-item-body { order: 1; }
  .svc-item-gallery .svc-item-media { order: 2; }
}

@media (max-width: 880px) {
  /* En móvil no se fija: galería deslizable con el dedo */
  .svc-gallery-pin { position: static; height: auto; }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shots .shot { position: relative; inset: auto; flex: 0 0 100%; opacity: 1; scroll-snap-align: center; }
  .shots-dots { display: none; }
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact-hero { padding-top: clamp(130px, 20vh, 220px); }
.contact-hero .wrap { position: relative; }
.hero-doodle { position: absolute; top: 30%; right: 5%; width: clamp(130px, 15vw, 215px); height: auto; transform: rotate(-2deg); pointer-events: none; z-index: 4; }
/* En móvil/tablet: misma posición (a la derecha del título) pero más pequeño */
@media (max-width: 980px) { .hero-doodle { width: 92px; top: 27%; right: 4%; } }
@media (max-width: 560px) { .hero-doodle { width: 68px; top: 24%; right: 4%; } }
.contact-hero .h-poster { font-size: clamp(56px, 15vw, 200px); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.contact-card {
  background: var(--paper); border: 2px solid var(--ink); padding: 30px 26px 26px;
  display: flex; flex-direction: column; gap: 12px; position: relative;
  transition: transform .4s var(--ease), background .4s, box-shadow .4s;
}
.contact-card:nth-child(odd) { transform: rotate(-1deg); }
.contact-card:nth-child(even) { transform: rotate(1deg); }
.contact-card:hover { transform: rotate(0) translateY(-6px); background: var(--ink); color: var(--cream); box-shadow: 10px 12px 0 var(--red); }
.contact-card .ic { width: 40px; height: 40px; color: var(--red); }
.contact-card:hover .ic { color: #ff8a70; }
.contact-card .ic svg { width: 100%; height: 100%; }
.contact-card .k { font-family: var(--hand); font-weight: 700; font-size: 24px; color: var(--red); }
.contact-card:hover .k { color: #ff8a70; }
.contact-card .v { font-family: var(--poster); text-transform: uppercase; font-size: clamp(18px, 2vw, 24px); word-break: break-word; }
.contact-card .go { margin-top: auto; padding-top: 16px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.contact-card .go span { transition: transform .35s var(--ease); }
.contact-card:hover .go span { transform: translateX(6px); }
.contact-note { margin-top: 44px; font-family: var(--hand); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); color: var(--ink); }
.contact-note mark { background: transparent; color: var(--red); }

/* =========================================================
   CTA
   ========================================================= */
.cta { text-align: center; }
.cta .h-poster { font-size: clamp(40px, 9vw, 120px); max-width: 16ch; margin: 18px auto 0; }

/* =========================================================
   BOTONES
   ========================================================= */
.btn { display: inline-flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; padding: 16px 32px; border: 2px solid var(--ink); transition: .35s var(--ease); }
.btn-primary { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--red); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.section.dark .btn-ghost { color: var(--cream); border-color: var(--cream); }
.section.dark .btn-ghost:hover { box-shadow: 6px 6px 0 var(--red); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.cta .btn-row { justify-content: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--dark); color: var(--cream); padding: 64px 0 36px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
.footer .brand { font-size: 34px; }
.footer .tagline { font-family: var(--hand); font-weight: 600; font-size: 24px; color: #ff8a70; max-width: 320px; margin-top: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; opacity: .85; transition: .3s; }
.footer-links a:hover { opacity: 1; color: #ff8a70; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-d); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12px; letter-spacing: 0.08em; color: var(--ink-mute); }
.footer-bottom .credit { margin-left: auto; }
.footer-bottom .credit a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(242,238,228,.35); transition: color .25s, border-color .25s; }
.footer-bottom .credit a:hover { color: #ff8a70; border-color: #ff8a70; }
.footer-legal { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-d); display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); transition: color .25s; }
.footer-legal a:hover { color: #ff8a70; }
.footer-legal + .footer-bottom { margin-top: 22px; }

/* =========================================================
   PÁGINAS LEGALES
   ========================================================= */
.legal { padding: clamp(130px, 20vh, 190px) 0 90px; }
.legal .wrap { max-width: 860px; }
.legal .eyebrow { margin-bottom: 14px; }
.legal h1 { font-family: var(--poster); text-transform: uppercase; font-weight: 400; line-height: .94; font-size: clamp(40px, 8vw, 92px); letter-spacing: -0.01em; margin-bottom: 12px; }
.legal .updated { display: inline-block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 46px; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 3.2vw, 30px); line-height: 1.15; margin: 46px 0 14px; }
.legal h3 { font-family: var(--sans); font-weight: 700; font-size: 16px; letter-spacing: 0.01em; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.75; color: var(--ink-soft); }
.legal p { margin-bottom: 14px; }
.legal ul { list-style: none; padding: 0; margin: 0 0 16px; }
.legal ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.legal ul li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 8px; height: 2px; background: var(--red); }
.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { opacity: .75; }
.legal .fill { background: rgba(223, 58, 31, 0.10); color: var(--red); font-weight: 600; padding: 1px 6px; border-radius: 4px; }
.legal .note-box { margin-top: 44px; padding: 20px 22px; border: 1px dashed var(--line); border-radius: 12px; background: rgba(0,0,0,0.02); }
.legal .note-box p { font-size: 14px; color: var(--ink-mute); margin: 0; }

/* =========================================================
   MODAL — formulario de contacto
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 10000; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(21,19,13,0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s var(--ease); }
.modal.open .modal-backdrop { opacity: 1; }
.modal-scroll { position: absolute; inset: 0; overflow-y: auto; display: flex; align-items: flex-start; justify-content: center; padding: max(5vh, 32px) 20px; }
.modal-panel { position: relative; z-index: 1; width: 100%; max-width: 560px; background: var(--paper); border: 1px solid var(--ink); border-radius: 16px; padding: clamp(28px, 5vw, 46px); box-shadow: 0 30px 90px rgba(0,0,0,0.35); transform: translateY(24px) scale(.985); opacity: 0; transition: transform .4s var(--ease), opacity .4s var(--ease); }
.modal.open .modal-panel { transform: none; opacity: 1; }
.modal-close { position: absolute; top: 16px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); transition: .25s; }
.modal-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.modal-title { font-family: var(--poster); text-transform: uppercase; font-weight: 400; font-size: clamp(30px, 6vw, 48px); line-height: .92; margin: 8px 0 10px; }
.modal-sub { color: var(--ink-soft); font-size: 15px; line-height: 1.6; max-width: 90%; }

.contact-form { display: grid; gap: 14px; margin-top: 24px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--ink-mute); margin-bottom: 7px; }
.field label span { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .7; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink); background: rgba(255,255,255,0.55); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #b3ab9b; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(223,58,31,0.12); }
.contact-form textarea { min-height: 108px; resize: vertical; }
.contact-form .form-submit { justify-content: center; margin-top: 6px; width: 100%; }
.js-honey { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status { font-size: 14px; line-height: 1.5; margin: 4px 0 0; min-height: 0; }
.form-status.is-sending { color: var(--ink-mute); }
.form-status.is-error { color: var(--red); }

.form-success { display: none; text-align: center; padding: 12px 0 6px; }
.modal-panel.is-sent .contact-form { display: none; }
.modal-panel.is-sent .form-success { display: block; }
.modal-panel.is-sent .modal-title, .modal-panel.is-sent .modal-sub, .modal-panel.is-sent > .eyebrow { display: none; }
.form-success .fs-check { width: 64px; height: 64px; margin: 6px auto 18px; border-radius: 50%; background: var(--red); color: var(--paper); font-size: 34px; display: grid; place-items: center; }
.form-success h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-bottom: 8px; }
.form-success p { color: var(--ink-soft); margin-bottom: 22px; }

@media (max-width: 520px) {
  .contact-form .row { grid-template-columns: 1fr; }
}

/* =========================================================
   REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .12s; }
.reveal[data-d="2"] { transition-delay: .24s; }
.reveal[data-d="3"] { transition-delay: .36s; }

/* =========================================================
   MODO DIBUJO (pintar en la web)
   ========================================================= */
/* =========================================================
   LÍNEAS DECORATIVAS (recorren toda la web)
   ========================================================= */
#flow-lines { position: absolute; top: 0; left: 0; z-index: -1; pointer-events: none; overflow: visible; }
#flow-lines path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: fl-draw 3.2s var(--ease) forwards; }
.fl-green { stroke: var(--sage); stroke-width: 2.2; opacity: .1; }
.fl-red { stroke: var(--red); stroke-width: 2.2; opacity: .11; animation-delay: .2s; }
@keyframes fl-draw { to { stroke-dashoffset: 0; } }

#doodle-canvas { position: absolute; top: 0; left: 0; z-index: 9990; pointer-events: none; }
/* el modo dibujo está siempre activo: cursor de lápiz sobre el contenido */
body { cursor: crosshair; }
.nav, .doodle-bar { cursor: default; }
a, button, .nav a, .btn { cursor: pointer; }
/* en móvil / táctil: sin modo dibujo (cursor normal y barra oculta) */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  .doodle-bar, #doodle-canvas { display: none !important; }
}

.doodle-bar {
  position: fixed; right: 16px; bottom: 16px; z-index: 9999;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 9px; border-radius: 100px;
  background: rgba(242, 238, 228, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: .5; transition: opacity .25s var(--ease);
}
.doodle-bar:hover { opacity: 1; }
.doodle-swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(21,19,13,.3); cursor: pointer; padding: 0; transition: transform .2s var(--ease); }
.doodle-swatch:hover { transform: scale(1.25); }
.doodle-swatch.is-active { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--paper), 0 0 0 3px var(--ink); }
.doodle-clear { display: grid; place-items: center; width: 18px; height: 18px; background: none; border: 0; cursor: pointer; color: var(--ink-mute); padding: 0; transition: color .2s; }
.doodle-clear svg { width: 15px; height: 15px; }
.doodle-clear:hover { color: var(--red); }

@media (max-width: 560px) {
  .doodle-bar { right: 12px; bottom: 12px; }
}

/* =========================================================
   PÁGINA CONTACTO — todo en una pantalla (sin scroll)
   ========================================================= */
.page-contacto .contact-hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding-top: 96px; padding-bottom: 36px;
}
.page-contacto .contact-hero .h-poster { font-size: clamp(34px, 5.6vw, 74px); }
.page-contacto .contact-hero .lead { font-size: clamp(15px, 1.5vw, 18px); margin-top: 16px !important; max-width: 560px; }
.page-contacto .contact-grid { margin-top: clamp(22px, 3vh, 38px); }
.page-contacto .contact-card { padding: 22px 22px 20px; }
.page-contacto .contact-card .ic { width: 34px; height: 34px; }
.page-contacto .contact-card .v { font-size: clamp(16px, 1.7vw, 22px); }
.page-contacto .contact-note { margin-top: clamp(20px, 2.6vh, 34px); }
.page-contacto .footer { display: none; }

@media (max-height: 700px) {
  .page-contacto .contact-hero .h-poster { font-size: clamp(30px, 4.6vw, 54px); }
  .page-contacto .contact-card { padding: 16px 18px 16px; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 880px) {
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--paper); color: var(--ink); transform: translateY(-100%);
    transition: transform .5s var(--ease); pointer-events: none;
  }
  .nav-links.open { transform: none; pointer-events: auto; }
  .nav-links a { font-size: 26px; font-family: var(--poster); opacity: 1; }
  .nav-toggle { display: block; }
  .nav:not(.scrolled) .nav-toggle { color: var(--cream); }

  .about, .svc-item, .svc-item:nth-child(even) .svc-item-media { grid-template-columns: 1fr; }
  .svc-item:nth-child(even) .svc-item-media { order: 0; }
  .about-media .scribble.arrow { display: none; }
  .svc-cards { grid-template-columns: 1fr 1fr; }
  .sketch-wrap { grid-template-columns: 1fr; }
  .sketch { max-width: 300px; margin: 6px auto 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card:nth-child(odd), .contact-card:nth-child(even) { transform: none; }
  .scroll-cue { display: none; }
}

@media (max-width: 560px) {
  .svc-cards { grid-template-columns: 1fr; }
  .sketch { max-width: 235px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .scribble path, #flow-lines path { stroke-dashoffset: 0; }
}
