/* ==========================================================================
   javierrodriguez.dev — hoja única

   La web es mía y oscura (Unbounded + Onest). Pero cuando aparece un
   proyecto, aparece con SU identidad, copiada de su web de verdad:

   · LitroVolt  → Barlow 800, «Litro» en tinta + «Volt» en azul, su icono,
                  sus colores de tema oscuro y sus botones (piel.css).
   · Bodavia    → su logotipo real (símbolo + palabra, sin reescribir), sus
                  titulares en Cormorant Garamond light con la segunda línea
                  en cursiva, DM Sans, noche #1E1610, crema #E4D9CC y oro
                  #C8A96A (vistas/landing.php de bodavia.es).

   Si cambia la marca de un proyecto, se cambia aquí: bloques .piel-lv y
   .piel-bv. Todo es CSS; la web no lleva ni una línea de JavaScript.
   ========================================================================== */

/* --- Tipografías autoalojadas ------------------------------------------- */
@font-face { font-family: 'Unbounded'; font-weight: 300 800; font-display: swap; src: url('/fuentes/unbounded-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-weight: 300 800; font-display: swap; src: url('/fuentes/unbounded-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-weight: 300 700; font-display: swap; src: url('/fuentes/onest-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-weight: 300 700; font-display: swap; src: url('/fuentes/onest-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* LitroVolt: las mismas Barlow que sirve su web */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/fuentes/barlow-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/fuentes/barlow-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/fuentes/barlow-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/fuentes/barlow-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-weight: 800; font-display: swap; src: url('/fuentes/barlow-800-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 800; font-display: swap; src: url('/fuentes/barlow-800-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF; }

/* Bodavia: Cormorant Garamond light (y su cursiva) y DM Sans, como bodavia.es */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fuentes/cormorant-300-latin.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap; src: url('/fuentes/cormorant-300-italic-latin.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 300 500; font-display: swap; src: url('/fuentes/dmsans-latin.woff2') format('woff2'); }

/* --- Colores y medidas --------------------------------------------------- */
:root {
  color-scheme: dark;
  --fondo: #0F151C;
  --fondo-2: #141C25;
  --tinta: #EEF3F7;
  --tinta-2: #A9B6C3;
  --tinta-3: #7C8A99;
  --linea: #243140;
  --turquesa: #3FC6B0;
  --vivo: #5FD3A0;

  --titular: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
  --texto: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --medida: 62ch;
  --curva: cubic-bezier(.2, .7, .2, 1);

  /* LitroVolt — valores de su piel.css, tema oscuro */
  --lv-fuente: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lv-papel: #0D1219;
  --lv-profundo: #0A2A52;
  --lv-tinta: #E8EDF4;
  --lv-azul: #82B1EC;
  --lv-accion: #4E93E8;
  --lv-accion-tinta: #14181F;
  --lv-accion-viva: #6FA6EE;

  /* Bodavia — valores de bodavia.es */
  --bv-titular: 'Cormorant Garamond', Georgia, serif;
  --bv-fuente: 'DM Sans', system-ui, sans-serif;
  --bv-noche: #1E1610;
  --bv-noche-2: #241A0E;
  --bv-crema: #E4D9CC;
  --bv-oro: #C8A96A;
  --bv-oro-vivo: #E0C080;
  --bv-grano: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--fondo); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; font-weight: inherit; }
p { margin: 0; }
p + p { margin-top: 1em; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--lv-azul); outline-offset: 4px; border-radius: 6px; }
::selection { background: rgb(130 177 236 / .35); }

.pagina { width: 100%; max-width: 74rem; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.salto { position: absolute; left: -999px; z-index: 20; }
.salto:focus { left: 1rem; top: 1rem; background: var(--fondo-2); padding: .5rem 1rem; border-radius: .5rem; }

/* --- Cabecera ------------------------------------------------------------ */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-block: 1rem;
  background: color-mix(in srgb, var(--fondo) 78%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linea);
}
/* Arriba del todo es transparente (las luces pasan por detrás); al bajar se
   oscurece y aparece el borde. */
@supports (animation-timeline: scroll()) {
  .cabecera { animation: cabecera-fondo linear both; animation-timeline: scroll(); animation-range: 0 8rem; }
  @keyframes cabecera-fondo {
    from { background-color: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  }
}
.cabecera__fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; }
.cabecera__nombre { font-family: var(--titular); font-weight: 600; font-size: 1rem; letter-spacing: -.02em; text-decoration: none; }
.cabecera__nav { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; font-size: 1rem; }
.cabecera__nav a,
.subrayado {
  color: var(--tinta-2);
  text-decoration: none;
  background: linear-gradient(90deg, var(--lv-azul), var(--bv-oro)) no-repeat 0 100% / 0 2px;
  padding-bottom: 2px;
  transition: background-size .45s var(--curva), color .3s;
}
.cabecera__nav a:hover, .subrayado:hover { color: var(--tinta); background-size: 100% 2px; }

/* --- Pie ----------------------------------------------------------------- */
.pie { margin-top: clamp(5rem, 12vw, 8rem); padding-block: 2rem 2.5rem; border-top: 1px solid var(--linea); color: var(--tinta-3); font-size: .9375rem; }
.pie__fila { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.pie__fila p + p { margin-top: 0; }
.pie a { color: var(--tinta-2); }

/* --- Luces de fondo ------------------------------------------------------ */
.luces {
  position: absolute;
  z-index: -1;
  inset: -6rem -12rem auto auto;
  width: min(62rem, 110vw);
  height: 40rem;
  pointer-events: none;
  filter: blur(80px);
  opacity: .5;
}
.luces span { position: absolute; border-radius: 50%; }
.luces span:nth-child(1) { width: 24rem; height: 24rem; top: 12%; right: 34%; background: var(--lv-accion); animation: deriva-a 19s ease-in-out infinite alternate; }
.luces span:nth-child(2) { width: 21rem; height: 21rem; top: 34%; right: 10%; background: var(--bv-oro); animation: deriva-b 23s ease-in-out infinite alternate; }
.luces span:nth-child(3) { width: 15rem; height: 15rem; top: 0; right: 2%; background: var(--turquesa); opacity: .7; animation: deriva-c 27s ease-in-out infinite alternate; }
@keyframes deriva-a { to { transform: translate(-9rem, 7rem) scale(1.15); } }
@keyframes deriva-b { to { transform: translate(-12rem, -5rem) scale(.85); } }
@keyframes deriva-c { to { transform: translate(-5rem, 10rem) scale(1.2); } }

/* --- Portada: presentación ----------------------------------------------- */
.presentacion { position: relative; isolation: isolate; padding-block: clamp(3.5rem, 12vh, 8rem) clamp(2.5rem, 6vh, 4rem); }
.presentacion::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -5rem -50vw 0;
  background: radial-gradient(circle, rgb(255 255 255 / .09) 1px, transparent 1.6px) 0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 35%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 70% 35%, #000 0%, transparent 70%);
}
.nombre { font-family: var(--titular); font-weight: 700; font-size: clamp(2.5rem, 12.5vw, 7.25rem); line-height: 1; letter-spacing: -.04em; }
.nombre .linea { display: block; overflow: hidden; padding-block: .06em .12em; }
.nombre .linea > span { display: inline-block; animation: subir 1.1s var(--curva) both; }
.nombre .linea:nth-child(2) > span { animation-delay: .12s; }
@keyframes subir { from { transform: translateY(105%); } }

.lema {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 32ch;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.01em;
  animation: aparecer .9s .45s var(--curva) both;
}
/* Cada frase del rotador habla con la voz de su proyecto */
.rotador { display: grid; align-items: baseline; min-height: 1.45em; }
.rotador > span { grid-area: 1 / 1; opacity: 0; animation: rotar 10.5s var(--curva) infinite; }
.rotador .voz-lv { font-family: var(--lv-fuente); font-weight: 800; letter-spacing: -.015em; color: var(--lv-azul); }
.rotador .voz-bv { font-family: var(--bv-titular); font-style: italic; font-weight: 300; font-size: 1.22em; line-height: 1.1; color: var(--bv-oro); animation-delay: 3.5s; }
.rotador .voz-yo { color: var(--turquesa); animation-delay: 7s; }
@keyframes rotar {
  0%        { opacity: 0; transform: translateY(.45em); filter: blur(4px); }
  5%, 29%   { opacity: 1; transform: none; filter: none; }
  34%, 100% { opacity: 0; transform: translateY(-.45em); filter: blur(4px); }
}
.lema__pie { margin-top: 1.25rem; max-width: 44ch; color: var(--tinta-2); animation: aparecer .9s .6s var(--curva) both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(16px); } }

/* --- Cinta --------------------------------------------------------------- */
.cinta {
  margin-inline: calc(50% - 50vw);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-block: 1.1rem;
  border-block: 1px solid var(--linea);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  animation: aparecer .9s .8s var(--curva) both;
}
.cinta__pista { display: flex; width: max-content; animation: desplazar 55s linear infinite; }
.cinta:hover .cinta__pista { animation-play-state: paused; }
.cinta__pista span { display: inline-flex; align-items: center; gap: .7rem; padding-inline: 1.6rem; white-space: nowrap; color: var(--tinta-2); font-size: 1rem; }
.cinta__pista span::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--lv-azul); }
.cinta__pista .bv::before { background: var(--bv-oro); }
@keyframes desplazar { to { transform: translateX(-50%); } }

/* --- Bloques ------------------------------------------------------------- */
.bloque { margin-top: clamp(4.5rem, 11vw, 8rem); }
.bloque__titulo { font-family: var(--titular); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: -.03em; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

@supports (animation-timeline: view()) {
  .revela { animation: aparecer linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  .paneles > .revela:nth-child(2), .principios > .revela:nth-child(2) { animation-range: entry 15% entry 100%; }
  .principios > .revela:nth-child(3) { animation-range: entry 30% cover 20%; }
}

/* ==========================================================================
   Pieles de marca
   ========================================================================== */

/* --- LitroVolt ----------------------------------------------------------- */
.piel-lv {
  --marca: var(--lv-azul);
  font-family: var(--lv-fuente);
  color: var(--lv-tinta);
  border-color: rgb(130 177 236 / .2);
  background:
    radial-gradient(120% 80% at 100% 0%, rgb(27 111 212 / .34), transparent 60%),
    linear-gradient(180deg, #0F1A2B, var(--lv-papel) 70%);
}
/* El logotipo tal como lo firma su web: icono + «Litro» + «Volt» */
.marca-lv {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-family: var(--lv-fuente);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1;
  color: var(--lv-tinta);
  text-decoration: none;
}
.marca-lv__icono { width: 1.6em; height: 1.6em; flex: none; border-radius: 22%; box-shadow: 0 1px 3px rgb(0 0 0 / .22); }
.marca-lv__texto { white-space: nowrap; }
.marca-lv__volt { color: var(--lv-azul); }
.piel-lv .lema-marca { font-weight: 800; letter-spacing: -.01em; line-height: 1.15; color: var(--lv-tinta); }
.piel-lv .lema-marca em { font-style: normal; color: var(--lv-azul); }
.piel-lv .texto-marca { color: rgb(232 237 244 / .72); }
.piel-lv .enlaces a { font-family: var(--lv-fuente); font-weight: 600; border-color: rgb(130 177 236 / .4); color: var(--lv-tinta); }
.piel-lv .enlaces li:first-child a { background: var(--lv-accion); border-color: transparent; color: var(--lv-accion-tinta); }
.piel-lv .enlaces a:hover { background: var(--lv-accion-viva); border-color: transparent; color: var(--lv-accion-tinta); }
.piel-lv .estado { font-family: var(--lv-fuente); font-weight: 600; }

/* --- Bodavia ------------------------------------------------------------- */
.piel-bv {
  --marca: var(--bv-oro);
  font-family: var(--bv-fuente);
  font-weight: 300;
  color: var(--bv-crema);
  border-color: rgb(200 169 106 / .22);
  background:
    var(--bv-grano),
    radial-gradient(110% 70% at 100% 0%, rgb(200 169 106 / .16), transparent 60%),
    linear-gradient(180deg, var(--bv-noche-2), var(--bv-noche) 70%);
}
/* El logotipo real (símbolo + palabra), en la versión clara que corresponde
   a un fondo oscuro; nunca se reescribe con una fuente parecida. */
.marca-bv { display: block; width: auto; }
.piel-bv .lema-marca { font-family: var(--bv-titular); font-weight: 300; line-height: 1.05; color: var(--bv-crema); }
.piel-bv .lema-marca em { display: block; font-style: italic; color: var(--bv-oro); }
.piel-bv .texto-marca { color: rgb(228 217 204 / .7); }
.piel-bv .enlaces a {
  padding: .9rem 1.5rem;
  font-family: var(--bv-fuente);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  border-color: rgb(200 169 106 / .45);
  color: var(--bv-crema);
}
.piel-bv .enlaces li:first-child a { background: var(--bv-oro); border-color: transparent; color: var(--bv-noche); }
.piel-bv .enlaces a:hover { background: var(--bv-oro-vivo); border-color: transparent; color: var(--bv-noche); }
.piel-bv .estado {
  --punto: var(--bv-oro);
  font-family: var(--bv-fuente);
  font-weight: 500;
  font-size: .66rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--bv-oro);
  border-color: rgb(200 169 106 / .3);
  background: transparent;
}

/* --- Paneles de proyecto (portada) --------------------------------------- */
.paneles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem) 0;
  border: 1px solid var(--linea);
  border-radius: 1.75rem;
  overflow: hidden;
  transition: border-color .5s, transform .6s var(--curva), box-shadow .6s;
}
.panel:hover {
  border-color: color-mix(in srgb, var(--marca) 55%, transparent);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--marca) 60%, transparent);
}
.panel .estado { align-self: flex-start; }
.panel__nombre { margin-top: 1.5rem; }
.panel__nombre .marca-lv { font-size: clamp(2rem, 3.8vw, 3rem); }
.panel__nombre .marca-lv__icono { animation: flotar 6s ease-in-out infinite; }
.panel__nombre .marca-bv { height: clamp(6.5rem, 11vw, 8.5rem); animation: flotar 7s -3s ease-in-out infinite; }
.panel .lema-marca { margin-top: 1.25rem; }
.piel-lv.panel .lema-marca { font-size: clamp(1.3rem, 2.1vw, 1.6rem); }
.piel-bv.panel .lema-marca { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.panel .texto-marca { margin-top: 1rem; max-width: 46ch; }
.panel .enlaces { margin-top: 1.5rem; }
@keyframes flotar { 50% { transform: translateY(-6px) rotate(-2deg); } }

.panel__marco {
  margin: 2.25rem calc(-1 * clamp(1.5rem, 3vw, 2.25rem)) 0;
  margin-top: auto;
  padding-top: 2.25rem;
  height: clamp(13rem, 24vw, 18rem);
  overflow: hidden;
}
.panel__marco img { margin-inline: auto; border: 1px solid rgb(255 255 255 / .1); border-bottom: 0; transform: translateY(10%); transition: transform .8s var(--curva); }
.panel:hover .panel__marco img { transform: translateY(0); }
.panel__marco--movil img { width: min(15rem, 62%); border-radius: 1.6rem 1.6rem 0 0; }
.panel__marco--web img { width: 88%; border-radius: 1rem 1rem 0 0; }

/* --- Pastilla de estado -------------------------------------------------- */
.estado {
  --punto: var(--vivo);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .9rem;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: rgb(0 0 0 / .2);
  color: var(--tinta-2);
  font-size: .875rem;
  line-height: 1.3;
  white-space: nowrap;
}
.estado::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--punto); animation: latido 2.4s ease-out infinite; }
@keyframes latido {
  0%        { box-shadow: 0 0 0 0 color-mix(in srgb, var(--punto) 65%, transparent); }
  70%, 100% { box-shadow: 0 0 0 .55rem transparent; }
}

/* --- Botones de enlace --------------------------------------------------- */
.enlaces { display: flex; flex-wrap: wrap; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.enlaces a {
  display: inline-flex;
  align-items: center;
  padding: .6rem 1.15rem;
  border: 1px solid var(--linea);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--curva);
}
.enlaces li:first-child a { background: rgb(255 255 255 / .06); }
.enlaces a:hover { background: var(--tinta); border-color: transparent; color: var(--fondo); transform: translateY(-2px); }

/* --- Cómo trabajo -------------------------------------------------------- */
.principios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 2.75rem); margin: 0; }
.principios > div { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--linea); }
.principios > div::before { content: ""; position: absolute; top: -1px; left: 0; width: 3rem; height: 2px; background: linear-gradient(90deg, var(--lv-azul), var(--bv-oro)); transition: width .7s var(--curva); }
.principios > div:hover::before { width: 100%; }
.principios dt { font-family: var(--titular); font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.3; }
.principios dd { margin: .75rem 0 0; color: var(--tinta-2); }

/* --- Contacto ------------------------------------------------------------ */
.contacto p { max-width: var(--medida); color: var(--tinta-2); }
.correo {
  position: relative;
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--titular);
  font-weight: 700;
  font-size: clamp(1.4rem, 5.4vw, 4.25rem);
  letter-spacing: -.04em;
  line-height: 1.15;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(90deg, var(--lv-azul), var(--bv-oro), var(--turquesa), var(--lv-azul)) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brillo 12s linear infinite;
}
.correo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.1em; height: 3px; background: linear-gradient(90deg, var(--lv-azul), var(--bv-oro)); transform: scaleX(.18); transform-origin: left; transition: transform .6s var(--curva); }
.correo:hover::after { transform: scaleX(1); }
@keyframes brillo { to { background-position: 300% 0; } }

/* ==========================================================================
   Fichas de proyecto: la portada y el texto hablan con la voz del proyecto
   ========================================================================== */
.migas { margin-top: 1rem; font-size: .9375rem; }

.portada-proyecto {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: 1.5rem;
  padding: clamp(2rem, 5vw, 3.75rem);
  border: 1px solid var(--linea);
  border-radius: 2rem;
  overflow: hidden;
}
.portada-proyecto .luces { inset: -10rem -14rem auto auto; opacity: .45; }
.portada-proyecto .luces span:nth-child(1) { background: var(--marca); right: 20%; }
.portada-proyecto h1 { animation: aparecer 1s var(--curva) both; }
.portada-proyecto h1 .marca-lv { font-size: clamp(3rem, 9vw, 6.5rem); }
.portada-proyecto .lema-marca { margin-top: 1.5rem; animation: aparecer .9s .2s var(--curva) both; }
.piel-lv.portada-proyecto .lema-marca { font-size: clamp(1.5rem, 2.8vw, 2.1rem); max-width: 22ch; }
.piel-bv.portada-proyecto .lema-marca { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.portada-proyecto .texto-marca { margin-top: 1.25rem; max-width: 46ch; font-size: 1.15rem; animation: aparecer .9s .32s var(--curva) both; }
.portada-proyecto .enlaces { margin-top: 1.75rem; animation: aparecer .9s .44s var(--curva) both; }
.portada-proyecto__icono { width: clamp(6rem, 13vw, 9.5rem); border-radius: 22%; box-shadow: 0 30px 60px -25px rgb(27 111 212 / .7); animation: aparecer .9s .15s var(--curva) both, flotar 7s 1s ease-in-out infinite; }
/* Bodavia: el logotipo a la izquierda, como pieza principal */
.piel-bv.portada-proyecto { grid-template-columns: auto minmax(0, 1fr); }
.piel-bv.portada-proyecto h1 .marca-bv { height: clamp(9rem, 20vw, 15rem); animation: flotar 8s 1s ease-in-out infinite; }

.ficha__cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); gap: 3rem clamp(2.5rem, 6vw, 5rem); align-items: start; margin-top: clamp(3rem, 7vw, 5rem); }
.ficha__cuerpo--ancha { grid-template-columns: minmax(0, 1fr); }
.ficha__texto { max-width: var(--medida); }
.ficha__texto h2 { margin: 3rem 0 1rem; }
.ficha__texto > h2:first-child { margin-top: 0; }
.ficha__texto ul { margin: 0; padding: 0; list-style: none; }
.ficha__texto li { position: relative; padding-left: 1.5rem; }
.ficha__texto li + li { margin-top: .7em; }
.ficha__texto li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--marca); }

/* Texto de la ficha de LitroVolt: Barlow, como su web */
.ficha--lv { --marca: var(--lv-azul); }
.ficha--lv .ficha__texto { font-family: var(--lv-fuente); }
.ficha--lv .ficha__texto h2 { font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.015em; color: var(--lv-tinta); }
.ficha--lv .ficha__texto p, .ficha--lv .ficha__texto li { color: rgb(232 237 244 / .72); }
.ficha--lv .ficha__texto strong { font-weight: 600; color: var(--lv-tinta); }

/* Texto de la ficha de Bodavia: Cormorant para titular, DM Sans para leer */
.ficha--bv { --marca: var(--bv-oro); }
.ficha--bv .ficha__texto { font-family: var(--bv-fuente); font-weight: 300; }
.ficha--bv .ficha__texto h2 { font-family: var(--bv-titular); font-weight: 300; font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.05; color: var(--bv-crema); }
.ficha--bv .ficha__texto h2 em { font-style: italic; color: var(--bv-oro); }
.ficha--bv .ficha__texto p, .ficha--bv .ficha__texto li { color: rgb(228 217 204 / .72); }
.ficha--bv .ficha__texto strong { font-weight: 500; color: var(--bv-crema); }

.captura { margin: 0; position: sticky; top: 6rem; }
.captura img { border: 1px solid var(--linea); border-radius: 1.5rem; box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--marca) 60%, transparent); }
.captura--movil img { max-width: 19rem; margin-inline: auto; animation: flotar-suave 8s ease-in-out infinite; }
.captura--ancha { position: static; margin-top: 3rem; }
.captura figcaption { margin-top: .9rem; font-size: .9375rem; color: var(--tinta-3); font-family: var(--texto); font-weight: 400; }
@keyframes flotar-suave { 50% { transform: translateY(-10px); } }

/* Enlace al otro proyecto, con la piel del otro proyecto */
.siguiente {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(4rem, 9vw, 6rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3.5vw, 2.75rem);
  border: 1px solid var(--linea);
  border-radius: 1.75rem;
  text-decoration: none;
  transition: border-color .5s, transform .6s var(--curva);
}
.siguiente:hover { border-color: color-mix(in srgb, var(--marca) 55%, transparent); transform: translateY(-4px); }
.siguiente__rotulo { font-family: var(--texto); font-weight: 400; font-size: 1rem; color: var(--tinta-2); }
.siguiente .marca-lv { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
.siguiente .marca-bv { height: clamp(4.5rem, 8vw, 6rem); }
.siguiente .marca-lv, .siguiente .marca-bv { transition: transform .6s var(--curva); }
.siguiente:hover .marca-lv, .siguiente:hover .marca-bv { transform: translateX(-6px); }

/* --- Aviso legal y 404 --------------------------------------------------- */
.texto-legal { max-width: var(--medida); padding-top: clamp(2.5rem, 8vh, 4.5rem); }
.texto-legal h1 { font-family: var(--titular); font-weight: 700; font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.04em; margin-bottom: 2rem; }
.texto-legal h2 { font-family: var(--titular); font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; margin: 2.5rem 0 .85rem; }
.texto-legal p, .texto-legal li, .texto-legal dd { color: var(--tinta-2); }
.texto-legal a { color: var(--tinta); }
.texto-legal dl { margin: 1rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; }
.texto-legal dt { color: var(--tinta-3); }
.texto-legal dd { margin: 0; }
.texto-legal .enlaces { margin-top: 2rem; }

/* --- Pantallas estrechas ------------------------------------------------- */
@media (max-width: 56rem) {
  .paneles, .principios, .ficha__cuerpo { grid-template-columns: minmax(0, 1fr); }
  .captura { position: static; }
}
@media (max-width: 44rem) {
  .portada-proyecto, .piel-bv.portada-proyecto { grid-template-columns: minmax(0, 1fr); }
  .portada-proyecto__icono { order: -1; width: 5.5rem; }
}
@media (max-width: 40rem) {
  .cabecera { position: relative; }
  .cabecera__nav { gap: .25rem 1.25rem; }
  .texto-legal dl { grid-template-columns: minmax(0, 1fr); }
  .texto-legal dd { margin-bottom: .75rem; }
  .luces { opacity: .4; }
}

/* --- Menos movimiento si el visitante lo pide ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rotador > span:first-child { opacity: 1; }
}
@media print {
  .cabecera__nav, .pie, .luces, .cinta { display: none; }
  body { background: #fff; color: #000; }
}
