:root {
      --ink: #1C1C1C;
      --sand: #F3F0EA;
      --stone: #D8D2C8;
      --concrete: #8C857D;
      --sage: #8E9A84;
      --dust: #7D8E99;
      --terracota: #B5562E;
      --gutter: 16px;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      background: var(--sand);
      color: var(--ink);
      font-family: "Montserrat", system-ui, sans-serif;
      font-weight: 300;
      line-height: 1.7;
    }

    img { display: block; width: 100%; height: auto; }

    .wrap {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 var(--gutter);
    }

    /* Tipografía de marca */
    .eyebrow {
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: var(--concrete);
    }

    h1, h2 {
      font-weight: 300;
      letter-spacing: 0.04em;
      line-height: 1.15;
    }

    h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
    h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 1.2rem; }

    .accent { color: var(--terracota); }

    /* Barra superior */
    header {
      position: absolute;
      top: 0; left: 0; right: 0;
      z-index: 2;
      padding: 1.4rem 0;
      color: var(--sand);
    }
    header .wrap {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .brand {
      font-size: 0.85rem;
      font-weight: 500;
      letter-spacing: 0.32em;
      text-transform: uppercase;
    }
    nav a {
      color: var(--sand);
      text-decoration: none;
      font-size: 0.75rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      margin-left: 1.2rem;
      opacity: 0.85;
    }
    nav a:hover { opacity: 1; }

    /* Portada */
    .hero {
      position: relative;
      min-height: 100vh;
      display: flex;
      align-items: flex-end;
      color: var(--sand);
      background: var(--ink);
    }
    .hero img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.55;
      object-position: 10% center;
    }
    .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(28,28,28,0.9), rgba(28,28,28,0.1));
    }
    .hero .wrap {
      position: relative;
      z-index: 1;
      padding-bottom: 8vh;
    }
    .hero .tagline {
      margin-top: 1.2rem;
      font-style: italic;
      color: var(--stone);
      font-size: 1.05rem;
    }
    .cta {
      display: inline-block;
      margin-top: 2.4rem;
      padding: 0.95rem 1.8rem;
      background: var(--terracota);
      color: var(--sand);
      text-decoration: none;
      font-size: 0.78rem;
      font-weight: 500;
      letter-spacing: 0.22em;
      text-transform: uppercase;
    }
    .cta:hover { background: #9c4824; }

    /* Secciones */
    section { padding: 7rem 0; }
    .light { background: var(--sand); }
    .stone { background: var(--stone); }
    .dark { background: var(--ink); color: var(--sand); }

    .intro p {
      max-width: 62ch;
      font-size: 1.05rem;
    }

    /* Servicios */
    .grid {
      display: grid;
      gap: 1px;
      background: var(--concrete);
      border: 1px solid var(--concrete);
      grid-template-columns: 1fr;
      margin-top: 3rem;
    }
    .card {
      background: var(--sand);
      padding: 2.2rem 1.8rem;
    }
    .card .num {
      font-size: 0.75rem;
      letter-spacing: 0.2em;
      color: var(--terracota);
    }
    .card h3 {
      font-weight: 400;
      font-size: 1.1rem;
      letter-spacing: 0.06em;
      margin: 0.8rem 0 0.6rem;
    }
    .card p { font-size: 0.92rem; color: var(--concrete); }

    /* Firma boutique */
    .boutique {
      display: grid;
      gap: 2.5rem;
      align-items: center;
    }
    .boutique img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 22% center; }
    .boutique p + p { margin-top: 1rem; }
    .stats {
      margin-top: 2rem;
      border-top: 1px solid var(--concrete);
      padding-top: 1.4rem;
      font-size: 0.95rem;
    }

    /* Manifiesto */
    .manifesto {
      max-width: 60ch;
      font-size: 1.15rem;
      line-height: 1.9;
    }
    .manifesto strong { font-weight: 500; }

    /* Galería */
    .gallery {
      display: grid;
      gap: var(--gutter);
      grid-template-columns: 1fr;
    }
    .gallery img { aspect-ratio: 3 / 2; object-fit: cover; }

    /* Formulario */
    form {
      display: grid;
      gap: 1.1rem;
      margin-top: 2.2rem;
      max-width: 620px;
    }
    label {
      display: grid;
      gap: 0.4rem;
      font-size: 0.78rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--stone);
    }
    input, select, textarea {
      font: inherit;
      font-size: 1rem;
      letter-spacing: 0;
      text-transform: none;
      padding: 0.8rem 0.9rem;
      background: transparent;
      color: var(--sand);
      border: 1px solid var(--concrete);
      border-radius: 0;
    }
    select option { color: var(--ink); }
    input:focus, select:focus, textarea:focus {
      outline: 1px solid var(--terracota);
      border-color: var(--terracota);
    }
    textarea { min-height: 110px; resize: vertical; }
    .submit {
      justify-self: start;
      background: var(--terracota);
      color: var(--sand);
      border: 0;
      padding: 0.95rem 1.8rem;
      font: inherit;
      font-size: 0.78rem;
      font-weight: 500;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      cursor: pointer;
    }
    .submit:hover { background: #9c4824; }
    .alt {
      margin-top: 2rem;
      font-size: 0.92rem;
      color: var(--stone);
    }
    .alt a { color: var(--sand); }

    footer {
      background: var(--ink);
      color: var(--concrete);
      padding: 2.4rem 0;
      font-size: 0.8rem;
      letter-spacing: 0.06em;
    }
    footer .wrap {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      justify-content: space-between;
    }

    /* Logo en texto, mientras llega el archivo oficial */
    .brand {
      display: flex;
      align-items: center;
      gap: 0.9rem;
    }
    .brand::before {
      content: "";
      width: 28px;
      height: 14px;
      background: repeating-linear-gradient(to bottom, var(--sand) 0 1px, transparent 1px 4px);
    }

    /* Animación de portada: la foto se acerca lento y el texto sube por líneas */
    @keyframes drift {
      from { transform: scale(1.12); }
      to { transform: scale(1); }
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(28px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .hero img { animation: drift 14s ease-out forwards; }
    .hero .eyebrow,
    .hero h1,
    .hero .tagline,
    .hero .cta {
      opacity: 0;
      animation: rise 1.1s cubic-bezier(.2,.7,.2,1) forwards;
    }
    .hero h1 { animation-delay: 0.25s; }
    .hero .tagline { animation-delay: 0.55s; }
    .hero .cta { animation-delay: 0.8s; }

    /* Aparición suave al bajar */
    .reveal {
      opacity: 0;
      transform: translateY(32px);
      transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1);
    }
    .reveal.visible {
      opacity: 1;
      transform: none;
    }

    /* Botón con transición al pasar el mouse */
    .cta, .submit {
      transition: background 0.35s ease, letter-spacing 0.35s ease;
    }
    .cta:hover, .submit:hover { letter-spacing: 0.28em; }

    /* Más aire en las secciones */
    section { padding: 9rem 0; }
    h2 { font-size: clamp(1.8rem, 4.4vw, 3rem); }

    /* Respeta a quien tiene desactivadas las animaciones */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation: none !important;
        transition: none !important;
      }
      .reveal, .hero .eyebrow, .hero h1, .hero .tagline, .hero .cta {
        opacity: 1;
        transform: none;
      }
    }

    /* Tablet y escritorio */
    @media (min-width: 720px) {
      .grid { grid-template-columns: repeat(2, 1fr); }
      .gallery { grid-template-columns: repeat(3, 1fr); }
      .boutique { grid-template-columns: 1fr 1fr; gap: 5rem; }
      .hero img { object-position: 10% center; }
    }
    @media (min-width: 1000px) {
      .grid { grid-template-columns: repeat(4, 1fr); }
    }

/* Selector de idioma */
.lang {
  display: flex;
  gap: 0.5rem;
  margin-left: 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}
.lang a { margin-left: 0; opacity: 0.55; }
.lang a.active { opacity: 1; border-bottom: 1px solid var(--sand); }


/* Franja de líneas con la paleta de la guía */
.stripes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 120px;
  margin-bottom: 2rem;
}
.stripes span { display: block; height: 3px; }
.stripes span:nth-child(1) { background: var(--terracota); }
.stripes span:nth-child(2) { background: var(--sage); }
.stripes span:nth-child(3) { background: var(--dust); }
.stripes span:nth-child(4) { background: var(--concrete); }

/* Propuesta de valor */
.value { background: var(--ink); color: var(--sand); }
.value .statement {
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.5;
  font-weight: 300;
  max-width: 28ch;
}
.value .statement em {
  font-style: normal;
  color: var(--terracota);
  font-weight: 400;
}
.value .support {
  margin-top: 2rem;
  max-width: 60ch;
  color: var(--stone);
}

/* Pilares de marca */
.pillars {
  display: grid;
  margin-top: 3rem;
  border-top: 1px solid var(--stone);
}
.pillar {
  padding: 1.6rem 0 1.6rem 1.2rem;
  border-left: 3px solid var(--c);
  border-bottom: 1px solid var(--stone);
}
.pillar .n {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--c);
}
.pillar h3 {
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin: 0.5rem 0;
}
.pillar p { font-size: 0.92rem; color: var(--concrete); }

@media (min-width: 720px) {
  .pillars { grid-template-columns: repeat(5, 1fr); }
  .pillar {
    border-left: none;
    border-top: 3px solid var(--c);
    padding: 1.6rem 1.2rem 1.6rem 0;
    border-bottom: none;
  }
}

/* Propuesta de valor con scroll: la sección queda fija y las palabras se iluminan */
.value-track {
  position: relative;
  height: 220vh;
  background: var(--ink);
  color: var(--sand);
}
.value-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}
.value-track .statement .word { transition: opacity 0.2s linear; }

/* Sin movimiento: se muestra todo quieto */
.value-track.static { height: auto; }
.value-track.static .value-sticky {
  position: static;
  height: auto;
  padding: 9rem 0;
}

/* Portada con scroll: foto fija al centro, palabras a los lados */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hero-track {
  position: relative;
  height: 240vh;
  background: var(--ink);
  color: var(--sand);
}
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto auto auto 1fr;
  justify-items: center;
  align-items: center;
  padding: 0 var(--gutter);
}
.hero-word {
  font-size: clamp(2.2rem, 9vw, 4.6rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1;
  opacity: 0;
  will-change: transform, opacity;
}
.hero-word.left { grid-row: 2; }
.hero-word.right { grid-row: 4; }
.hero-frame {
  grid-row: 3;
  width: 62vw;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  transform: scale(0.7);
  will-change: transform;
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% center;
}
.hero-foot {
  grid-row: 5;
  align-self: end;
  padding-bottom: 7vh;
  text-align: center;
  opacity: 0;
  will-change: opacity;
}
.hero-foot .tagline {
  font-style: italic;
  color: var(--stone);
  font-size: 1rem;
  margin-top: 0.8rem;
}
.hero-foot .cta { margin-top: 1.6rem; }

@media (min-width: 900px) {
  .hero-stage {
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 1fr auto;
  }
  .hero-word.left { grid-column: 1; grid-row: 1; justify-self: end; text-align: right; padding-right: 2rem; }
  .hero-word.right { grid-column: 3; grid-row: 1; justify-self: start; text-align: left; padding-left: 2rem; }
  .hero-frame { grid-column: 2; grid-row: 1; width: auto; height: 62vh; }
  .hero-foot { grid-column: 1 / 4; grid-row: 2; }
}

/* Sin movimiento: se muestra todo quieto */
.hero-track.static { height: auto; }
.hero-track.static .hero-stage {
  position: relative;
  height: auto;
  min-height: 100vh;
  padding: 8rem var(--gutter);
}
.hero-track.static .hero-word,
.hero-track.static .hero-foot { opacity: 1; transform: none; }
.hero-track.static .hero-frame { transform: none; }

/* Destello de película sobre la portada (una sola vez, al cargar) */
.leak {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Grano de película en la sección de contacto */
.grain {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.grain::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.6s steps(6) infinite;
}
.grain > .wrap { position: relative; z-index: 1; }

@keyframes grain {
  0%   { transform: translate(0, 0); }
  17%  { transform: translate(-4%, 3%); }
  33%  { transform: translate(3%, -5%); }
  50%  { transform: translate(-2%, 6%); }
  67%  { transform: translate(5%, -2%); }
  83%  { transform: translate(-6%, 1%); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .grain::before { animation: none; }
}

/* Sobre fondos claros el grano necesita un poco más de presencia */
.stone.grain::before { opacity: 0.4; mix-blend-mode: multiply; }

/* Servicios con color: cada tarjeta toma un color de la paleta */
#servicios .card { border-top: 3px solid var(--c); }
#servicios .card .num { color: var(--c); }
#servicios .card:nth-child(1) { --c: var(--terracota); }
#servicios .card:nth-child(2) { --c: var(--sage); }
#servicios .card:nth-child(3) { --c: var(--dust); }
#servicios .card:nth-child(4) { --c: var(--ink); }

/* Propuesta de valor más compacta: el texto queda cerca del borde superior */
.value-track.tight { height: auto; }
.value-track.tight .value-sticky {
  position: sticky;
  top: 16vh;
  height: auto;
  padding: 0;
}
.value-spacer { height: 150vh; }
.value-track.static .value-spacer { display: none; }

/* Pulido: acabados más finos (tipografía liviana, líneas delgadas, más aire) */
body {
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1;
  line-height: 1.8;
}
section { padding: clamp(5.5rem, 11vw, 9rem) 0; }

h1 { font-weight: 300; letter-spacing: -0.02em; line-height: 1.04; }
h2 { font-weight: 300; letter-spacing: -0.012em; line-height: 1.14; }
h3 { letter-spacing: 0.02em; }

.eyebrow { font-size: 0.66rem; letter-spacing: 0.34em; }

.brand { font-size: 0.78rem; font-weight: 400; letter-spacing: 0.36em; }
header { padding: 1.8rem 0; }

.hero .tagline { font-weight: 300; letter-spacing: 0.01em; }

.grid { background: transparent; border: 0; gap: 0; }
.card { padding: 2.6rem 2.2rem; border-top: 1px solid var(--stone); }
#servicios .card { border-top-width: 2px; }
.card p { font-size: 0.9rem; line-height: 1.75; }
.card .num { font-size: 0.66rem; letter-spacing: 0.3em; }

.stats { letter-spacing: 0.02em; border-top-color: rgba(140, 133, 125, 0.5); }

.pillar { padding-top: 2rem; padding-bottom: 2rem; }
.pillar p { font-size: 0.88rem; line-height: 1.7; }

.cta,
.submit {
  padding: 1.05rem 2.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
}

label { font-size: 0.7rem; letter-spacing: 0.22em; }
input, select, textarea {
  border: 1px solid rgba(140, 133, 125, 0.55);
  background: rgba(255, 255, 255, 0.02);
  font-weight: 300;
}
input:focus, select:focus, textarea:focus { border-color: var(--terracota); }

.alt { font-size: 0.88rem; }
footer { padding: 2.8rem 0; font-size: 0.74rem; }

/* Esquinas suaves: fotos interiores, tarjetas, botones y campos */
.boutique img { border-radius: 14px; }
input, select, textarea { border-radius: 8px; }
.card { border-radius: 10px; }
.cta, .submit { border-radius: 6px; }

/* Marco minimalista para las fotos: línea fina con aire alrededor, color de la guía */
.boutique img {
  outline: 1px solid var(--concrete);
  outline-offset: 16px;
}
@media (min-width: 720px) {
  .boutique img { outline-offset: 22px; }
}

/* Tarjetas en 3D: levantadas del fondo, con inclinación y luz al pasar el mouse */
#servicios .grid,
#para-quien .grid { perspective: 1200px; }

#servicios .card,
#para-quien .card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  box-shadow: 0 1px 0 rgba(28, 28, 28, 0.04), 0 18px 36px -20px rgba(28, 28, 28, 0.4);
  will-change: transform;
}
#servicios .card:hover,
#para-quien .card:hover {
  box-shadow: 0 2px 0 rgba(28, 28, 28, 0.04), 0 34px 60px -26px rgba(28, 28, 28, 0.5);
}
#servicios .card::after,
#para-quien .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.55), transparent 55%);
}
#servicios .card:hover::after,
#para-quien .card:hover::after { opacity: 1; }

@media (hover: none) {
  #servicios .card::after,
  #para-quien .card::after { display: none; }
}

/* Al pasar el mouse, el texto de las tarjetas se marca más (negrita y color más oscuro) */
#servicios .card h3,
#para-quien .card h3 { transition: font-weight 0.3s ease, color 0.3s ease; }
#servicios .card p,
#para-quien .card p { transition: font-weight 0.3s ease, color 0.3s ease; }

#servicios .card:hover h3,
#para-quien .card:hover h3 { font-weight: 600; color: var(--ink); }
#servicios .card:hover p,
#para-quien .card:hover p { font-weight: 400; color: var(--ink); }

/* Legibilidad de las tarjetas: más contraste y más peso en el texto */
#servicios .card h3,
#para-quien .card h3 { font-weight: 500; font-size: 1.12rem; color: var(--ink); }
#servicios .card p,
#para-quien .card p { font-weight: 400; font-size: 0.95rem; line-height: 1.75; color: #3d3a36; }

/* Logo de la marca en la barra superior */
.logo {
  width: auto;
  height: 46px;
  display: block;
}
header .logo { height: 44px; }
@media (max-width: 719px) {
  .logo { height: 36px; }
}

/* Páginas con fondo claro: menú y logo en color oscuro */
body.on-light header { color: var(--ink); }
body.on-light nav a { color: var(--ink); }
body.on-light nav a.active { border-bottom: 1px solid var(--ink); }

/* Logo más grande y más cerca de la esquina */
header .wrap { padding-left: 0.8rem; padding-right: 0.8rem; max-width: none; }
header .logo { height: 64px; margin-left: -0.6rem; }
@media (max-width: 719px) {
  header .logo { height: 50px; margin-left: -0.4rem; }
}

/* Portada: la foto queda quieta, sin zoom ni destello */
.hero img { animation: none; }

/* El título aparece letra por letra (lo hace letras.js) */
.hero h1 { opacity: 1; animation: none; }
.hero h1 .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(6px);
  animation: letra 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes letra {
  to { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .ch { opacity: 1; transform: none; filter: none; animation: none; }
}

/* Línea fina que se dibuja debajo de cada etiqueta al entrar la sección */
.eyebrow::after {
  content: "";
  display: block;
  width: 2.6rem;
  height: 1px;
  margin-top: 0.9rem;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1) 0.25s;
}
.hero .eyebrow::after,
.reveal.visible .eyebrow::after,
.value-track .eyebrow::after { transform: scaleX(1); }

/* Fotos que se descubren como una cortina de abajo hacia arriba */
.reveal:not(.visible) .boutique img { clip-path: inset(100% 0 0 0); }
.boutique img {
  transition: clip-path 1.4s cubic-bezier(.2,.7,.2,1) 0.15s;
  clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow::after { transform: scaleX(1); transition: none; }
  .reveal:not(.visible) .boutique img { clip-path: none; }
  .boutique img { transition: none; }
}

/* Botón con animación propia: al pasar el mouse, un bloque carbón sube desde abajo */
.cta,
.submit {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s ease;
}
.cta::before,
.submit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.55s cubic-bezier(.2,.7,.2,1);
}
.cta:hover::before,
.submit:hover::before { transform: translateY(0); }
.cta:hover,
.submit:hover { letter-spacing: 0.26em; color: var(--sand); }

/* Entrada propia del botón en la portada: solo se desvanece, no sube como el resto */
.hero .cta {
  animation: boton-entra 1.2s ease 1.1s forwards;
  transform: none;
}
@keyframes boton-entra {
  to { opacity: 1; }
}

/* Entrada del botón en la portada: desliza desde la derecha con un pequeño rebote, y se desvanece */
.hero .cta {
  animation: boton-desliza 1.1s cubic-bezier(.34, 1.4, .64, 1) 1.1s forwards;
}
@keyframes boton-desliza {
  from { opacity: 0; transform: translateX(120px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .cta { animation: none; opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------
   Textura de rayas
   Eco de las líneas finas del monograma EL, pero en relieve:
   cada banda lleva una luz arriba y una sombra abajo, así se lee
   como una corrugación sutil y no como un patrón de rayas plano.
   Va solo en los fondos sólidos, uno de por medio.
   --------------------------------------------------------------- */

.rayas {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --raya-paso: 6px;
  --raya-luz: 0.55;
  --raya-sombra: 0.06;
}

.rayas::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, var(--raya-luz)) 0,
    rgba(255, 255, 255, 0) calc(var(--raya-paso) * 0.38),
    rgba(0, 0, 0, 0) calc(var(--raya-paso) * 0.52),
    rgba(0, 0, 0, var(--raya-sombra)) calc(var(--raya-paso) * 0.88),
    rgba(0, 0, 0, 0) var(--raya-paso)
  );
}

.rayas > .wrap { position: relative; z-index: 1; }

/* El relieve necesita calibrarse contra cada fondo */
.light.rayas { --raya-luz: 0.95; --raya-sombra: 0.035; }
.stone.rayas { --raya-luz: 0.55; --raya-sombra: 0.06; }
.dark.rayas  { --raya-luz: 0.05; --raya-sombra: 0.32; }

/* Donde ya había grano, se baja para que no compita con las rayas */
.stone.grain.rayas::before { opacity: 0.18; }
.dark.grain.rayas::before { opacity: 0.045; }

/* ---------------------------------------------------------------
   Bio de Álvaro sobre una capa elevada.
   El texto se apoya en un panel traslúcido: gana peso y contraste,
   y la textura de rayas se sigue viendo detrás.
   --------------------------------------------------------------- */

#sobre-alvaro .boutique > div {
  position: relative;
  z-index: 1;
  padding: clamp(1.8rem, 3.5vw, 3rem);
  border-radius: 16px;
  background: rgba(250, 248, 244, 0.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    0 24px 48px -20px rgba(28, 28, 28, 0.38),
    0 3px 10px rgba(28, 28, 28, 0.07);
}

#sobre-alvaro .boutique > div h2 {
  font-weight: 400;
  color: var(--ink);
}

#sobre-alvaro .boutique > div p {
  font-weight: 400;
  color: #2b2825;
  line-height: 1.75;
}

@media (prefers-reduced-transparency: reduce) {
  #sobre-alvaro .boutique > div {
    background: rgba(250, 248, 244, 0.96);
    backdrop-filter: none;
  }
}

/* ---------------------------------------------------------------
   Propuesta de valor con el mismo tratamiento que el manifiesto.
   El CSS anterior colgaba de `.value`, una clase que no existe en el
   HTML, así que el texto se quedaba sin tamaño ni peso. Esto lo
   engancha a `.value-track`, que sí está.
   --------------------------------------------------------------- */

.value-track .statement {
  max-width: 60ch;
  font-size: 1.15rem;
  line-height: 1.9;
  font-weight: 300;
}
.value-track .statement em {
  font-style: normal;
  font-weight: 500;
}
.value-track .support {
  margin-top: 2rem;
  max-width: 60ch;
  color: var(--stone);
}

/* ---------------------------------------------------------------
   Servicios: el texto de las tarjetas estaba en peso 300 y gris
   claro, que sobre la textura del fondo costaba leer. Más cuerpo
   y más contraste, sin cambiar el aire de la sección.
   --------------------------------------------------------------- */

#servicios .card h3 {
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}

#servicios .card p {
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #2b2825;
}

#servicios .card .num {
  font-weight: 600;
  opacity: 0.95;
}

/* La foto de Álvaro sin la cortina: aparece quieta, como el resto. */
#sobre-alvaro .boutique img,
#sobre-alvaro:not(.visible) .boutique img {
  clip-path: none;
  transition: none;
}

/* ---------------------------------------------------------------
   Pilares: cada uno pasa a ser su propia tarjeta.
   Antes los bordes de color quedaban pegados y se leían como una
   sola línea multicolor, y el texto iba en gris claro sobre claro.
   --------------------------------------------------------------- */

.pillars {
  border-top: 0;
  gap: 1rem;
  margin-top: 3.5rem;
  align-items: stretch;
}

.pillar {
  position: relative;
  border: 0;
  border-top: 3px solid var(--c);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px -18px rgba(28, 28, 28, 0.26);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pillar .n {
  display: block;
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--c);
  opacity: 0.5;
}

.pillar h3 {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 1.1rem 0 0.6rem;
}

.pillar p {
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 400;
  color: #2b2825;
}

@media (min-width: 720px) {
  .pillar { padding: 2rem 1.5rem; border-left: 0; border-bottom: 0; }
}

@media (hover: hover) and (pointer: fine) {
  .pillar:hover {
    transform: translateY(-4px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 22px 42px -18px rgba(28, 28, 28, 0.32);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pillar { transition: none; }
  .pillar:hover { transform: none; }
}

/* ---------------------------------------------------------------
   Eyebrow con más cuerpo: en gris claro sobre fondo claro
   prácticamente desaparecía.
   --------------------------------------------------------------- */
.eyebrow {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  color: #6b635a;
}

/* ---------------------------------------------------------------
   Nota de prensa: preview de la página, al lado del resumen.
   La imagen completa lleva al PDF.
   --------------------------------------------------------------- */

.prensa-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2.8rem;
}

@media (min-width: 860px) {
  .prensa-grid { grid-template-columns: 1fr 0.95fr; gap: 3.5rem; }
}

.prensa-preview {
  display: block;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 2px 8px rgba(28, 28, 28, 0.10),
    0 34px 62px -30px rgba(28, 28, 28, 0.55);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.prensa-preview img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
  .prensa-preview:hover {
    transform: translateY(-6px);
    box-shadow:
      0 2px 8px rgba(28, 28, 28, 0.10),
      0 44px 74px -30px rgba(28, 28, 28, 0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .prensa-preview { transition: none; }
  .prensa-preview:hover { transform: none; }
}

/* Pilares: más cuerpo y más contraste en el texto de cada tarjeta. */
.pillar {
  background: rgba(255, 255, 255, 0.74);
}
.pillar h3 {
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
}
.pillar p {
  font-size: 0.97rem;
  line-height: 1.65;
  font-weight: 500;
  color: #241f1c;
}
.pillar .n {
  opacity: 0.65;
  font-weight: 400;
}

/* ---------------------------------------------------------------
   Pilares en oscuro: tarjetas carbón sobre la sección clara.
   La barra de color arriba y el número quedan como el acento.
   --------------------------------------------------------------- */

.pillar {
  background: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 34px -20px rgba(28, 28, 28, 0.55);
}

.pillar .n {
  color: var(--c);
  opacity: 0.95;
  font-weight: 400;
}

.pillar h3 {
  color: var(--sand);
  font-weight: 600;
}

.pillar p {
  color: rgba(243, 240, 234, 0.84);
  font-weight: 400;
  font-size: 0.97rem;
  line-height: 1.7;
}

@media (hover: hover) and (pointer: fine) {
  .pillar:hover {
    transform: translateY(-4px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 28px 48px -20px rgba(28, 28, 28, 0.62);
  }
}

/* Pilares en gris mate: menos duro que el carbón, sombra más plana. */
.pillar {
  background: #4a4642;
  box-shadow: 0 10px 22px -16px rgba(28, 28, 28, 0.4);
}
.pillar p { color: rgba(243, 240, 234, 0.88); }
@media (hover: hover) and (pointer: fine) {
  .pillar:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -16px rgba(28, 28, 28, 0.45);
  }
}

/* ---------------------------------------------------------------
   Pilares con acabado cálido y táctil.
   El plano gris se cambia por un degradado que simula luz desde
   arriba, filo de luz en el borde superior, sombra interna abajo
   y un grano muy fino encima para que se sienta textil y no
   plástico. La sombra exterior va en tono tierra, no en negro.
   --------------------------------------------------------------- */

.pillar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  padding: 2.3rem 1.7rem 2.1rem;
  background: linear-gradient(168deg, #5a534a 0%, #4b443d 46%, #383229 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 232, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 246, 232, 0.05),
    0 2px 5px rgba(62, 50, 38, 0.2),
    0 16px 28px -12px rgba(62, 50, 38, 0.42),
    0 42px 64px -32px rgba(62, 50, 38, 0.55);
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1),
              box-shadow 0.45s cubic-bezier(.2,.7,.2,1);
}

/* Grano fino: el detalle que lo saca de verse plástico */
.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}

.pillar .n {
  color: var(--c);
  opacity: 1;
  font-weight: 300;
  font-size: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.pillar h3 {
  color: #F6F2EA;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pillar p {
  color: rgba(244, 238, 228, 0.86);
  font-weight: 400;
}

@media (hover: hover) and (pointer: fine) {
  .pillar:hover {
    transform: translateY(-7px) scale(1.012);
    box-shadow:
      inset 0 1px 0 rgba(255, 246, 232, 0.2),
      inset 0 -1px 0 rgba(0, 0, 0, 0.28),
      inset 0 0 0 1px rgba(255, 246, 232, 0.07),
      0 2px 5px rgba(62, 50, 38, 0.2),
      0 24px 38px -12px rgba(62, 50, 38, 0.48),
      0 60px 84px -32px rgba(62, 50, 38, 0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pillar { transition: none; }
  .pillar:hover { transform: none; }
}

/* La foto de la bio va sin marco. */
#sobre-alvaro .boutique img { outline: none; outline-offset: 0; }

/* ---------------------------------------------------------------
   Pilares, acabado final: cacao profundo y mate.
   El gris se veía desteñido porque el grano iba en `overlay`, que
   levanta todo hacia gris. Ahora va en `soft-light` y muy bajo, y
   la base es un café saturado en vez de un gris tierra. Sin anillo
   blanco interno, que era lo que lo empolvaba.
   --------------------------------------------------------------- */

.pillar {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 214, 170, 0.10), transparent 60%),
    linear-gradient(170deg, #4A382B 0%, #3A2B20 48%, #241A13 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 222, 184, 0.13),
    inset 0 -14px 26px -16px rgba(0, 0, 0, 0.55),
    0 2px 5px rgba(46, 32, 22, 0.26),
    0 18px 30px -12px rgba(46, 32, 22, 0.5),
    0 46px 68px -34px rgba(46, 32, 22, 0.62);
}

.pillar::before {
  opacity: 0.22;
  mix-blend-mode: soft-light;
}

.pillar h3 { color: #F7F1E6; }
.pillar p { color: rgba(246, 238, 226, 0.84); }

@media (hover: hover) and (pointer: fine) {
  .pillar:hover {
    box-shadow:
      inset 0 1px 0 rgba(255, 222, 184, 0.17),
      inset 0 -14px 26px -16px rgba(0, 0, 0, 0.5),
      0 2px 5px rgba(46, 32, 22, 0.26),
      0 26px 40px -12px rgba(46, 32, 22, 0.55),
      0 64px 88px -34px rgba(46, 32, 22, 0.66);
  }
}

/* ---------------------------------------------------------------
   Pilares: relieve de estuco, sin líneas y sin café.
   Mismo principio que las rayas del fondo (luz arriba, sombra
   abajo en cada accidente) pero generado con ruido y luz difusa
   en vez de bandas, así la superficie se siente tocada a mano.
   Base en carbón neutro, sin tinte marrón.
   --------------------------------------------------------------- */

.pillar {
  background:
    radial-gradient(130% 95% at 50% 0%, rgba(255, 252, 246, 0.07), transparent 62%),
    linear-gradient(172deg, #3E3C39 0%, #333130 50%, #242322 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 253, 248, 0.11),
    inset 0 -14px 26px -16px rgba(0, 0, 0, 0.5),
    0 2px 5px rgba(32, 31, 30, 0.26),
    0 18px 30px -12px rgba(32, 31, 30, 0.46),
    0 46px 68px -34px rgba(32, 31, 30, 0.56);
}

/* Capa 1: el relieve. Ruido pasado por luz difusa, que es lo que
   le da los bultitos con su propia luz y sombra. */
.pillar::before {
  opacity: 0.55;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='r' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='0.62' numOctaves='4' seed='7' stitchTiles='stitch'/><feDiffuseLighting lighting-color='white' surfaceScale='2.2'><feDistantLight azimuth='270' elevation='62'/></feDiffuseLighting></filter><rect width='100%25' height='100%25' filter='url(%23r)'/></svg>");
  background-size: 320px 320px;
}

/* Capa 2: grano fino encima, para que no quede una superficie lisa */
.pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23f)'/></svg>");
}

.pillar h3 { color: #F4F2EE; }
.pillar p { color: rgba(242, 240, 235, 0.84); }

/* ---------------------------------------------------------------
   Pilares con acabado de tela.
   Lo que lo hacía ver piedra era la luz difusa sobre ruido, que
   genera bultos con relieve duro. La tela es lo contrario: trama
   finísima en dos direcciones, relieve casi nulo y una superficie
   que absorbe la luz en vez de reflejarla.
   --------------------------------------------------------------- */

.pillar {
  background:
    radial-gradient(135% 100% at 50% 0%, rgba(255, 253, 250, 0.04), transparent 65%),
    linear-gradient(172deg, #3D3B38 0%, #343231 52%, #272625 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 253, 248, 0.07),
    inset 0 -16px 30px -18px rgba(0, 0, 0, 0.42),
    0 2px 6px rgba(32, 31, 30, 0.22),
    0 16px 28px -12px rgba(32, 31, 30, 0.4),
    0 44px 66px -34px rgba(32, 31, 30, 0.5);
}

/* Capa 1: la trama. Hilos en los dos sentidos, muy finos. */
.pillar::before {
  opacity: 1;
  mix-blend-mode: normal;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 252, 246, 0.042) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.065) 0 1px, transparent 1px 3px);
  background-size: 3px 3px, 3px 3px;
}

/* Capa 2: la pelusa, para que la trama no se vea impresa */
.pillar::after {
  opacity: 0.3;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='t'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23t)'/></svg>");
  background-size: 160px 160px;
}

/* ---------------------------------------------------------------
   Pilares: gamuza en gris oscuro.
   La referencia no tiene trama visible: es una superficie casi lisa
   con manchas grandes y suaves de pelusa, degradado de arriba hacia
   abajo y un grano finísimo. Fuera los hilos cruzados.
   --------------------------------------------------------------- */

.pillar {
  background: linear-gradient(178deg, #4E4C4A 0%, #434140 42%, #333231 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 254, 252, 0.06),
    inset 0 -18px 34px -20px rgba(0, 0, 0, 0.38),
    0 2px 6px rgba(32, 31, 30, 0.2),
    0 16px 28px -12px rgba(32, 31, 30, 0.38),
    0 44px 66px -34px rgba(32, 31, 30, 0.48);
}

/* Pelusa: manchas grandes y difusas, como gamuza cepillada */
.pillar::before {
  opacity: 0.55;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='640' height='640'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.011' numOctaves='3' seed='5' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 640px 640px;
}

/* Grano finísimo encima, casi imperceptible */
.pillar::after {
  opacity: 0.11;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='g2'><feTurbulence type='fractalNoise' baseFrequency='1.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23g2)'/></svg>");
  background-size: 140px 140px;
}

/* El ruido salía en color (RGB independientes) y manchaba las tarjetas
   de morado y verde. `feColorMatrix saturate 0` lo deja en gris puro. */
.pillar::before {
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='640' height='640'><filter id='n2'><feTurbulence type='fractalNoise' baseFrequency='0.011' numOctaves='3' seed='5' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n2)'/></svg>");
}
.pillar::after {
  opacity: 0.1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='g3'><feTurbulence type='fractalNoise' baseFrequency='1.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23g3)'/></svg>");
}

/* ---------------------------------------------------------------
   Pilares en el tono exacto del fondo de rayas (#D4CFC7), sin las
   rayas, con letra oscura. La textura queda como un susurro, solo
   para que no se vea una superficie plana de plástico.
   --------------------------------------------------------------- */

.pillar {
  background: #D4CFC7;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 2px 4px rgba(62, 56, 48, 0.08),
    0 14px 26px -14px rgba(62, 56, 48, 0.26),
    0 38px 58px -34px rgba(62, 56, 48, 0.3);
}

.pillar::before { opacity: 0.1; }
.pillar::after  { opacity: 0.07; }

.pillar .n {
  color: var(--c);
  opacity: 0.85;
  text-shadow: none;
}

.pillar h3 {
  color: var(--ink);
  text-shadow: none;
}

.pillar p {
  color: #39342E;
  font-weight: 400;
}

@media (hover: hover) and (pointer: fine) {
  .pillar:hover {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.8),
      0 2px 4px rgba(62, 56, 48, 0.08),
      0 22px 36px -14px rgba(62, 56, 48, 0.3),
      0 54px 78px -34px rgba(62, 56, 48, 0.34);
  }
}

/* Pilares más claros, manteniendo el escalón contra el fondo arena. */
.pillar { background: #E9E5DE; }

/* La foto de La firma tampoco lleva la cortina. */
#firma .boutique img,
#firma:not(.visible) .boutique img {
  clip-path: none;
  transition: none;
}

/* ---------------------------------------------------------------
   Portada reencuadrada: el logo quedaba casi sobre el ojo.
   Se amplía desde la esquina superior izquierda, así el sujeto se
   desplaza hacia abajo y a la derecha y gana aire bajo el logo.
   --------------------------------------------------------------- */

.hero { overflow: hidden; }

.hero img {
  object-position: left top;
  transform-origin: 0% 0%;
}

@keyframes drift {
  from { transform: scale(1.4); }
  to   { transform: scale(1.26); }
}

@media (max-width: 719px) {
  @keyframes drift {
    from { transform: scale(1.3); }
    to   { transform: scale(1.18); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero img { animation: none; transform: scale(1.26); }
}

/* Pilares en crema: más cálido, menos gris, acabado mate. */
.pillar { background: #F0E9DB; }

/* Crema más clara y texto con más peso de contraste encima. */
.pillar {
  background: #FAF5EB;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 4px rgba(62, 56, 48, 0.09),
    0 16px 28px -14px rgba(62, 56, 48, 0.3),
    0 42px 62px -34px rgba(62, 56, 48, 0.34);
}
.pillar h3 { color: #17150F; }
.pillar p  { color: #2A251D; font-weight: 400; }
.pillar .n { opacity: 1; }
