/* =========================================================
   Portafolio Vanessa Riaño · estilos
   Colores tomados del diseño original
   ========================================================= */
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --oscuro: #090514;
  --morado: #8273d2;
  --rosa: #f890a6;
  --durazno: #ffebe5;
  --lila: #cfc6f5;
  --texto-claro: #f4efff;
  --fuente: "Jost", "Futura", "Futura PT", "Century Gothic", system-ui, sans-serif;
  --curva: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--oscuro);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--oscuro);
  color: #fff;
  font-family: var(--fuente);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--rosa); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Láminas (cada sección del diseño) ---------- */
main { display: block; }

.lamina { position: relative; display: block; margin: 0; }

/* Contenedor que se encoge al quedar "debajo" de la siguiente sección */
.capa { position: relative; overflow: hidden; transform-origin: 50% 50%; min-height: 100%; }
.velo {
  position: absolute; inset: 0; z-index: 6;
  background: var(--oscuro); opacity: 0; pointer-events: none;
}

/* La sección que pasa por encima proyecta una sombra suave (la anima el JS) */
.lamina--encima { box-shadow: 0 -1.4vw 3.2vw rgba(9, 5, 20, 0); }

/* Zonas clicables sobre la imagen de "Sobre mí" */
.sobre__imagen { position: relative; }
.enlace { position: absolute; display: block; border-radius: .4vw; z-index: 2; }
.enlace:hover, .enlace:focus-visible {
  outline: 2px solid var(--morado); outline-offset: 2px;
  background: rgba(130, 115, 210, .12);
}

/* ---------- Portada ---------- */
.hero .capa { background: var(--durazno); }
.hero__imagen { will-change: transform; }

.hero__pista {
  position: absolute; left: 3vw; bottom: 3vw; z-index: 3;
  color: var(--oscuro);
}
.hero__pista-interior {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.hero__pista span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 500 12px/1 var(--fuente); letter-spacing: .32em; text-transform: uppercase;
  opacity: .75;
}
.hero__pista i {
  position: relative; display: block; width: 1.5px; height: 64px;
  background: rgba(9, 5, 20, .18); overflow: hidden; border-radius: 2px;
}
.hero__pista i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: var(--rosa); border-radius: 2px;
  animation: pista 1.8s var(--curva) infinite;
}
@keyframes pista { to { top: 100%; } }

/* ---------- Títulos de capítulo ---------- */
.titulo { background: var(--oscuro); overflow: hidden; color: var(--morado); }
.titulo__fondo { display: block; width: 100%; background: var(--oscuro); }

.titulo__centro {
  position: absolute; left: 0; right: 0; top: var(--y, 49.2%);
  transform: translateY(-50%);
  display: flex; justify-content: center;
  pointer-events: none; z-index: 2;
}
.titulo__bloque {
  position: relative; text-align: center;
  font-size: clamp(2rem, 5.55vw, 10rem);
}
.titulo__texto {
  margin: 0; font-size: 1em; font-weight: 600; line-height: 1.05;
  letter-spacing: -.005em; color: var(--morado); white-space: nowrap;
}
.titulo__num {
  position: absolute; left: 50%; bottom: 100%; margin: 0 0 .55em;
  transform: translateX(-50%);
  font-size: max(.62rem, .16em); font-weight: 500; line-height: 1;
  letter-spacing: .34em; color: rgba(207, 198, 245, .5); white-space: nowrap;
}
.titulo__num b { color: var(--rosa); font-weight: 600; }

.asterisco {
  position: absolute; right: -.62em; top: -.3em;
  width: .5em; height: .5em; color: var(--rosa);
}

/* Letras divididas para animarlas */
.palabra {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: .16em .03em .14em; margin: -.16em -.03em -.14em;
}
.letra { display: inline-block; }

/* Destellos ✦ (motivo del diseño) */
.destellos { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.destello {
  position: absolute; width: var(--t, 14px); height: var(--t, 14px);
  color: var(--lila); opacity: 0;
  animation: titilar var(--d, 4s) ease-in-out var(--r, 0s) infinite;
}
@keyframes titilar {
  0%, 100% { opacity: 0; transform: scale(.35) rotate(0deg); }
  50% { opacity: .7; transform: scale(1) rotate(45deg); }
}

/* ---------- Videos ---------- */
.video-seccion { background: var(--fondo, var(--oscuro)); }
.video-seccion .capa { background: var(--fondo, var(--oscuro)); }
.video-marco { position: relative; overflow: hidden; background: #000; }
.video-marco video { aspect-ratio: 16 / 9; object-fit: cover; background: #000; }

/* Reproductor propio del video de Kronospan */
.reproductor video { cursor: pointer; }
.rep-grande {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: clamp(56px, 6.5vw, 104px); aspect-ratio: 1; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--oscuro);
  box-shadow: 0 1vw 3vw rgba(9, 5, 20, .25);
  transform: translate(-50%, -50%) scale(.8); opacity: 0;
  transition: opacity .35s var(--curva), transform .35s var(--curva);
  pointer-events: none;
}
.rep-grande svg { width: 42%; margin-left: 8%; fill: currentColor; }
.reproductor.esta-pausado .rep-grande { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.rep-controles {
  position: absolute; left: 50%; bottom: clamp(10px, 1.6vw, 28px); z-index: 4;
  width: min(760px, calc(100% - 24px));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  padding: 7px 8px 7px 7px; border-radius: 999px;
  background: rgba(9, 5, 20, .66);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff; font-size: 14px; font-weight: 500;
  opacity: 0; transition: opacity .35s var(--curva);
}
.reproductor:hover .rep-controles,
.reproductor:focus-within .rep-controles,
.reproductor.esta-pausado .rep-controles { opacity: 1; }
@media (hover: none) { .rep-controles { opacity: 1; } }

.rep-btn {
  flex: none; width: 38px; height: 38px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff;
  transition: background .25s;
}
.rep-btn:hover { background: var(--morado); }
.rep-btn svg { width: 18px; height: 18px; fill: currentColor; }
.rep-play .i-pausa { display: none; }
.reproductor:not(.esta-pausado) .rep-play .i-play { display: none; }
.reproductor:not(.esta-pausado) .rep-play .i-pausa { display: block; }

.rep-barra {
  position: relative; flex: 1; height: 5px; border-radius: 99px;
  background: rgba(255, 255, 255, .22); cursor: pointer;
}
.rep-barra::before { content: ""; position: absolute; inset: -12px 0; }
.rep-relleno {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--rosa), var(--morado));
  transform-origin: 0 50%; transform: scaleX(0);
}
.rep-tiempo { flex: none; font-variant-numeric: tabular-nums; opacity: .85; font-size: 13px; }

.rep-sonido {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 15px 0 12px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--rosa); color: var(--oscuro); font-weight: 600; font-size: 13.5px;
  transition: background .25s, color .25s;
}
.rep-sonido:hover { background: #fff; }
.rep-sonido svg { width: 18px; height: 18px; fill: currentColor; }
.rep-sonido .i-sonido { display: none; }
.rep-sonido[aria-pressed="true"] { background: var(--morado); color: #fff; }
.rep-sonido[aria-pressed="true"] .i-mudo { display: none; }
.rep-sonido[aria-pressed="true"] .i-sonido { display: block; }

/* ---------- ¡Gracias! / Contacto ---------- */
.gracias {
  position: relative; overflow: hidden;
  min-height: max(54vw, 100svh);
  display: grid; place-items: center; text-align: center;
  padding: 7rem 1.25rem 6rem;
  background: var(--oscuro);
}
.gracias__contenido { position: relative; z-index: 2; }
.gracias__titulo {
  margin: 0; color: var(--morado);
  font-size: clamp(3.6rem, 10.4vw, 15rem); font-weight: 700; line-height: 1;
  letter-spacing: -.005em;
}
.gracias__sub {
  margin: clamp(1.8rem, 3.6vw, 4rem) 0 clamp(.6rem, 1vw, 1.2rem);
  font-size: clamp(1.2rem, 1.75vw, 2.2rem); font-weight: 600; color: #fff;
}
.gracias__datos {
  margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .5rem 1.1rem;
  font-size: clamp(1rem, 1.3vw, 1.6rem); font-weight: 300; color: rgba(255, 255, 255, .92);
}
.gracias__datos a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--curva), color .3s;
  padding-bottom: 2px;
}
.gracias__datos a:hover, .gracias__datos a:focus-visible { color: var(--rosa); background-size: 100% 1px; }
.gracias__separador { opacity: .6; }

.copiar {
  padding: .45em 1em; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(207, 198, 245, .35); background: transparent;
  color: var(--lila); font-size: .72em; font-weight: 500; letter-spacing: .02em;
  transition: background .25s, color .25s, border-color .25s;
}
.copiar:hover { background: var(--lila); color: var(--oscuro); border-color: var(--lila); }
.copiar.copiado { background: var(--rosa); color: var(--oscuro); border-color: var(--rosa); }

.corazones {
  display: flex; justify-content: center; gap: clamp(8px, .9vw, 16px);
  margin-top: clamp(2rem, 4vw, 4.6rem); color: var(--morado);
}
.corazones svg {
  width: clamp(20px, 2vw, 34px); height: auto;
  animation: latido 1.8s ease-in-out infinite;
}
.corazones svg:nth-child(2) { animation-delay: .18s; }
.corazones svg:nth-child(3) { animation-delay: .36s; }
@keyframes latido {
  0%, 60%, 100% { transform: scale(1); }
  20% { transform: scale(1.22); color: var(--rosa); }
  35% { transform: scale(.95); }
}

.gracias__pie {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.4rem clamp(1.25rem, 3vw, 3rem);
  font-size: 13px; color: rgba(207, 198, 245, .55);
}
.gracias__pie a { text-decoration: none; transition: color .3s; }
.gracias__pie a:hover { color: var(--rosa); }

/* ---------- Barra de navegación ---------- */
.progreso {
  position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 1001;
  background: linear-gradient(90deg, var(--rosa), var(--morado));
  transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

.barra {
  position: fixed; top: 14px; left: 50%; z-index: 1000;
  display: flex; align-items: center; gap: 4px;
  width: max-content; max-width: calc(100% - 24px);
  padding: 6px 6px 6px 18px; border-radius: 999px;
  background: rgba(9, 5, 20, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px rgba(9, 5, 20, .18);
  color: var(--texto-claro);
  transform: translate(-50%, calc(-100% - 24px));
  opacity: 0; visibility: hidden;
  transition: transform .7s var(--curva), opacity .5s var(--curva), visibility 0s .7s;
}
.barra.visible {
  transform: translate(-50%, 0); opacity: 1; visibility: visible;
  transition: transform .7s var(--curva), opacity .5s var(--curva), visibility 0s;
}

.barra__marca {
  display: inline-flex; align-items: center; gap: 8px; margin-right: 12px;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.barra__marca svg { width: 15px; height: 15px; color: var(--rosa); transition: transform .6s var(--curva); }
.barra__marca:hover svg { transform: rotate(90deg); }

.barra__nav { position: relative; display: flex; }
.barra__nav a {
  position: relative; z-index: 1;
  padding: 9px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  color: rgba(244, 239, 255, .66); transition: color .3s;
}
.barra__nav a:hover { color: #fff; }
.barra__nav a.activo { color: #fff; }
.barra__indicador {
  position: absolute; left: 0; top: 0; height: 100%; width: 0; z-index: 0;
  border-radius: 999px; background: var(--morado); opacity: 0;
  transition: transform .5s var(--curva), width .5s var(--curva), opacity .3s;
}

.barra__cta {
  margin-left: 4px; padding: 9px 17px; border-radius: 999px;
  background: var(--rosa); color: var(--oscuro);
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .25s;
}
.barra__cta:hover { background: #fff; }
.barra__cta.activo { background: #fff; box-shadow: 0 0 0 3px rgba(248, 144, 166, .45); }

.barra__cv {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 6px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  border: 1px solid rgba(207, 198, 245, .35);
  color: var(--texto-claro); font-size: 14px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
.barra__cv svg { width: 16px; height: 16px; }
.barra__cv:hover { background: var(--lila); color: var(--oscuro); border-color: var(--lila); }

@media (max-width: 1080px) {
  .barra__nav { display: none; }
  .barra { padding-left: 16px; }
}
@media (max-width: 480px) {
  .barra__marca { font-size: 14px; margin-right: 6px; }
  .barra__cv { padding: 8px 10px; margin-left: 2px; }
  .barra__cv span { display: none; }
}

/* ---------- Botones de descarga de la hoja de vida ---------- */
.boton-cv {
  display: inline-flex; align-items: center; gap: .55em;
  border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-family: var(--fuente); font-weight: 600; line-height: 1;
  transition: transform .35s var(--curva), background .25s, color .25s, box-shadow .35s var(--curva);
}
.boton-cv svg { width: 1.2em; height: 1.2em; flex: none; }
.boton-cv small {
  font-size: .76em; font-weight: 600; letter-spacing: .06em;
  padding-left: .6em; border-left: 1px solid currentColor; opacity: .7;
}
.boton-cv:hover { transform: translateY(-2px); }
.boton-cv:hover svg { animation: bajar .7s var(--curva); }
@keyframes bajar { 40% { transform: translateY(3px); } }

/* Sobre la imagen de "Sobre mí", debajo del contacto */
.boton-cv--sobre {
  position: absolute; left: 9.25%; top: 91.4%; z-index: 3;
  font-size: clamp(11px, .9vw, 17px);
  padding: .68em 1.15em .68em .95em;
  background: var(--rosa); color: var(--oscuro);
  box-shadow: 0 .5vw 1.4vw rgba(226, 100, 127, .28);
}
.boton-cv--sobre:hover { background: var(--oscuro); color: #fff; box-shadow: 0 .8vw 2vw rgba(9, 5, 20, .25); }

/* En la sección final de contacto */
.boton-cv--gracias {
  margin-top: clamp(1.6rem, 2.6vw, 3rem);
  font-size: clamp(14px, 1.05vw, 18px);
  padding: .9em 1.5em .9em 1.25em;
  background: var(--morado); color: #fff;
  box-shadow: 0 1vw 2.4vw rgba(130, 115, 210, .3);
}
.boton-cv--gracias:hover { background: var(--rosa); color: var(--oscuro); box-shadow: 0 1vw 2.4vw rgba(248, 144, 166, .35); }

/* ---------- Pantallas pequeñas ---------- */
@media (max-width: 767px) {
  .hero__pista { display: none; }
  .titulo__num { margin-bottom: .45em; }
  .gracias__separador { display: none; }
  .gracias__datos { flex-direction: column; gap: .7rem; }
  /* En celular el botón va debajo de la imagen de "Sobre mí" */
  #sobre-mi { background: #ffebe5; padding-bottom: 18px; }
  .boton-cv--sobre { position: static; display: flex; width: max-content; margin: 6px auto 0; font-size: 14px; }
  .rep-controles { gap: 8px; padding: 5px; }
  .rep-tiempo { display: none; }
  .rep-sonido span { display: none; }
  .rep-sonido { width: 38px; padding: 0; justify-content: center; }
  .rep-btn { width: 34px; height: 34px; }
  .rep-sonido { height: 34px; width: 34px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .destello, .corazones svg, .hero__pista i::after { animation: none; }
  .destello { opacity: .45; }
}
