/* ===== Reset & tokens ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #e7e5d7;
  --ink: #131211;
  --accent: #ffde00;
  --maxw: 1120px;
}

html { scroll-behavior: auto; } /* scroll animation handled by JS for control over easing */

body {
  font-family: "Google Sans", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

svg.icon { width: 22px; height: 22px; display: block; fill: currentColor; }

/* ===== Fixed floating nav ===== */
.float-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-90px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(231,229,215,0.9);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 8px 10px;
  box-shadow: 0 8px 24px rgba(19,18,17,0.12);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}

.float-nav.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.float-nav .nav-home {
  display: flex;
  align-items: center;
  margin-right: 22px;
  padding-right: 22px;
  position: relative;
}

.float-nav .nav-home::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 24px;
  background: rgba(19,18,17,0.15);
}

.float-nav .nav-home img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-icons a {
  display: flex;
  align-items: center;
  height: 40px;
  border-radius: 999px;
  padding: 0 4px;
  position: relative;
}

.nav-icons a img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-icons a .tip {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 0;
  transition: max-width .28s ease, margin-left .28s ease;
}

.nav-icons a:hover .tip,
.nav-icons a:focus-visible .tip {
  max-width: 220px;
  margin-left: 10px;
}

.nav-icons a .dot {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
  transition: background .2s ease;
}

.nav-icons a.active .dot { background: var(--accent); }
.nav-icons a.active img { box-shadow: 0 0 0 2px var(--accent); border-radius: 50%; }

/* ===== Hero / Inicio ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-bottom: 56px;
  font-size: clamp(2.2rem, 7vw, 4rem);
  width: 100%;
}

.hero-top img.logo-big {
  width: 260px;
  max-width: 72vw;
  height: auto;
  object-fit: contain;
}

.hero-top h1 {
  font-size: 1em;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(19,18,17,0.04);
  border-radius: 999px;
  padding: 10px 20px 10px 10px;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}

.hero-nav a:hover { background: var(--accent); transform: translateY(-2px); }

.hero-nav a img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

/* small "support" strip, moved lower */
.support-strip {
  text-align: center;
  padding: 28px 24px 8px;
  color: var(--ink);
}

.support-strip p {
  opacity: 0.75;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--ink);
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(19,18,17,0.18); }

/* ===== Sections generic ===== */
.op-section {
  scroll-margin-top: 40px;
  padding: 90px 0;
  position: relative;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 44px;
}

.section-title-row img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

/* icon-only link row at bottom of a section */
.icon-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.icon-links a {
  height: 46px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  background: rgba(19,18,17,0.06);
  transition: background .2s ease, transform .2s ease;
}

.icon-links a svg.icon { flex-shrink: 0; }

.icon-links a .tip {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 0;
  transition: max-width .25s ease, margin-left .25s ease;
}

.icon-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.icon-links a:hover .tip {
  max-width: 160px;
  margin-left: 9px;
}

/* ===== Arte: floating gallery with parallax ===== */
.float-gallery {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 22px;
  padding: 10px 0 20px;
}

.float-item {
  width: 220px;
  text-align: center;
  will-change: transform;
  transition: transform .25s ease;
}

.float-item:nth-child(odd)  { margin-top: 26px; }
.float-item:nth-child(3n)   { margin-top: -14px; }

.thumb-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(19,18,17,0.14);
  transition: transform .3s ease, box-shadow .3s ease;
}

.thumb-wrap.ratio-43 { aspect-ratio: 4 / 3; }

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.float-item:hover .thumb-wrap {
  transform: scale(1.04) rotate(-0.5deg);
  box-shadow: 0 20px 40px rgba(19,18,17,0.22);
}

/* Lupa de zoom: lupa negra sobre círculo amarillo, centrada, visible al hover */
.zoom-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease;
}

.thumb-wrap:hover .zoom-badge { opacity: 1; }

.zoom-badge .circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(19,18,17,0.3);
}

.zoom-badge svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.float-item .cap {
  margin-top: 10px;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity .2s ease;
}

.float-item:hover .cap { opacity: 0.75; }

/* ===== Musica ===== */
.spotify-embed {
  max-width: 620px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  background: var(--ink);
  padding: 14px;
  box-shadow: 0 18px 40px rgba(19,18,17,0.2);
}

.spotify-embed iframe {
  display: block;
  border-radius: 12px;
  width: 100%;
  border: 0;
}

/* ===== Mini reproductor de Spotify (VU meter monocromático) ===== */
.spotify-mini {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
  transform: translateY(-120px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}

.spotify-mini.show { transform: translateY(0); opacity: 1; }

.spotify-mini button {
  background: transparent;
  border: none;
  color: var(--bg);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.spotify-mini button:hover { background: rgba(255,255,255,0.15); }
.spotify-mini button svg { width: 18px; height: 18px; fill: currentColor; }

.vu-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.vu-bars span {
  width: 3px;
  background: var(--bg);
  border-radius: 2px;
  animation: vu 0.9s ease-in-out infinite;
}

.vu-bars span:nth-child(1) { animation-delay: 0s; }
.vu-bars span:nth-child(2) { animation-delay: -0.6s; }
.vu-bars span:nth-child(3) { animation-delay: -0.3s; }
.vu-bars span:nth-child(4) { animation-delay: -0.15s; }

@keyframes vu {
  0%, 100% { height: 4px; }
  50% { height: 18px; }
}

/* ===== Video / Voz: floating video cloud + modal ===== */
.video-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 10px;
  padding: 10px 0;
}

.video-chip {
  width: 200px;
  border: none;
  background: transparent;
  text-align: left;
  animation: bob 6s ease-in-out infinite;
  transition: margin .2s ease;
}

.video-chip:hover { margin-bottom: 6px; }

.video-chip:nth-child(2n) { animation-delay: -2s; }
.video-chip:nth-child(3n) { animation-delay: -4s; }
.video-chip:nth-child(odd) { margin-top: 20px; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.video-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 12px 26px rgba(19,18,17,0.16);
  transition: transform .25s ease, box-shadow .25s ease;
}

.video-chip:hover .video-thumb {
  transform: scale(1.05);
  box-shadow: 0 18px 34px rgba(19,18,17,0.24);
}

.video-thumb img { width: 100%; height: 100%; object-fit: cover; }

.video-thumb .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(19,18,17,0.15);
  opacity: 0;
  transition: opacity .2s ease;
}

.video-chip:hover .video-thumb .play-badge { opacity: 1; }

.video-thumb .play-badge svg {
  width: 34px;
  height: 34px;
  fill: var(--accent);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.video-title {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
}

.video-chip:hover .video-title {
  opacity: 1;
  transform: translateY(0);
}

/* lightbox modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(19,18,17,0.86);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.lightbox-inner iframe { width: 100%; height: 100%; border: 0; }

.lightbox.img-mode .lightbox-inner {
  aspect-ratio: auto;
  width: auto;
  max-width: 92vw;
  max-height: 88vh;
  background: transparent;
  display: flex;
}

.lightbox.img-mode .lightbox-inner img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  background: var(--accent);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ===== Footer ===== */
footer {
  padding: 40px 24px 48px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
}

footer .contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
}

footer a:hover { color: var(--accent); }

/* ===== Píldora de contacto flotante (abajo) ===== */
.contact-pill {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  background: rgba(231,229,215,0.92);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(19,18,17,0.14);
  max-width: 92vw;
}

.contact-pill a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background .2s ease;
}

.contact-pill a svg.icon { width: 18px; height: 18px; }

.contact-pill a:hover { background: var(--accent); }

@media (max-width: 640px) {
  .contact-pill { bottom: 10px; padding: 6px; }
  .contact-pill a { padding: 8px 12px; font-size: 0.78rem; }
}

@media (max-width: 640px) {
  .float-nav { padding: 6px 8px; gap: 2px; }
  .float-nav .nav-home { margin-right: 12px; padding-right: 12px; }
  .float-nav .nav-home img { width: 34px; height: 34px; }
  .nav-icons a img { width: 34px; height: 34px; }
  .music-covers img { width: 100px; }
  .float-item { width: 44%; }
}
