@media (max-width: 1024px) {
  .top-bar {
    padding-left: 20px;
    padding-right: 20px;
    height: 44px;
    padding-top: 18px;
  }
  .hero-title {
    font-size: 5vw;
    margin-bottom: 2vw;
  }
  .hero-subtitle {
    font-size: 2.2vw;
    margin-bottom: 3vw;
  }
  .model-3d-bg model-viewer {
    width: 80vw;
    height: 80vw;
    min-width: 300px;
    min-height: 300px;
    max-width: 90vw;
    max-height: 90vw;
  }
  .stacked-images {
    width: 220px;
    height: 220px;
  }
  .stacked-images .img-drag {
    width: 200px;
    height: 200px;
    min-width: 200px;
    min-height: 200px;
    max-width: 200px;
    max-height: 200px;
  }
  .hero-btn {
    font-size: 0.95rem; 
    padding: 0.7em 1.5em;
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding-left: 8px;
    padding-right: 8px;
    height: 38px;
    padding-top: 10px;
  }
  .top-bar-left, .top-bar-right {
    font-size: 0.7rem;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: unset !important;
    flex: 0 0 auto !important;
  }
  .top-bar-center {
    flex: 1 !important;
    min-width: 0;
  }
  .hero-title {
    font-size: 8vw;
    margin-bottom: 4vw;
  }
  .hero-subtitle {
    font-size: 4vw;
    margin-bottom: 5vw;
  }
  .center-hero-text {
    padding-top: 10vw;
  }
  .model-3d-bg model-viewer {
    width: 98vw;
    height: 60vw;
    min-width: 180px;
    min-height: 180px;
    max-width: 100vw;
    max-height: 70vw;
  }
  .stacked-images {
    width: 190px;
    height: 190px;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
  }
  .stacked-images .img-drag {
    width: 175px;
    height: 175px;
    min-width: 175px;
    min-height: 175px;
    max-width: 175px;
    max-height: 175px;
  }
  .hero-btn {
    font-size: 0.85rem;
    padding: 0.5em 1.1em;
    left: 50%;
    top: 90%;
    transform: translate(-50%, -50%);
  }
  .hero-btn-bottom-wrapper {
    bottom: 12px;
  }
  .img-drag-bubble {
    font-size: 0.7rem;
    padding: 0.2em 0.7em;
  }
}
body, html {
  cursor: none !important;
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}
body.about-page .hero-title,
body.about-page .hero-subtitle {
  opacity: 1 !important;
  pointer-events: auto !important;
  filter: none !important;
  visibility: visible !important;
}

.elegant-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.95);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c7b299, transparent);
  transition: width 0.4s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 40px;
}

.about-container {
  min-height: 100vh;
  background: #100f0d;
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-hero-elegant {
  width: 100%;
  max-width: 1200px;
  padding: 80px 60px;
  margin-bottom: 120px;
}

.hero-content-elegant {
  /* layout manejado por Bootstrap row/col */
}

.hero-text-block {
  position: relative;
}

.elegant-title {
  font-family: 'Inter', sans-serif;
  font-size: 6rem; /* más proporcionado con el retrato */
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  background: linear-gradient(90deg, #ece6da, #ece6da);
  background-size: 400% 400%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 4s ease-in-out infinite;
  margin: 0 0 20px 0;
  position: relative;
}

.title-accent {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, #c7b299, #b0a085);
  margin-bottom: 60px;
  opacity: 0.8;
}

.intro-block {
  position: relative;
}

.name-elegant {
  font-family: 'Inter', sans-serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.role-elegant {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #c7b299;
  margin: 0 0 40px 0;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.description-elegant {
  max-width: 560px; /* permitir más ancho para lectura cómoda */
}

.description-elegant p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 24px 0;
}

.description-elegant p:last-child {
  margin-bottom: 0;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.about-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  padding: 12px;            /* espacio alrededor de la foto */
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-image img {
  width: 100%;
  height: auto;         /* preservar proporción — NO recortar */
  object-fit: contain;  /* asegura que la imagen completa se vea */
  display: block;
  border-radius: 8px;
}

.about-image:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.72);
}

/* Hide previous visual line elements if they remain */
.visual-element, .elegant-square, .elegant-circle, .elegant-line {
  display: none !important;
}

.skills-elegant {
  width: 100%;
  max-width: 900px;
  padding: 0 60px;
  margin-bottom: 120px;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title-elegant {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 20px 0;
  letter-spacing: 0.05em;
}

.section-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c7b299, transparent);
  margin: 0 auto;
}

.skills-grid-elegant {
  /* layout manejado por Bootstrap row/col */
}

.skill-block {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.skill-block:hover {
  border-bottom-color: rgba(199, 178, 153, 0.28);
  transform: translateY(-2px);
}

.skill-number {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  min-width: 30px;
  margin-top: 4px;
}

.skill-content h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.skill-content p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.5;
}

.skill-item span {
  white-space: nowrap;
}

.info-elegant {
  width: 100%;
  max-width: 800px;
  padding: 0 60px 100px 60px;
}

.info-grid-elegant {
  /* layout manejado por Bootstrap row/col */
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-column {
  text-align: center;
}

.info-column h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 12px 0;
}

.info-column p {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  letter-spacing: -0.01em;
}

@media (max-width: 1024px) {
  .hero-content-elegant {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .elegant-nav {
    padding: 30px 0;
  }
  
  .nav-divider {
    margin: 0 30px;
  }
  
  .about-container {
    padding-top: 100px;
  }
  
  .about-hero-elegant {
    padding: 60px 30px;
    margin-bottom: 80px;
  }
  
  .elegant-title {
    font-size: 5rem;
  }
  
  .name-elegant {
    font-size: 2.2rem;
  }
  
  .hero-content-elegant {
    gap: 60px;
  }
  
  .visual-element {
    width: 200px;
    height: 200px;
  }
  
  .elegant-square {
    width: 120px;
    height: 120px;
  }
  
  .elegant-circle {
    width: 80px;
    height: 80px;
  }
  
  .elegant-line {
    width: 140px;
  }
  
  .skills-elegant {
    padding: 0 30px;
    margin-bottom: 80px;
  }
  
  .section-header {
    margin-bottom: 60px;
  }
  
  .section-title-elegant {
    font-size: 2rem;
  }
  
  .skill-block {
    gap: 20px;
    padding: 30px 0;
  }
  
  .info-elegant {
    padding: 0 30px 80px 30px;
  }
  
  .info-grid-elegant {
    padding: 40px 0;
  }
}
.top-bar-left {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.25s ease;
  position: relative;
  cursor: pointer;
  display: inline-block;
  padding-bottom: 6px;
}

.top-bar-left:hover {
  color: rgba(255, 255, 255, 0.95);
}

.top-bar-left::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c7b299, transparent);
  transition: width 0.36s cubic-bezier(0.22, 0.59, 0.2, 1);
  border-radius: 2px;
}

.top-bar-left:hover::after {
  width: 100%;
}
.top-bar-right {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.25s ease;
  position: relative;
  cursor: pointer;
  display: inline-block;
  padding-bottom: 6px;
}

.top-bar-right:hover {
  color: rgba(255, 255, 255, 0.95);
}

.top-bar-right::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c7b299, transparent);
  transition: width 0.36s cubic-bezier(0.22, 0.59, 0.2, 1);
  border-radius: 2px;
}

.top-bar-right:hover::after {
  width: 100%;
}
.hero-btn-text.animate {
  animation: hero-btn-text-fade 1.1s cubic-bezier(.22,1.5,.36,1) both !important;
}
.hero-subtitle.animate {
  animation: hero-btn-text-fade 1.1s cubic-bezier(.22,1.5,.36,1) both !important;
}
@keyframes hero-btn-text-fade {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(20px);
  }
  60% {
    opacity: 1;
    transform: scale(1.15) translateY(-6px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 48px;
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 50px;
  padding-right: 50px;
  box-sizing: border-box;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  z-index: 3000;
}

.top-bar-left, .top-bar-right {
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  pointer-events: auto;
  max-width: 30vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.top-bar-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.top-bar-left {
  text-align: left;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-block;
  position: relative !important;
}

.top-bar-right {
  text-align: right;
}

.contact-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  cursor: none;
}

.contact-link:hover {
  color: rgba(255, 255, 255, 0.95);
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c7b299, transparent);
  transition: width 0.4s ease;
}

.contact-link:hover::after {
  width: 100%;
}
.stacked-images .img-drag {
  opacity: 0;
  transform: scale(0);
}
.hero-subtitle {
  background: linear-gradient(90deg, #ece6da, #ece6da);
  background-size: 400% 400%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 4s ease-in-out infinite;
  font-size: 3vw;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 2vw;
  margin-top: -1.5vw;
  opacity: 0;
  filter: blur(16px);
  transform: translateY(40px) scale(0.98);
  pointer-events: none;
  font-family: 'Inter', Arial, sans-serif;
  visibility: hidden;
  position: relative;
  will-change: transform, opacity, filter, background-position;
}


.center-hero-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 0;
}
.hero-title {
  background: linear-gradient(90deg, #ece6da, #ece6da);
  background-size: 400% 400%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 4s ease-in-out infinite;
  font-size: 6.3vw;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-align: center;
  margin-bottom: 1vw;
  font-family: 'Inter', Arial, sans-serif;
  position: relative;
  z-index: 2;
  will-change: transform, opacity, filter, background-position;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.hero-btn {
  cursor: none !important;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background: rgba(40, 40, 40, 0.13);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2"/></filter><rect width="60" height="60" filter="url(%23n)" opacity="0.13"/></svg>');
  background-blend-mode: overlay;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: #fff;
  font-size: 1rem;
  font-family: 'Inter', Arial, sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 0.9em 2.2em;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
  letter-spacing: 0.01em;
  font-weight: 200;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  opacity: 0.96;
  pointer-events: auto;
  z-index: 9999;
  overflow: hidden;
  position: relative;
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

@keyframes btn-text-slide {
  0% { transform: translateY(0); }
  40% { transform: translateY(-120%); opacity: 0; }
  41% { transform: translateY(120%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  color: #fff;
  opacity: 1;
}

.hero-btn:hover::before {
  left: 100%;
}

.hero-btn:active {
  transform: translate(-50%, -50%) translateY(0) scale(0.98);
}

.hero-btn.clicked {
  animation: hero-btn-click-pulse 0.4s ease-out;
}

@keyframes hero-btn-click-pulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
a, button, input, textarea, .img-drag {
  cursor: none !important;
}
#egg-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  pointer-events: none;
  z-index: 9999;
  background: transparent center center no-repeat;
  background-size: contain;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, transform 0.1s;
  opacity: 1;
}
.stacked-images {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
}
.stacked-images .img-drag {
  position: absolute;
  left: 0;
  top: 0;
  width: 320px;
  height: 320px;
  object-fit: cover;
  min-width: 320px;
  min-height: 320px;
  max-width: 320px;
  max-height: 320px;
  margin: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.stacked-images .img-1 {
  transform: rotate(-7deg);
  z-index: 1;
}
.stacked-images .img-2 {
  transform: rotate(3deg);
  z-index: 2;
}
.stacked-images .img-3 {
  transform: rotate(-2deg);
  z-index: 3;
}
.stacked-images .img-4 {
  transform: rotate(6deg);
  z-index: 4;
}
.stacked-images .img-5 {
  transform: rotate(-4deg);
  z-index: 5;
}
body {
  background: #100f0d;
  min-height: 100vh;
}
#animated-bg-canvas {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.top-bar-left {
  cursor: none !important;
}
.img-drag:hover {
  cursor: url('/img/mouse_over.png') 16 16, pointer;
}

html, body {
  overflow-x: hidden;
  height: auto;
}

img {
  width: 100%;
  height: auto;
  max-width: 800px;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  will-change: transform;
}

.stacked-images .img-drag,
.img-drag {
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.content-drag-area {
  width: 100vw;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.img-drag {
  position: relative;
  display: block;
  width: 16vw;
  min-width: 100px;
  max-width: 300px;
  margin: 4rem;
  cursor: none !important;
  cursor: none !important;
}
.hero-btn-bottom-wrapper {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: auto;
  display: flex;
  justify-content: center;
  z-index: 2000;
  pointer-events: none;
}
.hero-btn-bottom-wrapper .hero-btn {
  pointer-events: auto;
  position: static;
  transform: none;
  z-index: 2001;
}
.center-hero-text .hero-btn {
  display: none;
}
.img-drag-bubble {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(8px, 8px);
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.2em 0.8em;
  border-radius: 1em;
  pointer-events: none;
  font-family: 'Inter', Arial, sans-serif;
  letter-spacing: 0.04em;
  opacity: 0.85;
  z-index: 10000;
  user-select: none;
  white-space: nowrap;
  display: none;
}
.stacked-images > div {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.hero-btn-text.hover-animate {
  animation: hero-btn-text-bounce 0.55s cubic-bezier(.22,1.5,.36,1) both;
}
@keyframes hero-btn-text-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.18) translateY(-8px); }
  60% { transform: scale(0.98) translateY(2px); }
  80% { transform: scale(1.04) translateY(-3px); }
  100% { transform: scale(1) translateY(0); }
}
@import url('https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js');
.model-3d-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.model-3d-bg model-viewer {
  width: 1000px;
  height: 1000px;
  min-width: 500px;
  min-height: 500px;
  max-width: 1400px;
  max-height: 1400px;
  margin: 0 auto;
  pointer-events: none;
  background: transparent !important;
}
.center-hero-text > .hero-title,
.center-hero-text > .hero-subtitle {
  position: relative;
  z-index: 2;
}
.hero-subtitle,
.hero-btn {
  opacity: 0;
  pointer-events: none;
}
.hero-title,
.hero-subtitle,
.hero-btn {
  opacity: 0;
  pointer-events: none;
}

.hero-title,
.hero-subtitle,
.hero-btn {
  opacity: 0;
  pointer-events: none;
}

#loading-emoji {
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.15));
  animation: emoji-float 3.5s ease-in-out infinite, emoji-fade-in 1s ease-out forwards;
  opacity: 0;
}

@keyframes emoji-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}

@keyframes emoji-float {
  0%, 100% { 
    transform: translateY(0px) scale(1);
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.15));
  }
  50% { 
    transform: translateY(-15px) scale(1.08);
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.25));
  }
}

@keyframes float-dot {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 0.8; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loading-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#loading-screen {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

#loading-title {
  animation: fade-in-up 1s ease forwards 0.5s;
}

#loading-subtitle {
  animation: fade-in-up 1s ease forwards 0.8s;
}

#loading-text {
  animation: fade-in-up 1s ease forwards 1.2s, loading-pulse 2s ease-in-out infinite 2s;
}

@media (max-width: 768px) {
  #loading-screen {
    padding: 2rem;
  }
  
  #loading-emoji {
    width: 130px !important;
    height: 130px !important;
  }
  
  #loading-screen div:nth-child(1) {
    margin-bottom: 3rem;
  }
  
  #loading-screen div:nth-child(2) {
    width: 280px;
    height: 2px;
  }
}

#video-section {
  position: relative;
}

.video-figure {
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
}

.video-figure video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  border-radius: 20px;
}


@media (max-width: 480px) {
  .stacked-images {
    width: 160px;
    height: 160px;
  }

  .stacked-images .img-drag {
    width: 145px;
    height: 145px;
    min-width: 145px;
    min-height: 145px;
    max-width: 145px;
    max-height: 145px;
  }

  .hero-title {
    font-size: 7vw;
  }

  .hero-subtitle {
    font-size: 3.5vw;
  }
  
  .top-bar {
    padding-left: 12px;
    padding-right: 12px;
    height: 36px;
    padding-top: 8px;
  }
  
  .model-3d-bg model-viewer {
    width: 95vw;
    height: 50vw;
    min-width: 150px;
    min-height: 150px;
    max-width: 100vw;
    max-height: 60vw;
  }
}

@media (max-width: 768px) {
  #egg-cursor {
    display: none !important;
  }
  
  .img-drag {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
  }
  
  .img-drag:active {
    transform: scale(0.95);
    opacity: 0.8;
  }
  
  .img-drag-bubble {
    pointer-events: none;
    transition: opacity 0.2s ease;
    display: block !important;
  }
  
  .img-drag:active + .img-drag-bubble {
    opacity: 0.7;
  }
  
  .stacked-images {
    touch-action: manipulation;
  }
  
  .top-bar-left, .top-bar-right {
    font-size: 0.65rem;
  }
  
  .bg-changer-btn {
    font-size: 0.55rem;
    padding: 6px 10px;
  }
  
  .bg-changer-icon {
    font-size: 0.7rem;
  }
}

.bg-changer-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 8px 16px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3001;
  overflow: hidden;
  transform: translateY(0);
  white-space: nowrap;
}

.bg-changer-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.bg-changer-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.bg-changer-btn:hover::before {
  left: 100%;
}

.bg-changer-btn:active {
  transform: translateY(0) scale(0.98);
}

.bg-changer-icon {
  font-size: 0.9rem;
  animation: rotate-icon 2s ease-in-out infinite;
}

.bg-changer-text {
  opacity: 0.9;
  font-size: 0.65rem;
}

@keyframes rotate-icon {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

.bg-changer-btn.clicked {
  animation: click-pulse 0.4s ease-out;
}

@keyframes click-pulse {
  0% { transform: translateY(-2px) scale(1); }
  50% { transform: translateY(-2px) scale(1.05); }
  100% { transform: translateY(-2px) scale(1); }
}

@media (max-width: 768px) {
  .bg-changer-btn {
    padding: 6px 12px;
    font-size: 0.6rem;
    gap: 4px;
  }
  
  .bg-changer-icon {
    font-size: 0.8rem;
  }
  
  .bg-changer-text {
    font-size: 0.55rem;
  }
  
  .top-bar-left, .top-bar-right {
    max-width: 25vw;
    font-size: 0.7rem;
  }
}

/* ============================================================
   MUSIC WIDGET — reproductor (beige plano, glass premium)
   ============================================================ */
.music-widget {
  --genre-color: #c7b299;
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 228px;
  color: #efe7d9;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 42%),
    radial-gradient(130% 95% at 50% -22%, rgba(255, 255, 255, 0.14), transparent 60%),
    rgba(24, 20, 15, 0.22);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  z-index: 3500;
  overflow: hidden;
  box-shadow:
    0 18px 50px -14px rgba(0, 0, 0, 0.5),
    0 6px 40px -6px color-mix(in srgb, var(--genre-color, #c7b299) 30%, transparent),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.6s ease, border-color 0.4s ease;
}
@media (hover: hover) and (pointer: fine) {
  .music-widget:hover {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow:
      0 22px 60px -14px rgba(0, 0, 0, 0.6),
      0 8px 48px -6px color-mix(in srgb, var(--genre-color, #c7b299) 42%, transparent),
      inset 0 1px 1px rgba(255, 255, 255, 0.38),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
}

.music-widget.minimized { width: 164px; }
.music-widget.minimized .player-content {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.music-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(199, 178, 153, 0.12);
}

.player-toggle {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: rgba(199, 178, 153, 0.12);
  border: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #efe7d9;
  cursor: none;
  padding: 0;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), background-color 0.3s ease;
}
.player-toggle img { width: 17px !important; height: 17px !important; }

.player-title {
  flex: 1;
  min-width: 0;
  color: #efe7d9;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* animaciones: disco que gira + marquee del título */
@keyframes disc-spin { to { transform: rotate(360deg); } }
@keyframes title-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--shift, 0px))); } }

.player-minimize {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  border-radius: 6px;
  color: rgba(239, 231, 217, 0.5);
  font-size: 1.05rem;
  line-height: 1;
  cursor: none;
  padding: 0;
  display: grid;
  place-items: center;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.player-content {
  padding: 12px 12px;
  max-height: 420px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.35s ease,
              padding 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* fila "now playing": disco que gira + texto */
.now-playing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}
.np-disc {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  position: relative;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.22) 0 1px, transparent 1.5px 3.5px),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--genre-color, #c7b299) 78%, #000) 0 58%, var(--genre-color, #c7b299) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 6px 16px rgba(0, 0, 0, 0.45);
  animation: disc-spin 4.5s linear infinite;
  animation-play-state: paused;
}
.np-disc::after {
  content: '';
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: var(--genre-color, #c7b299);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
  transition: background 0.4s ease;
}
.np-disc::before {
  content: '';
  position: absolute;
  inset: 47%;
  border-radius: 50%;
  background: #1a1612;
  z-index: 1;
}
.music-widget.is-playing .np-disc { animation-play-state: running; }

.np-text { flex: 1; min-width: 0; }
.np-genre {
  display: block;
  color: var(--genre-color, #c7b299);
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.4s ease;
}
.song-title-wrap { overflow: hidden; }
.song-title {
  display: inline-block;
  color: #f4eee3;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1px;
  line-height: 1.25;
  white-space: nowrap;
}
.song-title.marquee { animation: title-marquee var(--dur, 8s) linear infinite alternate; }
.song-artist {
  color: rgba(239, 231, 217, 0.5);
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* visualizador de audio en vivo */
.visualizer-wrap {
  height: 24px;
  margin-bottom: 11px;
}
.audio-viz { display: block; width: 100%; height: 100%; }

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.control-btn {
  width: 33px;
  height: 33px;
  background: rgba(199, 178, 153, 0.1);
  border: 1px solid rgba(199, 178, 153, 0.14);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #efe7d9;
  cursor: none;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), background-color 0.3s ease, border-color 0.3s ease;
}

.control-btn.main-control {
  width: 43px;
  height: 43px;
  background: #c7b299;
  border: none;
}

.control-icon {
  width: 15px;
  height: 15px;
  filter: brightness(0) invert(0.92);
  transition: opacity 0.3s ease;
}

.control-btn.main-control .control-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0);
  opacity: 0.82;
}

.control-btn:active { transform: scale(0.93); }

@media (hover: hover) and (pointer: fine) {
  .control-btn:hover {
    background: rgba(199, 178, 153, 0.2);
    border-color: rgba(199, 178, 153, 0.3);
    transform: translateY(-2px);
  }
  .control-btn.main-control:hover {
    background: #d4c0a4;
    transform: translateY(-2px) scale(1.03);
  }
}

.progress-container { margin-bottom: 12px; }

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(239, 231, 217, 0.16);
  border-radius: 99px;
  margin-bottom: 9px;
  cursor: none;
  position: relative;
  min-height: 4px;
  touch-action: manipulation;
  transition: height 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .progress-bar:hover { height: 6px; }
  .progress-bar:hover .progress-fill::after { transform: translateY(-50%) scale(1); }
}

.progress-fill {
  height: 100%;
  background: #c7b299;
  border-radius: 99px;
  width: 0%;
  position: relative;
  transition: width 0.1s linear;
}
.progress-fill::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f4eee3;
  transform: translateY(-50%) scale(0);
  box-shadow: 0 0 0 3px rgba(199, 178, 153, 0.25);
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.time-display {
  display: flex;
  justify-content: space-between;
  color: rgba(239, 231, 217, 0.5);
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.genre-selector { position: relative; margin-bottom: 12px; }
.genre-native { display: none; }
/* al abrir el desplegable, dejar que se salga del recorte del contenido */
.music-widget:has(.genre-selector.open) .player-content { overflow: visible; }

/* botón que abre el desplegable custom */
.genre-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(199, 178, 153, 0.08);
  border: 1px solid rgba(199, 178, 153, 0.2);
  border-radius: 10px;
  color: #efe7d9;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 8px 11px;
  cursor: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.genre-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.genre-caret {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--genre-color, #c7b299);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.4s ease;
}
@media (hover: hover) and (pointer: fine) {
  .genre-trigger:hover { border-color: rgba(199, 178, 153, 0.42); background: rgba(199, 178, 153, 0.15); }
}
.genre-trigger:focus-visible { outline: 2px solid rgba(199, 178, 153, 0.5); outline-offset: 2px; }
.genre-selector.open .genre-trigger { border-color: rgba(199, 178, 153, 0.42); background: rgba(199, 178, 153, 0.15); }
.genre-selector.open .genre-caret { transform: rotate(180deg); }

/* lista desplegable (abre hacia arriba) */
.genre-list {
  list-style: none;
  margin: 0;
  padding: 5px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  max-height: 244px;
  overflow-y: auto;
  background: rgba(30, 25, 19, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(199, 178, 153, 0.22);
  border-radius: 12px;
  box-shadow: 0 16px 44px -10px rgba(0, 0, 0, 0.62);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom center;
  transition: opacity 0.28s ease,
              transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
              visibility 0.32s;
}
.genre-selector.open .genre-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.genre-list::-webkit-scrollbar { width: 5px; }
.genre-list::-webkit-scrollbar-thumb { background: rgba(199, 178, 153, 0.3); border-radius: 99px; }
.genre-list::-webkit-scrollbar-track { background: transparent; }

.genre-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(239, 231, 217, 0.78);
  cursor: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.genre-option::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--genre-color, #c7b299);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .genre-option:hover { background: rgba(199, 178, 153, 0.12); color: #f4eee3; }
}
.genre-option.is-active { color: var(--genre-color, #c7b299); background: rgba(199, 178, 153, 0.1); }
.genre-option.is-active::before { opacity: 1; transform: scale(1); }

.volume-control {
  display: flex;
  align-items: center;
  gap: 11px;
}

.volume-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: rgba(239, 231, 217, 0.55);
}
.volume-icon svg { width: 16px; height: 16px; }

.volume-slider {
  flex: 1;
  height: 4px;
  background: rgba(239, 231, 217, 0.16);
  border-radius: 99px;
  outline: none;
  cursor: none;
  -webkit-appearance: none;
  appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  background: #c7b299;
  border-radius: 50%;
  cursor: none;
  box-shadow: 0 0 0 0 rgba(199, 178, 153, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(199, 178, 153, 0.18);
}

.volume-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  background: #c7b299;
  border-radius: 50%;
  border: none;
  cursor: none;
}

@keyframes music-widget-appear {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.music-widget {
  animation: music-widget-appear 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .np-disc,
  .song-title.marquee { animation: none !important; }
}

@media (max-width: 768px) {
  .music-widget { right: 12px; bottom: 14px; width: 214px; }
  .music-widget.minimized { width: 158px; }
}

@media (max-width: 480px) {
  .music-widget { right: 9px; bottom: 11px; width: 196px; }
  .player-content { padding: 11px; }
  .control-btn { width: 31px; height: 31px; }
  .control-btn.main-control { width: 40px; height: 40px; }
  .control-btn.main-control .control-icon { width: 16px; height: 16px; }
  .music-widget.minimized { width: 150px; }
}

.top-bar-left, .top-bar-right, .contact-link, .nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.25s ease;
  position: relative;
  cursor: pointer;
  display: inline-block;
  padding-bottom: 6px;
}

.top-bar-left::after, .top-bar-right::after, .contact-link::after, .nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c7b299, transparent);
  transition: width 0.36s cubic-bezier(0.22, 0.59, 0.2, 1);
  border-radius: 2px;
}

.top-bar-left:hover::after, .top-bar-right:hover::after, .contact-link:hover::after, .nav-link:hover::after {
  width: 100%;
}

.top-bar-left:hover, .top-bar-right:hover, .contact-link:hover, .nav-link:hover {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: none;
}
.circle-progress {
  position: relative;
  width: 80px;
  height: 80px;
  display: block;
  margin-bottom: 0.2rem;
}
.circle-progress svg {
  position: absolute;
  top: 0; left: 0;
  width: 80px;
  height: 80px;
  z-index: 1;
  pointer-events: none;
}
.circle-progress-inner {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circle-logo-center {
  position: absolute;
  top: 0; left: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.circle-logo-center img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: none;
}
.circle-progress .progress {
  transition: none;
}

@media (max-width: 600px) {
  .elegant-nav {
    padding: 20px 0;
  }
  
  .nav-link {
    font-size: 0.75rem;
  }
  
  .hero-btn-bottom-wrapper {
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  html, body {
    font-size: 14px;
  }
  
  .elegant-nav {
    padding: 15px 0;
  }
  
  .nav-link {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }
  
  .nav-divider {
    margin: 0 15px;
    height: 15px;
  }
  
  .about-hero-elegant {
    padding: 40px 20px;
    margin-bottom: 60px;
  }
  
  .elegant-title {
    font-size: 3.5rem;
    margin-bottom: 15px;
  }
  
  .title-accent {
    width: 60px;
    height: 2px;
    margin-bottom: 40px;
  }
  
  .name-elegant {
    font-size: 1.8rem;
  }
  
  .role-elegant {
    font-size: 0.95rem;
  }
  
  .description-elegant {
    max-width: 100%;
  }
  
  .description-elegant p {
    font-size: 0.9rem;
    margin: 0 0 16px 0;
  }
  
  .about-image {
    max-width: 100%;
    padding: 8px;
  }
  
  .skills-elegant {
    padding: 0 20px;
    margin-bottom: 60px;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .section-title-elegant {
    font-size: 1.6rem;
  }
  
  .skills-grid-elegant {
    /* Bootstrap handles responsive stacking */
  }
  
  .skill-block {
    gap: 15px;
    padding: 20px 0;
  }
  
  .skill-number {
    font-size: 0.9rem;
  }
  
  .skill-content h4 {
    font-size: 1.1rem;
  }
  
  .skill-content p {
    font-size: 0.85rem;
  }
  
  .info-elegant {
    padding: 0 20px 60px 20px;
  }
  
  .info-grid-elegant {
    padding: 30px 0;
  }
  
  .info-column h4 {
    font-size: 0.75rem;
  }
  
  .info-column p {
    font-size: 1rem;
  }
  
  .circle-progress {
    width: 70px;
    height: 70px;
  }
  
  .circle-progress svg {
    width: 70px;
    height: 70px;
  }
  
  .circle-progress-inner {
    width: 70px;
    height: 70px;
  }
  
  .circle-logo-center {
    width: 70px;
    height: 70px;
  }
  
  .circle-logo-center img {
    width: 50px;
    height: 50px;
  }
}


/* ================================================
   BACK BUTTON – páginas no principales
   ================================================ */

.back-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 3000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.52);
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.back-btn svg {
  pointer-events: none;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .back-btn {
    cursor: pointer;
    bottom: 20px;
    left: 16px;
  }
}


/* Enlace ATRÁS en top-bar (páginas no-principales) */
a.back-top-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #fff;
  cursor: none;
}

a.back-top-link svg {
  flex-shrink: 0;
}

/* ================================================
   INDEX – MOBILE LAYOUT
   ================================================ */

@media (max-width: 768px) {

  /* Ocultar en móvil: reproductor, CHANGE BG, fondo VANTA */
  #music-player,
  .bg-changer-btn,
  #vanta-bg {
    display: none !important;
  }

  /* Hacer content-drag-area el bloque contenedor y encuadrarlo
     exactamente al viewport — sin scroll, sin desbordamiento */
  .content-drag-area {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;       /* fallback para navegadores viejos */
    height: 100svh !important;      /* small viewport height: excluye chrome del navegador */
    min-height: unset !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Modelo 3D: el inline style="width:140%;height:140%" bloquea las
     reglas CSS normales, !important lo anula.
     Damos al contenedor el mismo tamaño que el model-viewer para
     evitar que desborde hacia abajo. */
  .model-3d-bg {
    width: 115vw !important;
    height: 110vw !important;
    min-width: 340px !important;
    min-height: 320px !important;
  }

  .model-3d-bg model-viewer {
    width: 115vw !important;
    height: 110vw !important;
    min-width: 340px !important;
    min-height: 320px !important;
    max-width: 120vw !important;
    max-height: 115vw !important;
  }

  /* Cards: más grandes y bien posicionadas en móvil */
  .stacked-images {
    width: 290px !important;
    height: 290px !important;
    left: 50% !important;
    top: 48% !important;
    transform: translate(-50%, -50%) !important;
  }

  .stacked-images .img-drag {
    width: 275px !important;
    height: 275px !important;
    min-width: 275px !important;
    min-height: 275px !important;
    max-width: 275px !important;
    max-height: 275px !important;
  }
}

@media (max-width: 480px) {

  .content-drag-area {
    height: 100dvh !important;    /* dynamic viewport height en pantallas pequeñas */
  }

  /* Modelo ajustado a pantallas muy pequeñas */
  .model-3d-bg {
    width: 110vw !important;
    height: 105vw !important;
    min-width: 300px !important;
    min-height: 280px !important;
  }

  .model-3d-bg model-viewer {
    width: 110vw !important;
    height: 105vw !important;
    min-width: 300px !important;
    min-height: 280px !important;
    max-width: 115vw !important;
    max-height: 110vw !important;
  }

  /* Cards adaptadas */
  .stacked-images {
    width: 240px !important;
    height: 240px !important;
    top: 50% !important;
  }

  .stacked-images .img-drag {
    width: 225px !important;
    height: 225px !important;
    min-width: 225px !important;
    min-height: 225px !important;
    max-width: 225px !important;
    max-height: 225px !important;
  }
}


/* ================================================
   PÁGINAS DE PROYECTO – IMÁGENES/VIDEO RESPONSIVE
   ================================================ */

@media (max-width: 768px) {

  /* Imagen principal de proyecto */
  .project-hero-img {
    height: auto !important;
    max-height: 72vw !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    margin-bottom: 1.2rem !important;
  }

  /* Vídeo principal de proyecto (img5) */
  .project-hero-video {
    height: auto !important;
    max-height: 72vw !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    margin-bottom: 1.2rem !important;
  }

  /* Columna visual primero en móvil (imagen/vídeo antes del texto) */
  .right-column {
    order: -1 !important;
    height: auto !important;
    padding: 0 !important;
    align-items: center !important;
  }

  /* Contenedor de imagen/vídeo: centrar en columna única */
  .image-container,
  .video-container {
    align-items: center !important;
    width: 100% !important;
  }

  /* Barra decorativa vertical (left:-30px): ocultar para evitar overflow */
  .project-info {
    overflow: hidden !important;
  }

  /* Separador entre nº proyecto y categoría: ocultar (queda raro girado) */
  .project-number-category .divider {
    display: none !important;
  }

  /* Alinear fila de nº-categoría al centro */
  .project-number-category {
    justify-content: center !important;
  }

  /* Descripción: full width en móvil */
  .project-description {
    max-width: 100% !important;
  }

  /* img3 – flip card escalado para móvil */
  .card-flip-container {
    width: 90% !important;
    height: 300px !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
  }

  .flip-card {
    width: 100% !important;
    height: 300px !important;
    max-width: 320px !important;
    min-width: unset !important;
  }

  .card-side,
  .card-front,
  .card-back {
    width: 100% !important;
    height: 100% !important;
  }

  /* img3 – imágenes fijadas (ScrollTrigger pinned) */
  .pinned-image {
    width: 90% !important;
    height: 220px !important;
  }

  /* img2 – galería horizontal */
  .img-container img {
    width: 240px !important;
    height: 300px !important;
  }

  /* Footer CTA: de grid 1fr auto a columna única */
  .project-footer-cta {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center !important;
  }

  .project-footer-cta a.cta-button-subtle {
    margin: 0 auto !important;
  }

  /* img4 ya tiene .grid-2col */
  .grid-2col {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Ilustración decorativa del footer: oculta en móvil */
  .project-footer-illustration {
    display: none !important;
  }

  /* Footer nav – centrar en móvil */
  footer nav {
    align-items: center !important;
  }

  footer .social-links,
  footer > div div[style*="display: flex; gap: 0.8rem"] {
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .project-hero-img,
  .project-hero-video {
    max-height: 85vw !important;
    border-radius: 8px !important;
  }

  .flip-card {
    height: 260px !important;
  }

  .card-flip-container {
    height: 260px !important;
  }
}


/* ================================================
   ABOUT – SKILLS ROW MÓVIL
   ================================================ */

@media (max-width: 768px) {
  .skills-row {
    flex-wrap: wrap !important;
    gap: 20px 16px !important;
    overflow: visible !important;
    justify-content: center !important;
  }

  /* Ocultar separadores verticales al hacer wrap */
  .skills-row > div:not(.skill-item) {
    display: none !important;
  }

  .technical-skills-elegant {
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow: visible !important;
  }

  /* Círculos más pequeños para que quepan en móvil */
  .circle-progress,
  .circle-progress svg,
  .circle-progress-inner,
  .circle-logo-center {
    width: 60px !important;
    height: 60px !important;
  }

  .circle-logo-center img {
    width: 42px !important;
    height: 42px !important;
  }
}

@media (max-width: 480px) {
  .circle-progress,
  .circle-progress svg,
  .circle-progress-inner,
  .circle-logo-center {
    width: 52px !important;
    height: 52px !important;
  }

  .circle-logo-center img {
    width: 36px !important;
    height: 36px !important;
  }
}


/* ================================================
   ACCESIBILIDAD – Respeta "reduce motion"
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ================================================
   SELECTED WORK — Home (curated, navigable index)
   ================================================ */
.selected-work {
  position: relative;
  z-index: 2;
  background: #100f0d;
  padding: clamp(70px, 11vh, 150px) clamp(20px, 6vw, 90px) clamp(90px, 13vh, 170px);
}
.selected-work::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -130px;
  height: 130px;
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, #100f0d 100%);
  pointer-events: none;
}
.sw-inner { max-width: 1280px; margin: 0 auto; }

.sw-header { margin-bottom: clamp(38px, 6vh, 76px); }
.sw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 1.3rem 0;
}
.sw-eyebrow::before {
  content: '';
  width: 38px; height: 1px;
  background: linear-gradient(90deg, #c7b299, #b0a085);
}
.sw-statement {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 3.3vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.9);
  margin: 0;
  max-width: 24ch;
}
.sw-statement b {
  font-weight: 600;
  background: linear-gradient(90deg, #c7b299, #b0a085);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sw-list { border-top: 1px solid rgba(255,255,255,0.12); }
.work-row {
  display: grid;
  grid-template-columns: 2.4rem minmax(0,1fr) auto 120px 1.4rem;
  align-items: center;
  column-gap: clamp(14px, 2.6vw, 44px);
  padding: clamp(20px, 3.1vh, 38px) 6px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  position: relative;
  isolation: isolate;
  cursor: none;
  transition: padding-left 0.5s cubic-bezier(0.22,0.61,0.36,1);
}
.work-row::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(199,178,153,0.10), rgba(199,178,153,0.035) 55%, transparent);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.work-index {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.work-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.6rem, 4.2vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  color: rgba(255,255,255,0.92);
}
.work-cat {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.68rem, 0.95vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  white-space: nowrap;
}
.work-thumb {
  width: 120px;
  height: 74px;
  border-radius: 9px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.82) translateX(16px);
  filter: grayscale(0.45) brightness(0.85);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22,0.61,0.36,1), filter 0.5s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-arrow {
  justify-self: end;
  color: rgba(255,255,255,0.35);
  transform: translateX(-6px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22,0.61,0.36,1), opacity 0.45s ease, color 0.45s ease;
}
.work-arrow svg { display: block; }

@media (hover: hover) and (pointer: fine) {
  .work-row:hover { padding-left: 26px; }
  .work-row:hover::after { opacity: 1; }
  .work-row:hover .work-title {
    background: linear-gradient(90deg, #f3ecdf, #c7b299 70%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .work-row:hover .work-thumb { opacity: 1; transform: none; filter: none; }
  .work-row:hover .work-arrow { opacity: 1; transform: none; color: #c7b299; }
}

.sw-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.22,0.61,0.36,1), transform 0.8s cubic-bezier(0.22,0.61,0.36,1);
}
.sw-reveal.in { opacity: 1; transform: none; }

.sw-cta {
  margin-top: clamp(48px, 8vh, 96px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.sw-cta-text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  letter-spacing: -0.01em;
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  color: rgba(255,255,255,0.88);
  margin: 0;
  max-width: 18ch;
}
.sw-cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.sw-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.85em 1.7em;
  border-radius: 100px;
  cursor: none;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.sw-btn-primary { background: linear-gradient(90deg, #c7b299, #b0a085); color: #100f0d; }
.sw-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(199,178,153,0.3); }
.sw-btn-ghost { color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.2); }
.sw-btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; transform: translateY(-2px); }

@media (max-width: 768px) {
  .selected-work { z-index: 5; }
  .work-row {
    grid-template-columns: auto 1fr 86px;
    grid-template-areas:
      "idx title thumb"
      "idx cat   thumb";
    row-gap: 5px;
    column-gap: 16px;
    padding: 20px 2px;
  }
  .work-index { grid-area: idx; align-self: center; }
  .work-title { grid-area: title; font-size: clamp(1.3rem, 6.2vw, 1.9rem); }
  .work-cat { grid-area: cat; }
  .work-thumb {
    grid-area: thumb;
    opacity: 1;
    transform: none;
    filter: none;
    width: 86px;
    height: 64px;
    align-self: center;
  }
  .work-arrow { display: none; }
  .sw-cta { flex-direction: column; align-items: flex-start; }
}


/* ================================================
   LOADING SCREEN — intro premium
   ================================================ */
html { scroll-behavior: smooth; }

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #100f0d;
  overflow: hidden;
  -webkit-clip-path: inset(0 0 0 0);
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.95s cubic-bezier(0.76,0,0.24,1), opacity 0.5s ease;
  will-change: clip-path;
}
#loading-screen.fade-out {
  -webkit-clip-path: inset(0 0 100% 0);
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.loader-glow {
  position: absolute;
  left: 50%; top: 46%;
  width: 80vmax; height: 80vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(199,178,153,0.10) 0%, rgba(176,160,133,0.05) 34%, transparent 58%);
  animation: loader-breathe 5.5s ease-in-out infinite;
  pointer-events: none;
}
.loader-glow::before, .loader-glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  will-change: transform;
}
.loader-glow::before {
  width: 40%; height: 40%; left: 14%; top: 16%;
  background: radial-gradient(circle, rgba(199,178,153,0.5), transparent 68%);
  animation: loader-orb-a 8s ease-in-out infinite;
}
.loader-glow::after {
  width: 36%; height: 36%; right: 12%; bottom: 14%;
  background: radial-gradient(circle, rgba(176,160,133,0.45), transparent 68%);
  animation: loader-orb-b 10s ease-in-out infinite;
}
@keyframes loader-orb-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(16%, 18%) scale(1.12); }
  66% { transform: translate(-8%, 10%) scale(0.95); }
}
@keyframes loader-orb-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-16%, -10%) scale(1.1); }
  66% { transform: translate(8%, -16%) scale(0.92); }
}
@keyframes loader-breathe {
  0%, 100% { transform: translate(-50%,-50%) scale(0.92); opacity: 0.7; }
  50% { transform: translate(-50%,-50%) scale(1.08); opacity: 1; }
}
.loader-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 0%, transparent 68%);
  mask-image: radial-gradient(circle at 50% 46%, #000 0%, transparent 68%);
  pointer-events: none;
}

.loader-inner {
  position: relative;
  z-index: 2;
  width: min(440px, 82vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.loader-mark { margin-bottom: 2.5rem; }
.loader-name {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 4.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(100deg, #d8d0c2 28%, #fbf6ec 50%, #c7b299 60%, #d8d0c2 78%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: loader-name-reveal 1.15s cubic-bezier(0.76,0,0.24,1) both, loader-shimmer 3.6s linear infinite 1.1s;
  will-change: clip-path, opacity, transform;
}
@keyframes loader-name-reveal {
  0% { -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); opacity: 0; transform: translateY(10px); }
  55% { opacity: 1; }
  100% { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); opacity: 1; transform: none; }
}
@keyframes loader-shimmer {
  0% { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}
.loader-role {
  display: block;
  margin-top: 0.95rem;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.58rem, 1.4vw, 0.7rem);
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  padding-left: 0.45em;
  opacity: 0;
  animation: loader-fade-up 0.9s ease forwards 0.95s;
}
.loader-bar {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.09);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: loader-fade-up 0.9s ease forwards 1.1s;
}
.loader-bar-fill {
  position: relative;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #9a8a72, #c7b299);
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(199,178,153,0.4);
}
.loader-bar-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: 7px; height: 7px;
  transform: translate(50%, -50%);
  border-radius: 50%;
  background: #ece6da;
  box-shadow: 0 0 10px 2px rgba(199,178,153,0.85), 0 0 22px 5px rgba(199,178,153,0.3);
}
.loader-meta {
  width: 100%;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  animation: loader-fade-up 0.9s ease forwards 1.25s;
}
#loading-text.loader-status {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0;
  animation: none;
  opacity: 1;
}
.loader-percent {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  font-variant-numeric: tabular-nums;
}
@keyframes loader-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ================================================
   SCROLL CUE — descubrir "Selected Work"
   ================================================ */
.scroll-cue {
  position: absolute;
  left: clamp(20px, 4vw, 52px);
  bottom: 30px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: none;
  opacity: 0;
  animation: loader-fade-up 1s ease forwards 2s;
  transition: opacity 0.5s ease;
}
.scroll-cue.hide { animation: none; opacity: 0; pointer-events: none; }
.scroll-cue-text {
  writing-mode: vertical-rl;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}
.scroll-cue:hover .scroll-cue-text { color: rgba(255,255,255,0.85); }
.scroll-cue-line {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.18);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 45%;
  background: linear-gradient(180deg, transparent, #c7b299);
  animation: scroll-cue-travel 1.9s cubic-bezier(0.6,0,0.2,1) infinite;
}
@keyframes scroll-cue-travel {
  0% { transform: translateY(-120%); }
  100% { transform: translateY(260%); }
}
@media (max-width: 768px) {
  .scroll-cue { left: 16px; bottom: 18px; }
  .scroll-cue-line { height: 38px; }
}


/* ================================================
   DRAG ME — pista de interacción
   ================================================ */
@media (max-width: 768px) {
  /* desktop cursor-follower; never show it on touch */
  #dragme-bubble { display: none !important; }
}

/* Pista bajo el bocadillo: sin fondo, sigue al cursor junto al DRAG ME */
.drag-hint {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 7px;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  color: rgba(236, 230, 218, 0.72);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}


/* ================================================
   FONDOS — 3 opciones (Animado / Oscuro / Claro)
   ================================================ */
.bg-drift { position: absolute; inset: 0; overflow: hidden; }
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  will-change: transform;
}
.bg-blob-1 { width: 48vw; height: 48vw; left: 6%;  top: 4%;  background: radial-gradient(circle, rgba(199,178,153,0.22), transparent 66%); animation: bg-drift-1 26s ease-in-out infinite; }
.bg-blob-2 { width: 44vw; height: 44vw; left: 54%; top: 42%; background: radial-gradient(circle, rgba(138,127,107,0.20), transparent 66%); animation: bg-drift-2 32s ease-in-out infinite; }
.bg-blob-3 { width: 38vw; height: 38vw; left: 28%; top: 62%; background: radial-gradient(circle, rgba(176,160,133,0.16), transparent 66%); animation: bg-drift-3 29s ease-in-out infinite; }
@keyframes bg-drift-1 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(14%,12%) scale(1.12); } 66% { transform: translate(-8%,9%) scale(0.95); } }
@keyframes bg-drift-2 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-13%,-10%) scale(1.1); } 66% { transform: translate(9%,-15%) scale(0.93); } }
@keyframes bg-drift-3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(11%,-12%) scale(1.16); } }

/* ── MODO CLARO (cuando el fondo "Claro" está activo) ── */
/* Hero wordmark — beige clarito en noche */
.hero-title,
.hero-subtitle {
  background-image: linear-gradient(90deg, #e6d6ad, #e6d6ad);
}
/* Hero wordmark — beige/marrón oscuro en día */
body.theme-light .hero-title,
body.theme-light .hero-subtitle {
  background-image: linear-gradient(90deg, #4a3a26, #4a3a26);
  -webkit-background-clip: text;
  background-clip: text;
}
body.theme-light .top-bar-left,
body.theme-light .top-bar-right,
body.theme-light .contact-link,
body.theme-light .nav-link { color: rgba(27,23,18,0.78); }
body.theme-light .top-bar-left:hover,
body.theme-light .top-bar-right:hover,
body.theme-light .contact-link:hover,
body.theme-light .nav-link:hover { color: rgba(27,23,18,0.96); }
body.theme-light .hero-btn {
  color: #1b1712;
  border-color: rgba(27,23,18,0.28);
  background: rgba(255,255,255,0.32);
}
body.theme-light .hero-btn:hover {
  color: #1b1712;
  border-color: rgba(27,23,18,0.45);
  background: rgba(255,255,255,0.5);
}
body.theme-light .drag-hint { color: rgba(27,23,18,0.82); text-shadow: 0 1px 2px rgba(255,255,255,0.5); }
/* ---- Reproductor en tema claro: colores invertidos ---- */
body.theme-light .music-widget {
  color: #2a2620;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 45%),
    radial-gradient(130% 95% at 50% -22%, rgba(255, 255, 255, 0.5), transparent 60%),
    rgba(247, 243, 236, 0.42);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 18px 50px -14px rgba(60, 50, 38, 0.22),
    0 6px 40px -6px color-mix(in srgb, var(--genre-color, #8a6f4a) 30%, transparent),
    inset 0 1px 1px rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
body.theme-light .music-header { border-bottom-color: rgba(60, 50, 38, 0.12); }
body.theme-light .player-toggle { background: rgba(60, 50, 38, 0.08); color: #2a2620; }
body.theme-light .player-title { color: #2a2620; }
body.theme-light .player-minimize { color: rgba(60, 50, 38, 0.5); }
body.theme-light .song-title { color: #1f1c17; }
body.theme-light .song-artist { color: rgba(60, 50, 38, 0.55); }
body.theme-light .control-btn { background: rgba(60, 50, 38, 0.07); border-color: rgba(60, 50, 38, 0.12); color: #2a2620; }
body.theme-light .control-icon { filter: brightness(0); opacity: 0.78; }
body.theme-light .control-btn.main-control { background: var(--genre-color, #8a6f4a); }
body.theme-light .control-btn.main-control .control-icon { filter: brightness(0) invert(1); opacity: 0.95; }
body.theme-light .progress-bar { background: rgba(60, 50, 38, 0.15); }
body.theme-light .progress-fill { background: var(--genre-color, #8a6f4a); }
body.theme-light .progress-fill::after { background: #2a2620; box-shadow: 0 0 0 3px color-mix(in srgb, var(--genre-color, #8a6f4a) 30%, transparent); }
body.theme-light .time-display { color: rgba(60, 50, 38, 0.55); }
body.theme-light .genre-trigger { background: rgba(60, 50, 38, 0.06); border-color: rgba(60, 50, 38, 0.16); color: #2a2620; }
body.theme-light .genre-list { background: rgba(248, 244, 237, 0.98); border-color: rgba(60, 50, 38, 0.16); box-shadow: 0 16px 44px -10px rgba(60, 50, 38, 0.25); }
body.theme-light .genre-list::-webkit-scrollbar-thumb { background: rgba(60, 50, 38, 0.25); }
body.theme-light .genre-option { color: rgba(60, 50, 38, 0.78); }
body.theme-light .genre-option.is-active { background: rgba(60, 50, 38, 0.08); }
body.theme-light .genre-selector.open .genre-trigger { background: rgba(60, 50, 38, 0.11); border-color: rgba(60, 50, 38, 0.3); }
body.theme-light .volume-icon { color: rgba(60, 50, 38, 0.55); }
body.theme-light .volume-slider { background: rgba(60, 50, 38, 0.15); }
body.theme-light .volume-slider::-webkit-slider-thumb { background: var(--genre-color, #8a6f4a); }
body.theme-light .volume-slider::-moz-range-thumb { background: var(--genre-color, #8a6f4a); }
@media (hover: hover) and (pointer: fine) {
  body.theme-light .control-btn:hover { background: rgba(60, 50, 38, 0.13); border-color: rgba(60, 50, 38, 0.22); }
  body.theme-light .genre-trigger:hover { background: rgba(60, 50, 38, 0.11); border-color: rgba(60, 50, 38, 0.3); }
  body.theme-light .genre-option:hover { background: rgba(60, 50, 38, 0.08); color: #1f1c17; }
  body.theme-light .player-toggle:hover { background: rgba(60, 50, 38, 0.16); }
  body.theme-light .player-minimize:hover { color: #2a2620; background: rgba(60, 50, 38, 0.1); }
}


/* ================================================
   TRANSICIÓN ENTRE PÁGINAS — cortina
   ================================================ */
#page-fx {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: #100f0d;
  transform: translateY(0);
  pointer-events: none;
  will-change: transform;
}
#page-fx.fx-anim { transition: transform 0.62s cubic-bezier(0.76, 0, 0.24, 1); }
#page-fx.fx-reveal { transform: translateY(-100%); }

/* Accesibilidad — foco visible por teclado */
a:focus-visible,
button:focus-visible,
.img-drag:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(199, 178, 153, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
}
/* subtle warm wordmark centred on the curtain (only visible while it covers) */
#page-fx::before {
  content: 'CÉSAR DEL VALLE';
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(236, 230, 218, 0.14);
}


/* ================================================
   GRANO DE PELÍCULA — textura sutil animada
   ================================================ */
body::after {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  will-change: transform;
  animation: grain-shift 1.1s steps(5) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-4%, 5%); }
  40%  { transform: translate(5%, -4%); }
  60%  { transform: translate(-3%, -5%); }
  80%  { transform: translate(4%, 3%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}
body.theme-light::after { opacity: 0.028; }

/* Fondo del body sensible al tema. Imprescindible en móvil, donde #vanta-bg
   se oculta (display:none) y por tanto su degradado de día no se vería.
   theme-light solo se aplica en el index, así que no afecta a otras páginas. */
body.theme-light {
  background: radial-gradient(125% 92% at 50% -8%, #f6f1e7 0%, #ece2d1 55%, #e1d5c0 100%);
  background-attachment: fixed;
}

/* ================================================
   PROGRESO DE SCROLL — línea fina superior
   ================================================ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 4000;
  background: linear-gradient(90deg, #b0a085, #c7b299);
  box-shadow: 0 0 10px rgba(199, 178, 153, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
#scroll-progress.visible { opacity: 1; }
body.theme-light #scroll-progress { background: linear-gradient(90deg, #8a7f6b, #6f665a); }


/* ================================================
   INTERRUPTOR DÍA / NOCHE
   ================================================ */
.theme-toggle {
  position: relative;
  width: 60px; height: 28px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  cursor: none;
  z-index: 3001;
  touch-action: manipulation;
  transition: background 0.45s ease, border-color 0.45s ease;
}
/* Área de toque ampliada (cómodo en móvil sin cambiar el aspecto) */
.theme-toggle::after {
  content: '';
  position: absolute;
  inset: -12px -10px;
  border-radius: inherit;
}
.theme-toggle .tt-icon { width: 13px; height: 13px; flex-shrink: 0; transition: color 0.45s ease; }
.theme-toggle .tt-moon { color: #c7b299; }
.theme-toggle .tt-sun { color: rgba(255, 255, 255, 0.4); }
.theme-toggle .tt-knob {
  position: absolute;
  top: 50%; left: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #c7b299;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: left 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.45s ease;
}
.theme-toggle.is-day { background: rgba(27, 23, 18, 0.06); border-color: rgba(27, 23, 18, 0.22); }
.theme-toggle.is-day .tt-knob { left: calc(100% - 24px); background: #6f665a; }
.theme-toggle.is-day .tt-moon { color: rgba(27, 23, 18, 0.35); }
.theme-toggle.is-day .tt-sun { color: #7a6f5c; }
.theme-toggle.clicked .tt-knob { animation: tt-pop 0.4s ease; }
@keyframes tt-pop { 50% { transform: translateY(-50%) scale(0.84); } }

/* Blobs del fondo en modo Día — tonos topo cálidos para que se vean sobre crema */
body.theme-light .bg-blob-1 { background: radial-gradient(circle, rgba(158,138,108,0.30), transparent 66%); }
body.theme-light .bg-blob-2 { background: radial-gradient(circle, rgba(120,104,80,0.24), transparent 66%); }
body.theme-light .bg-blob-3 { background: radial-gradient(circle, rgba(188,168,138,0.22), transparent 66%); }


/* ================================================
   BOTÓN "ABOUT ME" (home) — burbuja de cristal
   ================================================ */
.hero-btn {
  background: rgba(236, 230, 218, 0.08);
  background-image: none;
  background-blend-mode: normal;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(236, 230, 218, 0.24);
  border-radius: 100px;
  padding: 0.62em 1.8em;
  font-size: 0.78rem;
  color: #ece6da;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
/* Feedback de clic SIN desplazamiento (solo escala, en su sitio) */
.hero-btn:active { transform: scale(0.96); }
@keyframes hero-btn-click-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.hero-btn:hover {
  background: rgba(236, 230, 218, 0.15);
  border-color: rgba(199, 178, 153, 0.55);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
}
/* Día */
body.theme-light .hero-btn {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(74, 58, 38, 0.24);
  color: #4a3a26;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
body.theme-light .hero-btn:hover {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(74, 58, 38, 0.42);
  color: #3a2d1d;
}


/* ================================================
   PROJECT HERO — encabezado de proyecto (sistema reutilizable)
   Colores por proyecto vía variables: --ph-bg --ph-ink --ph-accent --ph-line
   ================================================ */
.proj-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(90% 95% at 72% 18%, rgba(255, 255, 255, 0.16), transparent 55%),
    var(--ph-bg, #c4d1a8);
  padding: 13vh clamp(24px, 6vw, 90px) 8vh;
}
.proj-hero-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.proj-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ph-accent, #d4a947);
  margin-bottom: 1.7rem;
}
.proj-eyebrow .n { color: var(--ph-ink, #2d4a1f); }
.proj-eyebrow .bar { width: 44px; height: 1px; background: var(--ph-ink, #2d4a1f); opacity: 0.45; }
.proj-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--ph-ink, #2d4a1f);
  margin: 0 0 0.7rem 0;
}
.proj-title em { font-style: italic; font-weight: 300; color: var(--ph-accent, #d4a947); }
.proj-tagline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ph-accent, #d4a947);
  margin: 0 0 1.9rem 0;
}
.proj-desc {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.75;
  font-weight: 300;
  color: var(--ph-ink, #2d4a1f);
  opacity: 0.84;
  max-width: 545px;
  margin: 0 0 2.4rem 0;
}
.proj-desc strong { font-weight: 600; opacity: 1; }
.proj-desc em { font-style: italic; color: var(--ph-accent, #d4a947); opacity: 1; }
.proj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0;
  border-top: 1px solid var(--ph-line, rgba(45,74,31,0.2));
  padding-top: 1.5rem;
}
.proj-meta > div {
  padding: 0 1.7rem;
  border-left: 1px solid var(--ph-line, rgba(45,74,31,0.2));
}
.proj-meta > div:first-child { padding-left: 0; border-left: none; }
.proj-meta .m-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ph-accent, #d4a947);
  margin-bottom: 0.45rem;
}
.proj-meta .m-value {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ph-ink, #2d4a1f);
}
.proj-hero-visual { position: relative; }
.proj-hero-visual img {
  width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 30px 64px rgba(0,0,0,0.22));
}
.ph-rise { animation: ph-rise 0.9s cubic-bezier(0.22,0.61,0.36,1) both; }
@keyframes ph-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* número gigante de fondo (editorial) */
.proj-hero-inner { position: relative; z-index: 1; }
.proj-hero::before {
  content: var(--ph-num, "");
  position: absolute;
  top: 4%;
  left: -1.8%;
  font-family: 'Inter', sans-serif;
  font-size: 48vh;
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: var(--ph-ink, #2d4a1f);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
/* producto: preparado para el tilt 3D (JS) */
.proj-hero-visual { perspective: 1100px; }
.proj-hero-visual img { backface-visibility: hidden; }
/* envoltorio que se inclina + brillo/glare que recorre el producto */
.ph-tilt {
  position: relative;
  display: block;
  transform-style: preserve-3d;
  will-change: transform;
}
.ph-tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 26%), rgba(255,255,255,0.5), rgba(255,255,255,0) 42%);
  -webkit-mask-image: var(--ph-img, none);
  mask-image: var(--ph-img, none);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}
@media (max-width: 900px) {
  .proj-hero::before { font-size: 28vh; top: 1.5%; }
}

/* halo/glow detrás del producto (respira) */
.proj-hero-visual::before {
  content: '';
  position: absolute;
  inset: -10% -6%;
  z-index: -1;
  background: radial-gradient(ellipse at 55% 50%, var(--ph-accent, #d4a947), transparent 62%);
  opacity: 0.16;
  filter: blur(42px);
  animation: ph-glow 6.5s ease-in-out infinite;
}
@keyframes ph-glow {
  0%, 100% { opacity: 0.12; transform: scale(0.96); }
  50% { opacity: 0.2; transform: scale(1.06); }
}

/* indicador de scroll */
.proj-scroll-cue {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 50;
  opacity: 0.92;
  transition: opacity 0.5s ease;
}
.proj-scroll-cue.hide { opacity: 0; pointer-events: none; }
.proj-scroll-cue .sc-txt {
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ph-ink, #2d4a1f);
  opacity: 0.72;
}
.proj-scroll-cue .sc-arrow {
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ph-ink, #2d4a1f);
  opacity: 0.72;
  animation: sc-bounce 1.8s ease-in-out infinite;
}
@keyframes sc-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ================================================
   MARQUESINA del proyecto (banda de texto en movimiento)
   ================================================ */
.proj-marquee {
  overflow: hidden;
  white-space: nowrap;
  background: var(--pm-bg, #2d4a1f);
  padding: clamp(9px, 1.2vw, 14px) 0;
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.proj-marquee-track {
  display: inline-block;
  white-space: nowrap;
  font-size: 0;
  animation: pm-scroll 24s linear infinite;
  will-change: transform;
}
.proj-marquee:hover .proj-marquee-track { animation-play-state: paused; }
.proj-marquee-track span.seg {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.82rem, 1.5vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pm-fg, #c4d1a8);
  opacity: 0.85;
}
.proj-marquee-track .dot { color: var(--pm-accent, #d4a947); padding: 0 0.6em; font-weight: 400; }
@keyframes pm-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================================================
   FOOTER — limpio y minimalista
   ================================================ */
.site-footer {
  background: #100f0d;
  color: #ece6da;
  padding: clamp(60px, 9vh, 104px) clamp(24px, 6vw, 90px) 40px;
  position: relative;
  z-index: 2;
  text-align: center;
}
.site-footer .sf-inner { max-width: 760px; margin: 0 auto; }
.site-footer .sf-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(236, 230, 218, 0.5);
  margin: 0 0 1rem 0;
}
.site-footer .sf-mail {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ece6da;
  text-decoration: none;
  display: inline-block;
  position: relative;
  cursor: none;
  transition: color 0.4s ease;
  word-break: break-word;
}
.site-footer .sf-mail::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1.5px;
  background: #c7b299;
  transition: width 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.site-footer .sf-mail:hover { color: #c7b299; }
.site-footer .sf-mail:hover::after { width: 100%; }
.site-footer .sf-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: clamp(38px, 7vh, 68px);
  padding-top: clamp(26px, 4vh, 40px);
  border-top: 1px solid rgba(236, 230, 218, 0.1);
}
.site-footer .sf-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(236, 230, 218, 0.55);
  text-decoration: none;
  cursor: none;
  transition: color 0.3s ease;
}
.site-footer .sf-nav a:hover { color: #ece6da; }
.site-footer .sf-copy {
  margin: 1.8rem 0 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  color: rgba(236, 230, 218, 0.4);
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .proj-hero { min-height: auto; padding: 100px 24px 56px; }
  .proj-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .proj-hero-visual { order: -1; }
  .proj-hero-visual img { max-height: 44vh; }
  .proj-meta > div { padding: 0 1.1rem; }
}
@media (max-width: 560px) {
  /* Hero al completo dentro de una pantalla (sin scroll) */
  .proj-hero { min-height: 100dvh; padding: 72px 18px 20px; align-items: center; }
  .proj-hero-inner { gap: 12px; }
  .proj-hero-visual { order: -1; }
  .proj-hero-visual img { max-height: 25dvh; }
  .proj-hero::before { font-size: 14vh; top: 2%; }
  .proj-eyebrow { font-size: 0.6rem; letter-spacing: 0.18em; margin-bottom: 0.6rem; }
  .proj-title { font-size: clamp(2rem, 8vw, 2.7rem); line-height: 0.98; margin: 0 0 0.5rem; }
  .proj-tagline { font-size: 0.9rem; line-height: 1.3; margin: 0 0 0.6rem; max-width: none; }
  .proj-desc { font-size: 0.78rem; line-height: 1.46; margin: 0; opacity: 0.85; }
  .proj-meta { flex-direction: column; gap: 0; padding-top: 0.55rem; margin-top: 0.7rem; }
  .proj-meta > div { padding: 0.38rem 0; border-left: none; border-top: 1px solid var(--ph-line, rgba(45, 74, 31, 0.2)); }
  .proj-meta > div:first-child { padding-top: 0; border-top: none; }
  .proj-meta .m-label { margin-bottom: 0.12rem; font-size: 0.56rem; }
  .proj-meta .m-value { font-size: 0.72rem; }
  .site-footer .sf-nav { gap: 14px 18px; }
  .proj-marquee { padding: 8px 0; }
}

/* ================================================
   POLISH LAYER — detalles de interacción (aditivo)
   1. Halo de cursor + ripple   2. Reveal al scroll
   Respeta prefers-reduced-motion y punteros táctiles.
   (La barra de progreso de scroll ya existe más arriba.)
   ================================================ */

/* --- 1. Halo del cursor (acompaña al egg-cursor con retardo suave) --- */
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(199, 178, 153, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.3s ease, border-color 0.35s ease, background-color 0.35s ease;
}
#cursor-ring.is-visible { opacity: 1; }
#cursor-ring.is-hot {
  border-color: rgba(199, 178, 153, 0.9);
  background-color: rgba(199, 178, 153, 0.07);
}
body.theme-light #cursor-ring { border-color: rgba(60, 50, 38, 0.4); }
body.theme-light #cursor-ring.is-hot {
  border-color: rgba(60, 50, 38, 0.65);
  background-color: rgba(60, 50, 38, 0.05);
}

/* ripple suave al hacer click */
.click-ripple {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 1.5px solid rgba(199, 178, 153, 0.7);
  pointer-events: none;
  z-index: 9997;
  animation: click-ripple 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
body.theme-light .click-ripple { border-color: rgba(60, 50, 38, 0.55); }
@keyframes click-ripple {
  from { transform: scale(0.3); opacity: 0.85; }
  to { transform: scale(3.6); opacity: 0; }
}

/* --- 2. Reveal al hacer scroll --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
              filter 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Ocultar extras de cursor en punteros táctiles / gruesos */
@media (hover: none), (pointer: coarse) {
  #cursor-ring, .click-ripple { display: none !important; }
}

/* Accesibilidad: sin movimiento */
@media (prefers-reduced-motion: reduce) {
  #cursor-ring, .click-ripple { display: none !important; }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ================================================
   ABOUT v2 — editorial oscuro premium
   ================================================ */
body.about-page { background: #100f0d; }
.abx {
  background: #100f0d;
  color: #ece6da;
  min-height: 100vh;
  overflow-x: hidden;
}

@keyframes abx-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes abx-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(182, 199, 154, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(182, 199, 154, 0); }
}

/* ---- Hero ---- */
.abx-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(118px, 17vh, 200px) clamp(24px, 6vw, 90px) clamp(56px, 9vh, 118px);
}
.abx-hero-inner {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.abx-hero-text > * { opacity: 0; animation: abx-rise 0.95s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }
.abx-eyebrow { animation-delay: 0.05s; }
.abx-name { animation-delay: 0.14s; }
.abx-accent { animation-delay: 0.24s; }
.abx-lead { animation-delay: 0.32s; }
.abx-hero-visual { opacity: 0; animation: abx-rise 1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s forwards; }

.abx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(236, 230, 218, 0.55);
  margin: 0 0 1.7rem 0;
}
.abx-eb-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #b6c79a;
  animation: abx-pulse 2.4s ease-in-out infinite;
}
.abx-sep { color: rgba(236, 230, 218, 0.28); margin: 0 3px; }

.abx-name {
  font-family: 'Inter', sans-serif;
  font-size: clamp(3.1rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: #ece6da;
  margin: 0 0 1.7rem 0;
}
.abx-name em {
  display: block;
  font-style: normal;
  font-weight: 200;
  color: #c7b299;
}
.abx-accent {
  display: block;
  width: 64px;
  height: 2px;
  background: #c7b299;
  opacity: 0.85;
  margin-bottom: 2.1rem;
}
.abx-lead { max-width: 540px; }
.abx-lead p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  font-weight: 300;
  line-height: 1.78;
  color: rgba(236, 230, 218, 0.62);
  margin: 0 0 1.1rem 0;
}
.abx-lead p:last-child { margin-bottom: 0; }
.abx-lead strong { color: #ece6da; font-weight: 600; }

/* ---- Retrato (duotono + grano + marco) ---- */
.abx-hero-visual { display: flex; justify-content: center; }
.abx-portrait { position: relative; margin: 0; width: min(100%, 400px); }
.abx-portrait-deco {
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 1px solid rgba(199, 178, 153, 0.4);
  border-radius: 4px;
  z-index: 0;
  transition: inset 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.45s ease;
}
.abx-portrait-media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.6);
}
.abx-portrait-media img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transition: filter 0.65s ease, transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.abx-portrait-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(199, 178, 153, 0.2), rgba(16, 15, 13, 0.4));
  mix-blend-mode: multiply;
  opacity: 0.7;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.abx-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 140px;
}
.abx-portrait:hover .abx-portrait-media img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.035); }
.abx-portrait:hover .abx-portrait-media::after { opacity: 0.14; }
.abx-portrait:hover .abx-portrait-deco { inset: 13px -24px -24px 13px; border-color: rgba(199, 178, 153, 0.6); }
.abx-portrait figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 230, 218, 0.4);
}

/* ---- Marquee del about (reutiliza .proj-marquee) ---- */
.abx-marquee {
  margin: 0 0 clamp(72px, 12vh, 140px);
  border-top: 1px solid rgba(236, 230, 218, 0.08);
  border-bottom: 1px solid rgba(236, 230, 218, 0.08);
}

/* ---- Secciones ---- */
.abx-section {
  max-width: 1100px;
  margin: 0 auto clamp(82px, 13vh, 150px);
  padding: 0 clamp(24px, 6vw, 90px);
}
.abx-sec-head { margin-bottom: clamp(38px, 6vh, 60px); }
.abx-sec-idx {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c7b299;
  margin-bottom: 1rem;
}
.abx-sec-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: #ece6da;
  margin: 0;
  max-width: 20ch;
}

/* ---- Toolbox: barras de competencia ---- */
.abx-bars { display: flex; flex-direction: column; gap: clamp(18px, 2.6vh, 28px); }
.abx-bar {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}
.abx-bar-name {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ece6da;
}
.abx-bar-track {
  position: relative;
  height: 2px;
  background: rgba(236, 230, 218, 0.12);
  border-radius: 2px;
  overflow: hidden;
}
.abx-bar-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #b0a085, #c7b299);
  border-radius: 2px;
  transition: width 1.15s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s;
}
.abx-bar.is-revealed .abx-bar-fill { width: var(--val, 0%); }
.abx-bar-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(236, 230, 218, 0.5);
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
  text-align: right;
}
.abx-bar-num::after { content: '%'; opacity: 0.5; margin-left: 1px; }

/* ---- Expertise ---- */
.abx-exp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(236, 230, 218, 0.1);
}
.abx-exp {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 50px);
  padding: clamp(24px, 3.4vh, 38px) 6px;
  border-bottom: 1px solid rgba(236, 230, 218, 0.1);
  position: relative;
  transition: padding 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.abx-exp::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(199, 178, 153, 0.045);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.abx-exp-no {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(236, 230, 218, 0.35);
  position: relative;
  z-index: 1;
}
.abx-exp-body { position: relative; z-index: 1; }
.abx-exp-title {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ece6da;
  transition: color 0.4s ease;
}
.abx-exp-desc {
  display: block;
  margin-top: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(236, 230, 218, 0.48);
}
.abx-exp-arrow {
  font-size: 1.4rem;
  color: rgba(236, 230, 218, 0.3);
  position: relative;
  z-index: 1;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.4s ease;
}
@media (hover: hover) and (pointer: fine) {
  .abx-exp:hover { padding-left: 24px; padding-right: 24px; }
  .abx-exp:hover::before { opacity: 1; }
  .abx-exp:hover .abx-exp-title { color: #c7b299; }
  .abx-exp:hover .abx-exp-arrow { transform: translate(7px, -7px); color: #c7b299; }
}

/* ---- Facts ---- */
.abx-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(236, 230, 218, 0.1);
  border: 1px solid rgba(236, 230, 218, 0.1);
}
.abx-fact {
  background: #100f0d;
  padding: clamp(26px, 4vh, 44px) clamp(20px, 2.4vw, 30px);
}
.abx-fact-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c7b299;
  margin-bottom: 0.85rem;
}
.abx-fact-value {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 500;
  line-height: 1.35;
  color: rgba(236, 230, 218, 0.92);
}

/* ---- CTA de cierre ---- */
.abx-cta { border-top: 1px solid rgba(236, 230, 218, 0.1); }
.abx-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(72px, 12vh, 140px) clamp(24px, 6vw, 90px);
  text-align: center;
}
.abx-cta-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(236, 230, 218, 0.5);
  margin: 0 0 1.5rem 0;
}
.abx-cta-link {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 5.5vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #ece6da;
  text-decoration: none;
  position: relative;
  cursor: none;
}
.abx-cta-link span { display: inline-block; color: #c7b299; transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); }
.abx-cta-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: #c7b299;
  transition: width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.abx-cta-link:hover::after { width: 100%; }
.abx-cta-link:hover span { transform: translateX(10px); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .abx-hero { padding-top: 104px; }
  .abx-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .abx-hero-visual { order: -1; }
  .abx-portrait { width: min(100%, 320px); }
  .abx-bar {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name num" "track track";
    row-gap: 11px;
    column-gap: 16px;
  }
  .abx-bar-name { grid-area: name; }
  .abx-bar-num { grid-area: num; }
  .abx-bar-track { grid-area: track; }
  .abx-facts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .abx-facts-grid { grid-template-columns: 1fr; }
  .abx-exp { gap: 16px; }
}

/* ---- Reduced motion (about) ---- */
@media (prefers-reduced-motion: reduce) {
  .abx-hero-text > *, .abx-hero-visual { opacity: 1 !important; animation: none !important; }
  .abx-eb-dot { animation: none !important; }
  .abx-bar-fill { transition: none !important; }
  .abx-portrait-media img { transition: none !important; }
  .proj-marquee-track { animation: none !important; }
}


