/* ============================================
   Chinni Design Studio — paleta "noche en el estudio"
   Colores medidos del video y de la imagen de referencia:
   ventana índigo, pantallas pastel (periwinkle, celeste,
   lila, rosa), cortina malva, luz de lámpara ámbar.
   ============================================ */

:root {
  /* Fondos claros, apenas cálidos */
  --paper: #fbfaf8;
  --cream: #f6f4f1;
  --cream-2: #ece8f3;

  /* Texto: índigo de la ventana, casi negro */
  --ink: #1c1a3a;
  --ink-soft: #46445f;
  --ink-mute: #8a889e;

  /* Noche */
  --night: #17163a;        /* ventana de noche, más profunda */
  --indigo: #393582;       /* ventana / UI de la pantalla */
  --indigo-soft: #534c9d;
  --mauve: #5c3f79;        /* cortina */
  --orchid: #9b4aa0;       /* halo de la lámpara de lava */

  /* Pasteles de la pantalla */
  --periwinkle: #aac5fb;
  --sky: #8fcce2;
  --lilac: #e3ccf2;
  --pink: #e5afe9;
  --sage: #b9c8a4;         /* verde de las plantas, llevado a pastel */

  /* Luz de lámpara (cálida) */
  --lamp: #fdaf5a;
  --lamp-soft: #ffe2bd;

  /* Nombres que usa el CSS del home */
  --violet: var(--indigo);
  --lavender: var(--lilac);
  --lavender-soft: #ece6fb;
  --mint: var(--sage);
  --terracotta: var(--indigo);
  --amber: var(--lamp);
  --amber-soft: var(--lamp-soft);
  --peach: var(--pink);
  --moss: #6f8a5e;
  --dusk: #2b2950;

  /* Alias de la paleta vieja, para las páginas internas */
  --olive: var(--moss);
  --olive-deep: #4a5f3d;
  --mustard: var(--indigo-soft);
  --mustard-soft: var(--lilac);
  --rust: var(--indigo);
  --rust-soft: var(--periwinkle);
  --sage-soft: #dfe7d3;
  --clay: var(--lilac);
  --ink-line: var(--ink);
  --shadow-card: 0 1px 2px rgba(28, 26, 58, 0.05), 0 18px 34px -18px rgba(28, 26, 58, 0.2);
  /* Sombra cálida, como luz de lámpara — hover de botones y cards */
  /* Brillo pastel en hover: un solo color por elemento (ver "Color del brillo por card" más abajo) */
  --glow-c: 196, 172, 240; /* lila por defecto */
  --focus: var(--indigo-soft);
  --ease: cubic-bezier(.2, .8, .25, 1);

  /* Tipografías */
  --font-hand: "Outfit", system-ui, sans-serif;
  --font-hand-alt: "Outfit", system-ui, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-serif: "Outfit", system-ui, sans-serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Sans", system-ui, sans-serif; /* etiquetas: antes monoespaciada, ahora la sans del sitio */

  /* Motion */
  --anim: 1;
  --botanical: 1;
}

* { box-sizing: border-box; }

/* === Color del brillo por card ===
   El brillo se arma en cada elemento con su propio --glow-c, así cada card puede tener un color.
   Cards: alternan lila → verde → amarillo. Botones y pills: lila. */
:root,
.btn, .pill, .chip-link, .slider-arrow, .work-arrow,
.service-card, .work-card, .cs-card, .cs-step, .cs-shot, .polaroid, .paper-card {
  --glow: 0 0 0 1px rgba(var(--glow-c), 0.55), 0 18px 40px -12px rgba(var(--glow-c), 0.9), 0 0 64px -10px rgba(var(--glow-c), 0.75);
  --glow-soft: 0 0 0 1px rgba(var(--glow-c), 0.5), 0 12px 28px -10px rgba(var(--glow-c), 0.8), 0 0 44px -10px rgba(var(--glow-c), 0.65);
  --glow-border: rgba(var(--glow-c), 0.75);
}
:is(.service-card, .work-card, .cs-card, .cs-step, .cs-shot, .polaroid):nth-child(3n+1) { --glow-c: 196, 172, 240; } /* lila */
:is(.service-card, .work-card, .cs-card, .cs-step, .cs-shot, .polaroid):nth-child(3n+2) { --glow-c: 150, 210, 162; } /* verde */
:is(.service-card, .work-card, .cs-card, .cs-step, .cs-shot, .polaroid):nth-child(3n)   { --glow-c: 244, 212, 96; }  /* amarillo */

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grano suave, como luz filtrada */
body::after {
  /* en el home los gradientes van por sección */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at 12% 18%, rgba(170, 197, 251, 0.10) 0%, transparent 42%),
    radial-gradient(ellipse at 88% 80%, rgba(227, 204, 242, 0.12) 0%, transparent 42%);
  z-index: 0;
}

a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  display: inline-block;
}

a.link-animated::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: linear-gradient(90deg, #8aa6f0, #b996e6, #d78bd6); /* línea fina con el degradé del sitio */
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform calc(0.4s * var(--anim)) cubic-bezier(.2,.9,.3,1);
}
a.link-animated:hover::after {
  transform: scaleX(1);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(44px, 5.4vw, 76px); font-weight: 500; }
h1 em { font-family: var(--font-serif); font-style: normal; color: var(--rust); }
h2 { font-size: clamp(34px, 4vw, 54px); font-weight: 500; }
h2 em { font-style: normal; color: var(--rust); }
h3 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 600; letter-spacing: -0.02em; font-family: var(--font-sans); }

/* Tarjeta tipo cinta de papel */
.paper-card {
  background: rgba(252, 247, 232, 0.92);
  border: 1px solid rgba(26, 20, 16, 0.12);
  box-shadow: 4px 6px 0 rgba(26, 20, 16, 0.08);
  position: relative;
}
.paper-card.taped::before {
  content: "";
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 80px; height: 22px;
  background: rgba(232, 201, 127, 0.55);
  border-left: 1px dashed rgba(26, 20, 16, 0.15);
  border-right: 1px dashed rgba(26, 20, 16, 0.15);
}

p { margin: 0 0 1em 0; }

.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* === Nav === */
.nav {
  position: sticky;
  top: 0;
  background: transparent;
  z-index: 50;
  padding: 20px 0;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.nav-logo .leaf-mark {
  width: 32px; height: 32px;
  background: var(--ink);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-size: 14px;
  font-family: var(--font-mono);
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  align-items: center;
}
.nav-links a.active { color: var(--rust); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-left: 12px;
  padding-left: 18px;
  border-left: 1px dashed rgba(26, 20, 16, 0.18);
}
.lang-switch button {
  background: none;
  border: 0;
  padding: 4px 2px;
  color: var(--ink-mute);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 0.2s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { color: var(--rust); font-weight: 500; }
.lang-divider { color: var(--ink-mute); opacity: 0.5; }

/* === Footer === */

/* === Cursor sticker === */
.cursor-sticker {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 28px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, transform 0.15s ease-out;
  opacity: 0;
  will-change: transform;
}
.cursor-sticker.visible { opacity: 1; }

/* === Botanical floating stickers === */
.sticker {
  position: absolute;
  pointer-events: none;
  opacity: calc(0.9 * var(--botanical));
  will-change: transform;
}
@keyframes float-gentle {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-12px) rotate(calc(var(--r, 0deg) + 6deg)); }
}
.sticker.floating {
  animation: float-gentle calc(6s / var(--anim)) ease-in-out infinite;
}

/* Washi tape */
.washi {
  position: absolute;
  height: 28px;
  width: 100px;
  background: repeating-linear-gradient(45deg, var(--mustard-soft) 0 8px, var(--sage-soft) 8px 16px);
  opacity: 0.75;
  pointer-events: none;
}
.washi::before, .washi::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 6px;
  background: radial-gradient(circle at center, transparent 0 3px, rgba(255,255,255,0.6) 3px);
}
.washi::before { left: 0; }
.washi::after { right: 0; }

/* Squiggle */
.squiggle {
  stroke: var(--rust);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Polaroid */
.polaroid {
  background: #fff;
  padding: 14px 14px 54px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform calc(0.5s * var(--anim)) cubic-bezier(.2,.9,.3,1), box-shadow 0.45s var(--ease);
}
.polaroid .caption {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.polaroid:hover {
  transform: rotate(0deg) scale(1.02) !important;
  box-shadow: var(--glow);
}

.polaroid .img-placeholder {
  background: repeating-linear-gradient(135deg, var(--cream-2) 0 10px, var(--cream) 10px 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  padding: 20px;
  aspect-ratio: 4/3;
}
.polaroid .img-placeholder svg {
  opacity: 0.4;
  margin-bottom: 8px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity calc(0.9s * var(--anim)) ease, transform calc(0.9s * var(--anim)) cubic-bezier(.2,.9,.3,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  background: var(--paper);
  border: 1px solid rgba(43, 36, 32, 0.15);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(74,60,45,0.18);
  z-index: 1000;
  font-family: var(--font-mono);
  font-size: 12px;
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.tweaks-panel .tweak-row {
  margin-bottom: 14px;
}
.tweaks-panel .tweak-row label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tweaks-panel select,
.tweaks-panel input[type=range] {
  width: 100%;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(43, 36, 32, 0.15);
  background: var(--cream);
  font-family: inherit;
  font-size: 12px;
  color: var(--ink);
}

/* Palette variants */
body[data-palette="niebla"] {
  /* default — ya definido en :root */
}
body[data-palette="pastel"] {
  --paper: #fbf9f3;
  --cream: #fef3d0;
  --cream-2: #fde2e7;
  --olive: #7a9a6f;
  --moss: #a5c2a0;
  --mustard: #e8c547;
  --mustard-soft: #fff3b0;
  --rust: #d08770;
  --rust-soft: #f0c4b0;
  --terracotta: #e8a87c;
  --sage: #b5c99a;
  --sage-soft: #d4e3b0;
  --clay: #f4c6c6;
}
body[data-palette="earth"] {
  --cream: #ebe2cd;
  --cream-2: #ddd0b3;
  --paper: #f3eee2;
  --ink: #1a1410;
  --ink-soft: #3d322a;
  --ink-mute: #7a6b5c;
  --olive: #5a6840;
  --olive-deep: #2d3820;
  --moss: #8a9560;
  --mustard: #c89548;
  --mustard-soft: #e8c97f;
  --rust: #a0432a;
  --rust-soft: #d68a5e;
  --terracotta: #b8593a;
  --sage: #b5b890;
  --sage-soft: #d8d8b0;
  --clay: #d8b896;
  --ink-line: #1a1410;
  --shadow-card: 4px 6px 0 rgba(26, 20, 16, 0.08), 0 20px 30px -16px rgba(26, 20, 16, 0.18);
}
body[data-palette="coral"] {
  /* alias */
}
body[data-palette="forest"] {
  --paper: #f1ede2;
  --cream: #e5dcc5;
  --cream-2: #d4c8a8;
  --olive: #3d4a24;
  --olive-deep: #2a3418;
  --moss: #6a7f48;
  --mustard: #a8832a;
  --rust: #8a3a1a;
  --terracotta: #a85838;
  --sage: #87966a;
}

/* Font variants */
body[data-fonts="serif"] {
  --font-hand: "Outfit", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
}
body[data-fonts="sans"] {
  --font-serif: "Inter", system-ui, sans-serif;
}
body[data-fonts="mono"] {
  --font-serif: "JetBrains Mono", monospace;
  font-size: 15px;
}

/* Utility */
.tilt-l { transform: rotate(-2deg); }
.tilt-r { transform: rotate(2deg); }
.tilt-xl { transform: rotate(-4deg); }

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--cream-2);
  color: var(--ink-soft);
}
.tag.olive { background: var(--olive); color: var(--cream); }
.tag.mustard { background: var(--mustard); color: var(--ink); }
.tag.rust { background: var(--rust); color: var(--cream); }
.tag.sage { background: var(--sage-soft); color: var(--olive-deep); }

.underline-wavy {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'><path d='M0 3 Q 25 0, 50 3 T 100 3' fill='none' stroke='%23b4532a' stroke-width='1.8' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: 80px 6px;
  padding-bottom: 6px;
}

/* Hide custom cursor on touch */
@media (hover: none) {
  .cursor-sticker { display: none; }
}

/* === Tool stickers === */
.tool-sticker {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(.2,.9,.3,1);
}
.tool-sticker .tool-sticker-inner {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    inset 0 0 0 6px #fff,
    inset 0 0 0 7px rgba(26, 20, 16, 0.12),
    4px 5px 0 rgba(26, 20, 16, 0.1),
    0 14px 22px -10px rgba(26, 20, 16, 0.25);
  transition: transform 0.3s cubic-bezier(.2,.9,.3,1);
}
.tool-sticker:hover {
  transform: rotate(0deg) scale(1.08) !important;
  z-index: 5;
}
.tool-sticker:hover .tool-sticker-inner {
  box-shadow:
    inset 0 0 0 6px #fff,
    inset 0 0 0 7px rgba(26, 20, 16, 0.18),
    6px 8px 0 rgba(26, 20, 16, 0.14),
    0 20px 30px -10px rgba(26, 20, 16, 0.32);
}
.tool-sticker .tool-tooltip {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s cubic-bezier(.2,.9,.3,1);
}
.tool-sticker .tool-tooltip::before {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: var(--ink);
}
.tool-sticker:hover .tool-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Section */
section { position: relative; padding: 100px 0; }
section.tight { padding: 60px 0; }

/* Highlight */
.hl-olive { color: var(--olive-deep); }
.hl-rust { color: var(--rust); }
.hl-mustard { color: var(--mustard); }

/* ============================================
   NAV sobre video + estado al scrollear
   ============================================ */
body.home::after { display: none; } /* en el home los gradientes van por sección */

.nav { transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.nav.scrolled {
  background: rgba(251, 250, 248, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(28, 26, 58, 0.06);
}
.nav.overlay { position: fixed; left: 0; right: 0; }
.nav.overlay:not(.scrolled) .nav-logo,
.nav.overlay:not(.scrolled) .nav-links a,
.nav.overlay:not(.scrolled) .lang-switch button { color: #f4f3fb; }
.nav.overlay:not(.scrolled) .nav-links a.active,
.nav.overlay:not(.scrolled) .lang-switch button.active { color: var(--lilac); }
.nav.overlay:not(.scrolled) .nav-logo .leaf-mark { background: rgba(244, 243, 251, 0.14); color: #f4f3fb; box-shadow: inset 0 0 0 1px rgba(244, 243, 251, 0.35); }
.nav.overlay:not(.scrolled) .lang-switch { border-left-color: rgba(244, 243, 251, 0.3); }
.nav-logo { font-family: var(--font-display); font-size: 21px; font-weight: 500; letter-spacing: -0.02em; }
.nav-links { font-family: var(--font-sans); font-size: 14px; }
.nav-links a.active { color: var(--indigo); }
.lang-switch { font-family: var(--font-sans); }
.lang-switch button.active { color: var(--indigo); }

/* ============================================
   BOTONES — sombra cálida (luz de lámpara) en hover
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.45s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.btn-primary { background: var(--ink); color: #f8f7fd; }
.btn-primary:hover { background: #262352; }
.btn-light { background: #f4f3fb; color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost-light { background: rgba(244, 243, 251, 0.08); color: #f4f3fb; border-color: rgba(244, 243, 251, 0.45); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(244, 243, 251, 0.16); border-color: var(--lilac); }

/* ============================================
   HOME — Hero con video
   ============================================ */
.studio-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--night);
  color: #f4f3fb;
  isolation: isolate;
}
.studio-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.studio-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(23, 22, 58, 0.5) 0%, rgba(23, 22, 58, 0.12) 70%),
    linear-gradient(180deg, rgba(23, 22, 58, 0.5) 0%, rgba(23, 22, 58, 0.05) 30%, rgba(23, 22, 58, 0.1) 65%, rgba(23, 22, 58, 0.7) 100%),
    linear-gradient(rgba(37, 40, 113, 0.10), rgba(37, 40, 113, 0.10)); /* velo azul de la ventana, suave */
}
.studio-hero-inner {
  text-align: center;
  padding: 120px 24px 100px;
  max-width: 980px;
}
.studio-kicker {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin-bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.studio-kicker::before,
.studio-kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.studio-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(52px, 8.6vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #f8f7fd;
  text-shadow: 0 2px 40px rgba(23, 22, 58, 0.4);
  margin: 0 0 28px;
}
.studio-title em {
  font-style: normal;
  font-weight: 200;
  background: linear-gradient(90deg, var(--periwinkle), var(--lilac) 50%, var(--pink));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.studio-lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(244, 243, 251, 0.88);
  max-width: 540px;
  margin: 0 auto 40px;
}
.studio-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, transparent, rgba(170, 197, 251, 0.9));
  overflow: hidden;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -40%;
  height: 40%;
  background: #fff;
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { to { top: 110%; } }

/* Entrada del hero */
.rise { opacity: 0; transform: translateY(18px); animation: rise 1.1s var(--ease) forwards; }
.rise.d1 { animation-delay: 0.15s; }
.rise.d2 { animation-delay: 0.35s; }
.rise.d3 { animation-delay: 0.55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============================================
   HOME — encabezados de sección
   ============================================ */
.section-head { text-align: center; max-width: 980px; margin: 0 auto 52px; position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--indigo-soft);
  margin-bottom: 16px;
}
.section-head h2,
.contact-band h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.04em; }
/* Palabra destacada: el mismo degradé de "Design Studio" del hero (periwinkle → lila → rosa), en tonos un punto más profundos para que se lea sobre fondo claro */
.section-head h2 em {
  font-style: normal;
  font-weight: 400;
  background: linear-gradient(90deg, #8aa6f0 0%, #b996e6 55%, #d78bd6 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}
.section-head p { font-size: 17px; color: var(--ink-soft); margin: 18px auto 0; max-width: 560px; }

/* ============================================
   HOME — fondos claros con gradientes suaves
   ============================================ */
.services,
.works { position: relative; overflow: hidden; }
.services {
  background:
    radial-gradient(ellipse 45% 55% at 0% 10%, rgba(170, 197, 251, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 100% 90%, rgba(227, 204, 242, 0.32) 0%, transparent 70%),
    var(--paper);
}
.works {
  background:
    radial-gradient(ellipse 45% 55% at 100% 0%, rgba(143, 204, 226, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 55% at 0% 100%, rgba(185, 200, 164, 0.24) 0%, transparent 70%),
    radial-gradient(ellipse 30% 40% at 50% 50%, rgba(255, 226, 189, 0.22) 0%, transparent 70%),
    var(--cream);
}

/* Objetos de oficina en línea fina, muy tenues: no compiten con el contenido */
.doodle {
  position: absolute;
  pointer-events: none;
  color: var(--indigo);
  opacity: 0.11;
  z-index: 0;
}
.doodle svg { display: block; }

/* ============================================
   HOME — carrusel (servicios y trabajos)
   ============================================ */
.carousel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 24px 0 44px;   /* aire para la sombra cálida */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee var(--marquee-dur, 60s) linear infinite;
}
.drag-marquee { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.drag-marquee.is-dragging { cursor: grabbing; }
.drag-marquee .carousel-track { animation: none; will-change: transform; }
.drag-marquee img { -webkit-user-drag: none; pointer-events: none; }
.drag-marquee.is-dragging .work-card { pointer-events: none; }
.carousel:hover .carousel-track,
.carousel:focus-within .carousel-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 12px)); } }

/* ============================================
   HOME — Servicios
   ============================================ */
.service-card {
  flex: 0 0 auto;
  width: 340px;
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(28, 26, 58, 0.07);
  border-radius: 24px;
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(28, 26, 58, 0.03);
  transition: transform 0.45s var(--ease), box-shadow 0.5s var(--ease), border-color 0.45s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow);
  border-color: var(--glow-border);
}
.service-card[data-tint="periwinkle"] { --tint: var(--periwinkle); }
.service-card[data-tint="sky"] { --tint: var(--sky); }
.service-card[data-tint="lilac"] { --tint: var(--lilac); }
.service-card[data-tint="pink"] { --tint: var(--pink); }
.service-card[data-tint="sage"] { --tint: var(--sage); }
.service-icon {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--tint) 40%, #fff);
  color: var(--indigo);
  margin-bottom: 24px;
}
.service-num {
  position: absolute;
  top: 34px; right: 30px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 15px;
  color: var(--ink-mute);
}
.service-card h3 {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.service-card > p { position: relative; font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 20px; }
.service-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.service-list li { font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.service-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tint) 30%, transparent); flex-shrink: 0; }
.service-tools { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(28, 26, 58, 0.07); font-size: 12.5px; color: var(--ink-mute); }

/* Slider de servicios: quieto, con flechas (y deslizable con el dedo o el trackpad) */
.slider { position: relative; z-index: 1; }
.slider-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(24px, calc((100vw - 1200px) / 2 + 40px));
  padding: 24px max(24px, calc((100vw - 1200px) / 2 + 40px)) 36px;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track .service-card { scroll-snap-align: start; }
.slider-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}
.slider-arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid rgba(28, 26, 58, 0.12);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.45s var(--ease), border-color 0.35s var(--ease), opacity 0.3s;
}
.slider-arrow:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--glow-soft); border-color: var(--glow-border); }
.slider-arrow:disabled { opacity: 0.35; cursor: default; }
.slider-arrow:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Botón "Solicitar servicio" dentro de la card */
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(28, 26, 58, 0.18); }
.btn-outline:hover { background: var(--ink); color: #f8f7fd; border-color: var(--ink); }
.service-cta { margin-top: 20px; justify-content: center; width: 100%; padding: 13px 22px; font-size: 14.5px; }

/* ============================================
   Formulario de solicitud (modal)
   ============================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(23, 22, 58, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow-y: auto;
  animation: fade-in 0.3s var(--ease);
}
.modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 26px;
  padding: 40px 40px 36px;
  box-shadow: 0 30px 80px -20px rgba(23, 22, 58, 0.45);
  animation: pop-in 0.4s var(--ease);
  text-align: left;
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cream);
  border: 0;
  color: var(--ink);
  cursor: pointer;
}
.modal-close:hover { background: var(--cream-2); }
.modal h3 { font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: -0.03em; margin-bottom: 8px; }
.modal-intro { color: var(--ink-soft); font-size: 15px; margin-bottom: 26px; }
.request-form { display: grid; gap: 18px; }
.request-form .eyebrow { margin-bottom: 6px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-full { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span,
.field > legend { font-size: 13.5px; font-weight: 500; color: var(--ink); padding: 0; margin-bottom: 7px; }
.field > span { margin-bottom: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-mute); margin-left: 4px; }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(28, 26, 58, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; background: #fff; border-color: var(--periwinkle); box-shadow: 0 0 0 4px rgba(170, 197, 251, 0.35); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid rgba(28, 26, 58, 0.14);
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--paper);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.choice:hover span { border-color: var(--periwinkle); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #f8f7fd; }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: #b2445e; font-size: 14px; margin: 0; }
.form-error a { color: inherit; text-decoration: underline; }
.form-submit { justify-content: center; margin-top: 6px; }
.form-submit:disabled { opacity: 0.7; cursor: progress; transform: none; box-shadow: none; }
.modal-done { text-align: center; padding: 20px 0 6px; }
.modal-done-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  background: var(--sage-soft);
  color: var(--moss);
}
.modal-done p { color: var(--ink-soft); margin-bottom: 24px; }

@media (max-width: 640px) {
  .modal { padding: 32px 22px 26px; border-radius: 22px; }
  .modal h3 { font-size: 25px; }
  .field-grid { grid-template-columns: 1fr; }
}

/* ============================================
   HOME — Trabajos
   ============================================ */
.work-card {
  flex: 0 0 auto;
  width: clamp(290px, 34vw, 440px);
  display: block;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(28, 26, 58, 0.07);
  color: var(--ink);
  transition: transform 0.45s var(--ease), box-shadow 0.5s var(--ease), border-color 0.45s var(--ease);
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow);
  border-color: var(--glow-border);
}
.work-media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: var(--cream-2); }
.work-media img, .work-media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.work-card:hover .work-media video { transform: scale(1.04); }
.work-card:hover .work-media img { transform: scale(1.04); }
.work-cover {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 4.6vw, 64px);
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.95);
  transition: transform 0.9s var(--ease);
}
.work-card:hover .work-cover { transform: scale(1.04); }
.work-body { padding: 22px 24px 24px; display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; }
.work-cat { font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--indigo-soft); margin-bottom: 8px; }
.work-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 23px; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 6px; }
.work-card p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.work-arrow {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(28, 26, 58, 0.14);
  color: var(--ink);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.work-card:hover .work-arrow { background: var(--lavender-soft); border-color: var(--lilac); transform: rotate(-45deg); }
.works-more { text-align: center; margin-top: 24px; position: relative; z-index: 1; }

/* Pills de categorías */
.work-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -16px auto 8px;
  position: relative;
  z-index: 1;
}
.pill {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid rgba(28, 26, 58, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink-soft);
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.45s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pill:hover { transform: translateY(-2px); box-shadow: var(--glow-soft); border-color: var(--glow-border); color: var(--ink); }
.pill.active { background: var(--ink); border-color: var(--ink); color: #f8f7fd; }
.pill:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Con un filtro activo: proyectos quietos y centrados */
.work-static {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 24px 24px 44px;
  position: relative;
  z-index: 1;
}
.work-empty {
  text-align: center;
  color: var(--ink-mute);
  font-size: 16px;
  padding: 60px 0 40px;
  position: relative;
  z-index: 1;
}

/* ============================================
   HOME — Contacto (la noche del video)
   ============================================ */
.contact-band {
  background:
    radial-gradient(ellipse 42% 55% at 50% 55%, rgba(23, 22, 58, 0.5) 0%, rgba(23, 22, 58, 0.15) 100%),
    linear-gradient(180deg, rgba(23, 22, 58, 0.55) 0%, rgba(23, 22, 58, 0.3) 45%, rgba(23, 22, 58, 0.6) 100%),
    url("photos/cta-escritorio.jpg") center 60% / cover no-repeat, /* escritorio de frente con libros, lapicero, planta y lámpara de lava (generada en Higgsfield) */
    var(--night);
  color: #ecebf8;
  text-align: center;
  overflow: hidden;
  padding: 120px 0;
}
.contact-band .eyebrow { color: var(--periwinkle); }
.contact-band h2 { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.05; margin-bottom: 20px; color: #f8f7fd; }
@media (min-width: 760px) { .contact-band h2 { white-space: nowrap; } .contact-band .container-narrow { max-width: 1100px; } }
.contact-band h2 em {
  font-style: normal;
  font-weight: 300;
  background: linear-gradient(90deg, var(--periwinkle), var(--lilac) 55%, var(--pink));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.contact-band .lede { font-size: 18px; color: rgba(236, 235, 248, 0.8); max-width: 720px; margin: 0 auto 38px; }
@media (min-width: 760px) { .contact-band .lede { white-space: nowrap; } }

/* Botón principal del CTA: protagonista */
.contact-band .btn-light {
  padding: 19px 44px;
  font-size: 17px;
  font-weight: 600;
  background: linear-gradient(135deg, #ffffff 0%, #ece6fb 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 18px 44px -14px rgba(196, 172, 240, 0.9), 0 0 70px -10px rgba(196, 172, 240, 0.7);
}
.contact-band .btn-light:hover { background: #fff; box-shadow: 0 0 0 1px #fff, 0 22px 52px -12px rgba(196, 172, 240, 1), 0 0 90px -8px rgba(196, 172, 240, 0.85); }

/* Contactos secundarios: discretos */
.contact-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.chip-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 100px;
  background: rgba(244, 243, 251, 0.06);
  border: 1px solid rgba(244, 243, 251, 0.18);
  font-size: 14px;
  color: rgba(236, 235, 248, 0.85);
  transition: transform 0.35s var(--ease), box-shadow 0.45s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.chip-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.85; }
.chip-link:hover { transform: translateY(-2px); background: rgba(244, 243, 251, 0.14); color: #fff; box-shadow: var(--glow-soft); border-color: var(--glow-border); }


@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  .scroll-cue::after { animation: none; }
  .btn, .service-card, .work-card, .chip-link { transition: none; }
  /* Sin movimiento automático: los carruseles se deslizan a mano */
  .carousel:not(.drag-marquee) { overflow-x: auto; }
  .carousel-track { animation: none; }
}

/* ============================================
/* ============================================
   CASO DE ESTUDIO (estilo nuevo) — case-alicia.html
   ============================================ */
.cs-hero {
  padding: 40px 0 90px;
  background:
    radial-gradient(ellipse 45% 55% at 0% 0%, rgba(170, 197, 251, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 100% 30%, rgba(227, 204, 242, 0.32) 0%, transparent 70%),
    var(--paper);
  text-align: center;
}
.cs-back { font-size: 14px; color: var(--ink-soft); margin-bottom: 28px; transition: color 0.3s; }
.cs-back:hover { color: var(--indigo); }
.cs-title { font-size: clamp(38px, 4.8vw, 68px); line-height: 1.05; margin: 0 auto 22px; }
.cs-lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); max-width: 640px; margin: 0 auto 26px; line-height: 1.55; }
.cs-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 34px; }
.cs-tag { font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 100px; background: #fff; border: 1px solid rgba(28, 26, 58, 0.1); color: var(--ink-soft); }
.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 880px;
  margin: 0 auto 34px;
  text-align: left;
}
.cs-meta > div { background: #fff; border: 1px solid rgba(28, 26, 58, 0.07); border-radius: 18px; padding: 16px 18px; }
.cs-meta dt { font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--indigo-soft); margin-bottom: 4px; }
.cs-meta dd { margin: 0; font-size: 15px; color: var(--ink); }
.cs-video-wrap { margin-top: 64px; }
.cs-caption { font-size: 13.5px; color: var(--ink-mute); margin-top: 14px; }

/* Marco de navegador */
.cs-browser {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(28, 26, 58, 0.08);
  box-shadow: 0 40px 80px -40px rgba(28, 26, 58, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.6);
  overflow: hidden;
  text-align: left;
}
.cs-browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f4f3f8; border-bottom: 1px solid rgba(28, 26, 58, 0.06); }
.cs-browser-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #e1dfea; }
.cs-browser-url { flex: 1; margin-left: 12px; max-width: 360px; font-size: 12.5px; color: var(--ink-mute); background: #fff; border-radius: 8px; padding: 5px 12px; }
.cs-browser video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--night); }

/* Secciones */
.cs-section { position: relative; }
.cs-tint {
  background:
    radial-gradient(ellipse 45% 55% at 100% 0%, rgba(143, 204, 226, 0.16) 0%, transparent 70%),
    radial-gradient(ellipse 40% 55% at 0% 100%, rgba(185, 200, 164, 0.2) 0%, transparent 70%),
    var(--cream);
}
.cs-two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
.cs-context-head { margin-bottom: 34px; }
.cs-context-head h2 { font-size: clamp(32px, 3.4vw, 48px); }
.cs-body { font-size: 17px; line-height: 1.7; color: var(--ink-soft); max-width: 560px; }
.cs-goals { background: #fff; border: 1px solid rgba(28, 26, 58, 0.07); border-radius: 24px; padding: 32px; }
.cs-goals h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 16px; }
.cs-goals ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cs-goals li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.cs-goals li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--periwinkle); box-shadow: 0 0 0 4px rgba(170, 197, 251, 0.3); }

.cs-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cs-card {
  background: #fff;
  border: 1px solid rgba(28, 26, 58, 0.07);
  border-radius: 24px;
  padding: 28px 26px;
  transition: transform 0.45s var(--ease), box-shadow 0.5s var(--ease), border-color 0.45s var(--ease);
}
.cs-card:hover { transform: translateY(-6px); box-shadow: var(--glow); border-color: var(--glow-border); }
.cs-card-num { font-family: var(--font-display); font-weight: 300; font-size: 15px; color: var(--ink-mute); margin-bottom: 18px; }
.cs-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px; }
.cs-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

.cs-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
.cs-shot { margin: 0; }
.cs-shot-img {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(28, 26, 58, 0.08);
  background: #fff;
  aspect-ratio: 16 / 10;
  transition: transform 0.45s var(--ease), box-shadow 0.5s var(--ease), border-color 0.45s var(--ease);
}
.cs-shot-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.cs-shot:hover .cs-shot-img { transform: translateY(-4px); box-shadow: var(--glow); border-color: var(--glow-border); }
.cs-shot figcaption { padding: 16px 4px 0; }
.cs-shot h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 4px; }
.cs-shot p { font-size: 14.5px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* Desktop + mobile con scroll interno */
.cs-devices { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.cs-devices figure { margin: 0; }
.cs-devices figcaption { text-align: center; font-size: 13.5px; color: var(--ink-mute); margin-top: 14px; }
.cs-scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cs-scroll img { display: block; width: 100%; height: auto; }
.cs-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.cs-device-desktop .cs-scroll { height: 560px; }
.cs-phone {
  width: 300px;
  padding: 12px;
  background: #1c1a3a;
  border-radius: 44px;
  box-shadow: 0 40px 80px -40px rgba(28, 26, 58, 0.5);
}
.cs-phone .cs-scroll { height: 600px; border-radius: 32px; background: #fff; scrollbar-width: none; }
.cs-phone .cs-scroll::-webkit-scrollbar { display: none; }

/* Proceso */
.cs-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cs-step {
  position: relative;
  background: #fff;
  border: 1px solid rgba(28, 26, 58, 0.07);
  border-radius: 22px;
  padding: 24px 22px;
  transition: transform 0.45s var(--ease), box-shadow 0.5s var(--ease), border-color 0.45s var(--ease);
}
.cs-step:hover { transform: translateY(-6px); box-shadow: var(--glow); border-color: var(--glow-border); }
.cs-step-tool {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--lavender-soft);
  color: var(--indigo);
  margin-bottom: 16px;
}
.cs-step:nth-child(2) .cs-step-tool { background: #fbe6d2; color: #8a4b1c; }
.cs-step:nth-child(3) .cs-step-tool { background: #e4e7ee; color: #1c1a3a; }
.cs-step:nth-child(4) .cs-step-tool { background: #dcebf3; color: #2b5d78; }
.cs-step:nth-child(5) .cs-step-tool { background: var(--sage-soft); color: var(--olive-deep); }
.cs-step h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -0.02em; margin-bottom: 8px; }
.cs-step p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* Resultado (noche) */
.cs-result {
  text-align: center;
  color: #ecebf8;
  background:
    linear-gradient(180deg, rgba(23, 22, 58, 0.82), rgba(23, 22, 58, 0.9)),
    url("photos/contacto-noche.jpg") center 40% / cover no-repeat,
    var(--night);
  padding: 110px 0;
}
.cs-result .eyebrow { color: var(--periwinkle); }
.cs-result h2 { color: #f8f7fd; font-size: clamp(32px, 3.8vw, 54px); margin-bottom: 18px; }
.cs-result h2 em {
  font-style: normal; font-weight: 300;
  background: linear-gradient(90deg, var(--periwinkle), var(--lilac) 55%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cs-result-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cs-result p { font-size: 18px; color: rgba(236, 235, 248, 0.78); max-width: 560px; margin: 0 auto 34px; }

/* Resultado en versión clara (cuando le sigue el CTA de contacto oscuro) */
.cs-result-light { background: radial-gradient(ellipse 45% 60% at 50% 0%, rgba(227, 204, 242, 0.4) 0%, transparent 70%), var(--cream); color: var(--ink); }
.cs-result-light .eyebrow { color: var(--indigo-soft); }
.cs-result-light h2 { color: var(--ink); }
.cs-result-light h2 em { background: linear-gradient(90deg, #8aa6f0 0%, #b996e6 55%, #d78bd6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-result-light p { color: var(--ink-soft); }
/* Siguiente caso */
.cs-next { padding: 56px 0; background: var(--paper); border-top: 1px solid rgba(28, 26, 58, 0.06); }
.cs-next-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cs-next-link { text-align: right; }
.cs-next-link span { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--indigo-soft); margin-bottom: 6px; }
.cs-next-link strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 12px; }
.cs-next-link .arrow { transition: transform 0.35s var(--ease); }
.cs-next-link:hover .arrow { transform: translateX(6px); }

@media (max-width: 1000px) {
  .cs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-two-col { grid-template-columns: 1fr; gap: 36px; }
  .cs-devices { grid-template-columns: 1fr; justify-items: center; }
  .cs-device-desktop { width: 100%; }
}
@media (max-width: 640px) {
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .cs-cards, .cs-steps, .cs-gallery { grid-template-columns: 1fr; }
  .cs-device-desktop .cs-scroll { height: 420px; }
  .cs-phone { width: 260px; }
  .cs-phone .cs-scroll { height: 520px; }
  .cs-next-inner { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .cs-next-link { text-align: center; }
}

/* ============================================
   SOBRE MÍ — about.html
   ============================================ */
.about-hero {
  padding: 50px 0 100px;
  background:
    radial-gradient(ellipse 45% 55% at 0% 0%, rgba(170, 197, 251, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 100% 40%, rgba(227, 204, 242, 0.32) 0%, transparent 70%),
    var(--paper);
}
.about-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 72px; align-items: center; }
.about-title { font-size: clamp(44px, 5.4vw, 76px); line-height: 1.02; margin: 4px 0 22px; }
.about-lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-soft); max-width: 560px; margin-bottom: 32px; }
.about-stats { display: flex; gap: 40px; margin-bottom: 36px; }
.about-stats div { display: flex; flex-direction: column; }
.about-stats strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 4vw, 54px); letter-spacing: -0.04em; line-height: 1; color: var(--indigo); }
.about-stats div:nth-child(2) strong { color: var(--moss); }
.about-stats div:nth-child(3) strong { color: var(--indigo-soft); }
.about-stats span { font-size: 14px; color: var(--ink-mute); margin-top: 6px; }
.about-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.about-photo { margin: 0; }
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 28px;
  display: block;
  box-shadow: 0 40px 80px -40px rgba(28, 26, 58, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.7);
}
.about-photo figcaption { font-size: 13.5px; color: var(--ink-mute); margin-top: 16px; text-align: center; }

/* Cómo trabajo: solo texto, sobre la escena de noche con Bandido durmiendo a la derecha */
.about-approach-band {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 110px 0;
  background:
    linear-gradient(90deg, var(--paper) 0%, var(--paper) 30%, rgba(251, 250, 248, 0.82) 44%, rgba(251, 250, 248, 0.15) 62%, rgba(251, 250, 248, 0) 72%),
    linear-gradient(180deg, var(--paper) 0%, rgba(251, 250, 248, 0) 18%, rgba(251, 250, 248, 0) 82%, var(--paper) 100%),
    radial-gradient(ellipse 40% 60% at 20% 50%, rgba(227, 204, 242, 0.45) 0%, transparent 70%),
    url("photos/bandido-durmiendo.jpg") right 30% center / cover no-repeat,
    var(--paper);
}
.about-approach-band .container { width: 100%; }
.about-approach-copy { max-width: 540px; }
.about-approach-copy h2 { font-size: clamp(34px, 3.6vw, 52px); margin-bottom: 26px; }
.about-approach-text { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.7; color: var(--ink-soft); }
.about-approach-text:first-of-type { font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; color: var(--ink); letter-spacing: -0.01em; }

@media (max-width: 760px) {
  .about-approach-band {
    min-height: 0;
    padding: 70px 0 300px;
    background:
      linear-gradient(180deg, var(--paper) 0%, var(--paper) 50%, rgba(251, 250, 248, 0.6) 64%, rgba(251, 250, 248, 0) 78%),
      url("photos/bandido-durmiendo.jpg") 62% bottom / 210% auto no-repeat,
      var(--paper);
  }
}

/* Herramientas: de fondo la pared del estudio (estante, libros, plantas y lucecitas), sin velo blanco */
.about-tools-band {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(23, 22, 58, 0.45) 0%, rgba(23, 22, 58, 0.25) 40%, rgba(23, 22, 58, 0.45) 100%),
    url("photos/pared-estudio.jpg") center top / cover no-repeat,
    var(--night);
}
.about-tools-band .section-head .eyebrow { color: var(--periwinkle); }
.about-tools-band .section-head h2 { color: #f8f7fd; text-shadow: 0 2px 24px rgba(23, 22, 58, 0.5); }
.about-tools-band .section-head h2 em { background: linear-gradient(90deg, var(--periwinkle), var(--lilac) 55%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-tools-band .tool-tile { box-shadow: 0 18px 40px -18px rgba(23, 22, 58, 0.6); border-color: rgba(255, 255, 255, 0.9); }
.about-tools-band .about-langs { color: rgba(248, 247, 253, 0.85); }

/* Herramientas: mosaico con logos */
.tool-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tool-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  background: #fff;
  border: 1px solid rgba(28, 26, 58, 0.07);
  border-radius: 22px;
  padding: 22px 12px 20px;
  transition: transform 0.45s var(--ease), box-shadow 0.5s var(--ease), border-color 0.45s var(--ease);
}
.tool-tile:nth-child(3n+1) { --glow-c: 196, 172, 240; --tile-bg: var(--lavender-soft); }
.tool-tile:nth-child(3n+2) { --glow-c: 150, 210, 162; --tile-bg: #e3f1e6; }
.tool-tile:nth-child(3n)   { --glow-c: 244, 212, 96;  --tile-bg: #fbf1cf; }
.tool-tile {
  --glow: 0 0 0 1px rgba(var(--glow-c), 0.55), 0 18px 40px -12px rgba(var(--glow-c), 0.9), 0 0 64px -10px rgba(var(--glow-c), 0.75);
  --glow-border: rgba(var(--glow-c), 0.75);
}
.tool-tile:hover { transform: translateY(-5px); box-shadow: var(--glow); border-color: var(--glow-border); }
.tool-logo { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--tile-bg); color: var(--ink); margin-bottom: 12px; }
.tool-logo img { width: 30px; height: 30px; display: block; }
.tool-tile strong { font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); }
.tool-cat { font-size: 12.5px; line-height: 1.35; color: var(--ink-mute); }

/* Clientes: globo + países que van apareciendo */
.about-clients { overflow: hidden; }
.about-clients-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-clients h2 { font-size: clamp(32px, 3.4vw, 48px); margin-bottom: 16px; }
.globe-wrap { position: relative; display: grid; place-items: center; }
.globe-wrap::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 204, 242, 0.55) 0%, rgba(185, 200, 164, 0.18) 55%, transparent 72%);
  filter: blur(20px);
}
.globe-canvas { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; display: block; }

.about-countries { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.about-countries li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 1.6vw, 21px);
  letter-spacing: -0.02em;
  padding: 12px 22px;
  border-radius: 100px;
  background: rgba(var(--glow-c, 196, 172, 240), 0.28);
  border: 1px solid rgba(var(--glow-c, 196, 172, 240), 0.55);
  color: var(--ink);
  opacity: 0.18;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.5s var(--ease), background 0.4s var(--ease);
}
.about-countries li.is-seen { opacity: 1; transform: none; }
.about-countries li.is-active { background: #fff; box-shadow: 0 12px 30px -10px rgba(var(--glow-c), 0.95), 0 0 0 1px rgba(var(--glow-c), 0.8); transform: translateY(-3px); }
.about-countries li.more { background: transparent; border: 1px dashed rgba(28, 26, 58, 0.22); color: var(--ink-mute); font-weight: 400; }

@media (max-width: 1000px) {
  .about-approach, .about-clients-grid { grid-template-columns: 1fr; gap: 40px; }
  .globe-canvas { max-width: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  .about-countries li { opacity: 1; transform: none; }
}

/* Línea de tiempo */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 150px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--lilac), var(--sage), #f4d460);
  border-radius: 2px;
}
.timeline-item { display: grid; grid-template-columns: 130px 40px 1fr; align-items: start; margin-bottom: 22px; }
.timeline-when { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--ink); text-align: right; padding-top: 22px; letter-spacing: -0.01em; }
.timeline-dot {
  justify-self: center;
  margin-top: 26px;
  margin-left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--dot-c, var(--lilac));
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}
.timeline-card {
  background: #fff;
  border: 1px solid rgba(28, 26, 58, 0.07);
  border-radius: 22px;
  padding: 20px 24px;
  transition: transform 0.45s var(--ease), box-shadow 0.5s var(--ease), border-color 0.45s var(--ease);
}
.timeline-card:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: var(--glow-border); }
.timeline-type { display: inline-block; font-size: 12px; font-weight: 500; padding: 4px 11px; border-radius: 100px; margin-bottom: 10px; }
.timeline-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: -0.02em; margin-bottom: 2px; }
.timeline-place { font-size: 14px; color: var(--indigo-soft); margin-bottom: 8px; }
.timeline-card p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.type-study { --dot-c: #c4acf0; --glow-c: 196, 172, 240; }
.type-study .timeline-type { background: var(--lavender-soft); color: var(--indigo); }
.type-work { --dot-c: #96d2a2; --glow-c: 150, 210, 162; }
.type-work .timeline-type { background: #e3f1e6; color: #3d6b53; }
.type-studio { --dot-c: #f4d460; --glow-c: 244, 212, 96; }
.type-studio .timeline-type { background: #fbf1cf; color: #7a5b0e; }
.timeline-item.type-study, .timeline-item.type-work, .timeline-item.type-studio { --glow: 0 0 0 1px rgba(var(--glow-c), 0.55), 0 18px 40px -12px rgba(var(--glow-c), 0.9), 0 0 64px -10px rgba(var(--glow-c), 0.75); --glow-border: rgba(var(--glow-c), 0.75); }
.timeline-note { max-width: 900px; margin: 34px auto 0; padding: 22px 26px; border-radius: 22px; border: 1px dashed rgba(28, 26, 58, 0.18); text-align: center; }
.timeline-note h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; margin-bottom: 6px; }
.timeline-note p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* Herramientas */
.about-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.about-langs { text-align: center; color: var(--ink-mute); font-size: 15px; margin-top: 30px; }

/* Testimonios (se muestran solo si hay reales) */
.about-testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.about-testimonials blockquote { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.about-testimonials figcaption strong { display: block; font-family: var(--font-display); font-weight: 500; }
.about-testimonials figcaption span { font-size: 13.5px; color: var(--ink-mute); }

@media (max-width: 1000px) {
  .about-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-photo { max-width: 420px; margin: 0 auto; }
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-testimonials { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .about-stats { gap: 26px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline::before { left: 7px; }
  .timeline-item { grid-template-columns: 16px 1fr; column-gap: 16px; }
  .timeline-when { grid-column: 2; grid-row: 1; text-align: left; padding-top: 0; font-size: 14px; color: var(--indigo-soft); margin-bottom: 6px; }
  .timeline-dot { grid-column: 1; grid-row: 1 / span 2; margin: 2px 0 0; }
  .timeline-card { grid-column: 2; }
  .about-countries li { padding: 12px 20px; }
}

/* ============================================
   FOOTER (todas las páginas)
   ============================================ */
.footer {
  background: var(--night);
  color: rgba(236, 235, 248, 0.6);
  font-family: var(--font-sans);
  font-size: 13.5px;
  padding: 30px 0;
  margin-top: 0;
  border-top: 1px solid rgba(244, 243, 251, 0.08);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo { font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -0.02em; color: #f4f3fb; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: rgba(236, 235, 248, 0.75); transition: color 0.3s; }
.footer-links a:hover { color: var(--lilac); }

/* ============================================
   SUBPÁGINAS — piezas del estilo anterior llevadas al estilo del home
   (cards blancas redondeadas, sin inclinaciones, sombra cálida en hover)
   ============================================ */
.polaroid,
.paper-card {
  background: #fff;
  border: 1px solid rgba(28, 26, 58, 0.07);
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(28, 26, 58, 0.03);
  transform: none !important;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.5s var(--ease), border-color 0.45s var(--ease);
}
.polaroid:hover,
a.paper-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--glow);
  border-color: var(--glow-border);
}
.polaroid img { border-radius: 14px; }
.polaroid .caption { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--ink-mute); }
.paper-card.taped::before { display: none; }
.tilt-l, .tilt-r, .tilt-xl { transform: none; }
/* Inclinaciones escritas en línea en las páginas viejas (cards "a mano alzada") */
body:not(.home) div[style*="rotate("],
body:not(.home) a[style*="rotate("] { transform: none !important; }
.sticker, .washi, .cursor-sticker { display: none !important; }
.underline-wavy { background: none; padding-bottom: 0; }

/* Etiquetas */
.tag {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  background: var(--lavender-soft);
  color: var(--indigo);
}
.tag.olive, .tag.sage { background: var(--sage-soft); color: var(--olive-deep); }
.tag.mustard { background: var(--lamp-soft); color: var(--ink); }
.tag.rust { background: var(--lavender-soft); color: var(--indigo); }

/* Títulos de las subpáginas: misma familia y peso que el home */
body:not(.home) h1,
body:not(.home) h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.04em; }
/* Títulos en una sola línea en escritorio */
@media (min-width: 900px) {
  body:not(.home) h1 { font-size: clamp(44px, 4.8vw, 70px) !important; max-width: none !important; }
  body:not(.home) h2 { font-size: clamp(28px, 2.9vw, 42px) !important; max-width: none !important; }
  body:not(.home) [style*="grid-template-columns"] h2 { font-size: clamp(24px, 2.2vw, 32px) !important; }
  body:not(.home) .contact-band h2 { font-size: clamp(34px, 4.4vw, 62px) !important; }
}
body:not(.home) h1 em,
body:not(.home) h2 em {
  font-style: normal;
  font-weight: 400;
  background: linear-gradient(90deg, #8aa6f0 0%, #b996e6 55%, #d78bd6 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

@media (max-width: 640px) {
  .footer-inner { padding: 0 20px; flex-direction: column; text-align: center; }
  /* Páginas viejas: grillas escritas en línea pasan a una columna en celular */
  body:not(.home) [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  body:not(.home) .polaroid, body:not(.home) [style*="width: 3"], body:not(.home) [style*="width: 4"], body:not(.home) [style*="width: 5"] { max-width: 100% !important; }
  body:not(.home) img { max-width: 100%; }
}

/* ============================================
   RESPONSIVE — Mobile & Tablet
   ============================================ */

/* Tablet */
@media (max-width: 900px) {
  .nav-inner { padding: 0 24px; }
  .nav-links { gap: 20px; }
  .container { padding: 0 24px; }
  .container-narrow { padding: 0 24px; }
  section { padding: 70px 0; }
}

/* Mobile */
@media (max-width: 640px) {
  /* Nav */
  .nav-inner { padding: 0 20px; }
  .nav-links { gap: 14px; font-size: 12px; }
  .lang-switch { margin-left: 8px; padding-left: 10px; }

  /* Layout */
  .container { padding: 0 20px; }
  .container-narrow { padding: 0 20px; }
  section { padding: 60px 0; }

  /* Typography */
  h1 { font-size: clamp(42px, 12vw, 60px) !important; }
  h2 { font-size: clamp(32px, 9vw, 48px) !important; }
  h3 { font-size: clamp(22px, 6vw, 30px) !important; }

  /* Hero — stack columns */
  .hero-grid {
    display: block !important;
  }
  .hero-polaroid-col {
    display: none !important;
  }

  /* Polaroid cards */
  .polaroid { transform: rotate(0deg) !important; }

  /* Stickers — reduce on mobile */
  .sticker { opacity: 0 !important; }

  /* Process / values cards */
  .process-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  .footer { padding: 40px 0 24px; font-size: 11px; }

  /* Nav compacta: solo el isotipo + links en una línea */
  .nav-logo { font-size: 0; gap: 0; }
  .nav-links { gap: 12px; font-size: 11.5px; white-space: nowrap; }
  .nav-links a { white-space: nowrap; }
  .nav-links a[href="index.html"]:not(.nav-logo) { display: none; }
  .nav-inner { padding: 0 16px; }
  .lang-switch { margin-left: 2px; padding-left: 10px; }

  /* Home */
  .studio-title { font-size: clamp(46px, 13vw, 64px) !important; }
  .studio-kicker { font-size: 10.5px; letter-spacing: 0.2em; }
  .section-head { margin-bottom: 44px; }
  .service-card { width: 82vw; padding: 28px 24px 24px; }
  .doodle { display: none; }
  .service-card h3 { font-size: 24px !important; }
  .work-card { width: 82vw; }
  .work-body { padding: 20px; }
  .work-card h3 { font-size: 22px !important; }
  .contact-band::before { width: 380px; height: 380px; }
}

/* ============================================
   LOGO — "C" almohadón peludo
   ============================================ */
.brand-logo { display: block; flex-shrink: 0; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(57, 53, 130, 0.25)); transition: transform 0.4s var(--ease); }
.nav-logo:hover .brand-logo { transform: rotate(-8deg) scale(1.06); }
.nav-logo { gap: 10px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; }

/* ============================================
   CASO NØR — case-nor.html
   ============================================ */
.nor-media { border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(15, 25, 24, 0.6); background: #0f1918; }
.nor-media video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.nor-personality { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.nor-personality li { display: grid; gap: 2px; padding-left: 18px; position: relative; }
.nor-personality li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #2f6f78; }
.nor-personality strong { font-family: var(--font-display); font-weight: 500; font-size: 17px; }
.nor-personality span { font-size: 14.5px; color: var(--ink-soft); }

.nor-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nor-logo-tile { border-radius: 20px; overflow: hidden; aspect-ratio: 1440 / 1024; border: 1px solid rgba(28, 26, 58, 0.06); transition: transform 0.45s var(--ease), box-shadow 0.5s var(--ease); }
.nor-logo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nor-logo-tile:nth-child(3n+1) { --glow-c: 196, 172, 240; }
.nor-logo-tile:nth-child(3n+2) { --glow-c: 150, 210, 162; }
.nor-logo-tile:nth-child(3n)   { --glow-c: 244, 212, 96; }
.nor-logo-tile:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px rgba(var(--glow-c), 0.6), 0 18px 40px -12px rgba(var(--glow-c), 0.9); }

.nor-swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.nor-swatch { border-radius: 18px; min-height: 170px; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; border: 1px solid rgba(15, 25, 24, 0.08); }
.nor-swatch strong { font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.nor-swatch span { font-size: 13px; opacity: 0.8; letter-spacing: 0.04em; }
.nor-board { margin: 0; border-radius: 22px; overflow: hidden; }
.nor-board img { width: 100%; display: block; }

/* Fotografía: sección oscura con mosaico */
.nor-dark { background: #0f1918; color: #e9efe9; }
.nor-dark .section-head h2 { color: #f4f1ea; }
.nor-dark .section-head h2 em { background: linear-gradient(90deg, #8fd0d8, #c9e3c4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nor-dark .section-head p { color: rgba(233, 239, 233, 0.75); }
.nor-dark .eyebrow { color: #8fd0d8; }
.nor-masonry { columns: 3 280px; column-gap: 14px; }
.nor-photo { margin: 0 0 14px; break-inside: avoid; border-radius: 16px; overflow: hidden; }
.nor-photo img { width: 100%; height: auto; display: block; transition: transform 0.9s var(--ease); }
.nor-photo:hover img { transform: scale(1.04); }

.nor-app { aspect-ratio: 1440 / 1060; }
.nor-app img { object-position: center; }
.nor-voice { margin-top: 56px; text-align: center; }
.nor-voice ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.nor-voice li { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -0.01em; text-transform: uppercase; padding: 14px 24px; border-radius: 100px; background: #0f1918; color: #efe9dd; }
.nor-voice li:nth-child(2) { background: #2f6f78; }
.nor-voice li:nth-child(3) { background: #d0a549; color: #0f1918; }
.nor-voice li:nth-child(4) { background: #253a33; }

@media (max-width: 1000px) {
  .nor-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nor-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nor-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nor-swatch { min-height: 120px; }
}

/* Caso Hisoil: moodboards reales */
.hs-mood-img { display: block; position: relative; aspect-ratio: 1440 / 1024; border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.hs-mood-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease); }
.hs-mood-img:hover img { transform: scale(1.05); }
.hs-mood-swatches { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 4px; padding: 5px; border-radius: 8px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(4px); }
.hs-mood-swatches span { width: 16px; height: 16px; border-radius: 4px; }

/* Contacto: hero con imagen generada con IA (escritorio con agenda) */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: 170px 0 120px;
  text-align: center;
  color: #f4f3fb;
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(23, 22, 58, 0.6) 0%, rgba(23, 22, 58, 0.3) 100%),
    linear-gradient(180deg, rgba(23, 22, 58, 0.55) 0%, rgba(23, 22, 58, 0.35) 50%, rgba(23, 22, 58, 0.7) 100%),
    url("photos/contacto-hero.jpg") center / cover no-repeat,
    var(--night);
}
.contact-hero .eyebrow { color: var(--periwinkle); }
.contact-hero h1 { color: #f8f7fd; font-size: clamp(44px, 5.4vw, 76px) !important; line-height: 1.02; margin-bottom: 20px; }
.contact-hero h1 em { font-style: normal; font-weight: 300; background: linear-gradient(90deg, var(--periwinkle), var(--lilac) 55%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-hero p { font-size: 19px; color: rgba(236, 235, 248, 0.85); max-width: 540px; margin: 0 auto; }
.contact-hero-back { font-size: 14px; color: rgba(236, 235, 248, 0.8); }
.contact-hero-back:hover { color: #fff; }

/* Caso CompraTuParcela */
a.cs-shot-img { display: block; }
.ctp-gallery-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .ctp-gallery-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ctp-gallery-4 { grid-template-columns: 1fr; } }

/* Contacto: cards de contacto con degradé lila del hero */
.contact-link-card {
  background: linear-gradient(135deg, #dfe7fd 0%, #ece0fb 55%, #f6dff5 100%) !important;
  border-color: rgba(185, 150, 230, 0.35) !important;
}
.contact-link-card span:first-child { color: var(--indigo) !important; }
/* Contacto: servicios en carrusel */
.svc-track { align-items: flex-start; }
.svc-slide { flex: 0 0 auto; width: 360px; scroll-snap-align: start; }
@media (max-width: 640px) { .svc-slide { width: 82vw; } }
.svc-slide button { align-items: stretch !important; }

/* Caso Protocol */
.pr-dark { background: #1f1410; color: #f3e6d8; }
.pr-dark .section-head h2 { color: #fbf1e6; }
.pr-dark .section-head h2 em { background: linear-gradient(90deg, #ffb27a, #ff7a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-dark .section-head p { color: rgba(243, 230, 216, 0.75); }
.pr-dark .eyebrow { color: #ffb27a; }
.pr-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.pr-videos video { aspect-ratio: auto; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .pr-videos { grid-template-columns: 1fr; } }

/* ============================================
   Casos: "El proyecto" como cuaderno abierto
   hojas cuadriculadas sutiles, texto a la izquierda, lista con checks a la derecha
   ============================================ */
.cs-two-col {
  position: relative;
  gap: 0;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent calc(50% - 22px), rgba(28, 26, 58, 0.10) calc(50% - 1px), rgba(28, 26, 58, 0.16) 50%, rgba(28, 26, 58, 0.10) calc(50% + 1px), transparent calc(50% + 22px)),
    linear-gradient(rgba(111, 95, 208, 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(111, 95, 208, 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
    #fffefb;
  box-shadow:
    0 1px 0 #fff inset,
    0 2px 0 -1px #f1eee8, 0 4px 0 -2px #e9e5dd, 0 6px 0 -3px #e2ddd4,
    0 40px 70px -40px rgba(28, 26, 58, 0.35);
  border: 1px solid rgba(28, 26, 58, 0.07);
  max-width: 1100px;
  margin: 0 auto;
}
.cs-two-col > * { padding: 52px 56px 48px; }
.cs-two-col > :first-child { padding-right: 64px; }
.cs-two-col > :last-child { padding-left: 64px; }
.cs-two-col .cs-body { font-size: 16.5px; max-width: none; }
.cs-two-col .cs-goals { background: none; border: 0; border-radius: 0; }
.cs-two-col .cs-goals h3 { font-size: 24px; margin-bottom: 22px; }
.cs-two-col .cs-goals ul,
.cs-two-col .nor-personality { gap: 18px; }
.cs-two-col .cs-goals li { position: relative; padding-left: 36px; display: block; }
.cs-two-col .cs-goals li::before {
  content: "";
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; margin: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, #aac5fb, #c9a8ef);
  box-shadow: none;
}
.cs-two-col .cs-goals li::after {
  content: "";
  position: absolute; left: 7px; top: 5px;
  width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}
@media (max-width: 1000px) {
  .cs-two-col { grid-template-columns: 1fr; background:
    linear-gradient(rgba(111, 95, 208, 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(111, 95, 208, 0.07) 1px, transparent 1px) 0 0 / 24px 24px, #fffefb; }
  .cs-two-col > *, .cs-two-col > :first-child, .cs-two-col > :last-child { padding: 32px 26px; }
  .cs-two-col > :last-child { border-top: 1px dashed rgba(28, 26, 58, 0.15); }
}
.cs-two-col .nor-personality strong,
.cs-two-col .nor-personality span { display: block; }
.cs-two-col .nor-personality li { padding-left: 36px; }
/* margen rosado de cuaderno en la hoja izquierda */
.cs-two-col > :first-child { box-shadow: inset 34px 0 0 -33px rgba(229, 175, 233, 0.7); }

/* Sobre mí: testimonios */
.about-testimonials { display: block; columns: 2; column-gap: 20px; max-width: 980px; margin: 0 auto; }
.about-testimonials .tm-card { break-inside: avoid; margin-bottom: 20px; }
.tm-card { display: flex; flex-direction: column; gap: 14px; }
.tm-featured { background: linear-gradient(135deg, #dfe7fd 0%, #ece0fb 55%, #f6dff5 100%); border-color: rgba(185, 150, 230, 0.35); }
.tm-featured blockquote { font-family: var(--font-display); font-size: 20px; line-height: 1.5; letter-spacing: -0.01em; }
.tm-stars { color: #f0a640; letter-spacing: 2px; font-size: 15px; }
.tm-stars span { color: var(--ink-mute); font-size: 13px; letter-spacing: 0; margin-left: 8px; }
.about-testimonials blockquote { margin: 0; }
.tm-source { text-align: center; margin-top: 28px; font-size: 14.5px; }
.tm-source a { color: var(--indigo); }
@media (max-width: 760px) { .about-testimonials { columns: 1; } }

/* Trabajos: link a trabajos anteriores en Behance */
.older-work { text-align: center; margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.older-work p { color: var(--ink-soft); font-size: 16px; margin: 0; }
