:root {
  /* Background */
  --bg: #030512;
  --bg-soft: #070b1d;
  /* Panels */
  --panel: rgba(7, 12, 31, 0.76);
  --panel-strong: rgba(9, 15, 39, 0.92);
  /* Text */
  --text: #f5f7ff;
  --muted: #b8c1dc;
  /* Ado / Miku inspired */
  --cyan: #6ee7ff;
  --cyan-soft: #a5f3ff;
  --blue: #4f7cff;
  --purple: #9b7cff;
  --magenta: #e879f9;
  --pink: #f0a6ff;
  /* Status */
  --green: #72f1d4;
  --amber: #ff9fcf;
  /* UI */
  --border: rgba(145, 170, 255, 0.18);
  --border-hover: rgba(110, 231, 255, 0.5);
  --shadow: 0 26px 72px rgba(0, 0, 0, 0.58);
}
* {
  box-sizing: border-box;
}
html, body {
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
/* Capa fija para el fondo (Evita el salto al hacer scroll en móviles y PC) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 6, 20, 0.94) 0%,
      rgba(5, 8, 28, 0.78) 42%,
      rgba(8, 8, 30, 0.48) 70%,
      rgba(3, 5, 18, 0.72) 100%
    ),
    url("images/adofondomiku.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(4, 7, 18, 0.72), rgba(4, 7, 18, 0.28));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.brand,
.header-socials,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 800;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: auto;
}

.header-socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(14, 20, 42, 0.62);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.header-socials svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.header-socials a:hover {
  color: var(--text);
  border-color: rgba(121, 216, 255, 0.55);
  background: rgba(121, 216, 255, 0.12);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 38px rgba(3, 7, 21, 0.42);
}

.nav-links {
  gap: 0.35rem;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 16, 36, 0.68);
}

.nav-links a {
  min-width: 74px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(121, 216, 255, 0.12);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: min(1160px, calc(100% - 32px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 56px 0 72px;
}

.hero-copy {
  flex: 1 1 auto;
  max-width: 600px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1, 
h2, 
h3, 
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 9vw, 6.4rem);
  line-height: 0.92;
  background: linear-gradient(110deg, #ffffff 10%, var(--cyan) 48%, var(--purple) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- Live status / activity panel ---------- */
.activity-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: calc(100% + 40px);
  margin: 0 -20px 28px;
}

.activity-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(10, 18, 45, 0.5), rgba(5, 8, 24, 0.4));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.activity-card-cover {
  display: block;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent, var(--cyan)) 28%, transparent), color-mix(in srgb, var(--accent, var(--purple)) 22%, transparent));
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.activity-card-avatar {
  position: relative;
  width: 44px;
  height: 44px;
}

.activity-card-cover-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.activity-status-dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--status-color, var(--muted));
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--status-color, var(--muted)) 55%, transparent);
}

.activity-status-dot.is-pulsing {
  animation: status-pulse 2.2s ease-out infinite;
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--status-color, var(--muted)) 55%, transparent);
  }
  70% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--status-color, var(--muted)) 0%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--status-color, var(--muted)) 0%, transparent);
  }
}

.activity-card-body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.activity-card-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent, var(--cyan));
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.activity-card-label .pulse {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(114, 241, 212, 0.65), 0 0 0 0 rgba(114, 241, 212, 0.5);
  animation: pulse 2.2s ease-out infinite;
}

.activity-card-title {
  overflow: hidden;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-card-subtitle {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-card-progress {
  height: 3px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.activity-card-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent, var(--cyan)), var(--cyan-soft));
}

/* Reserved slot for an integration that isn't wired up yet (e.g. Discord) */
.activity-card.is-ghost {
  border-style: dashed;
  border-color: rgba(145, 170, 255, 0.16);
  background: rgba(9, 14, 34, 0.28);
  opacity: 0.62;
}

.activity-card.is-ghost .activity-card-cover {
  display: grid;
  place-items: center;
  background: rgba(145, 170, 255, 0.06);
  font-size: 1.1rem;
}

.activity-card.is-ghost .activity-card-label {
  color: var(--muted);
}

.activity-card.is-ghost .activity-card-label .pulse {
  background: var(--muted);
  box-shadow: none;
  animation: none;
}

/* Paused music state: still shows the track, just muted/static */
.activity-card.is-paused {
  opacity: 0.68;
}

.activity-card.is-paused .activity-card-progress-fill {
  background: var(--muted);
}

.activity-card-label .pause-icon {
  flex: 0 0 auto;
  font-size: 0.6rem;
  line-height: 1;
  opacity: 0.85;
}

.button {
  min-height: 48px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #031018;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-soft));
  box-shadow: 0 8px 28px rgba(110, 231, 255, 0.18);
}

.button.secondary {
  border-color: var(--border);
  color: var(--text);
  background: rgba(10, 15, 38, 0.7);
}

.button.secondary:hover {
  border-color: var(--purple);
  background: rgba(155, 124, 255, 0.12);
}

/* ---------- Hero music widget ---------- */
.hero-music {
  position: relative;
  flex: 0 0 320px;
  width: 320px;
  margin-right: -150px;
  padding: 20px;
  border: 1px solid rgba(145, 170, 255, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(
      145deg,
      rgba(10, 18, 45, 0.58),
      rgba(5, 8, 24, 0.48)
    );
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.38),
    0 0 35px rgba(110, 231, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transform: none;
}

.hero-music::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(110, 231, 255, 0.08);
  filter: blur(45px);
  pointer-events: none;
}

.hero-music::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(155, 124, 255, 0.07);
  filter: blur(50px);
  pointer-events: none;
}

.hero-music-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(145, 170, 255, 0.12);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-music-head .pulse {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow:
    0 0 10px rgba(114, 241, 212, 0.65),
    0 0 0 0 rgba(114, 241, 212, 0.5);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow:
      0 0 10px rgba(114, 241, 212, 0.65),
      0 0 0 0 rgba(114, 241, 212, 0.5);
  }
  70% {
    box-shadow:
      0 0 10px rgba(114, 241, 212, 0.65),
      0 0 0 8px rgba(114, 241, 212, 0);
  }
  100% {
    box-shadow:
      0 0 10px rgba(114, 241, 212, 0.65),
      0 0 0 0 rgba(114, 241, 212, 0);
  }
}

.track-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.track {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 25px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

a.track {
  cursor: pointer;
}

.track:hover {
  border-color: rgba(110, 231, 255, 0.2);
  background:
    linear-gradient(
      90deg,
      rgba(110, 231, 255, 0.08),
      rgba(155, 124, 255, 0.05)
    );
  transform: translateX(3px);
}

.track-cover {
  display: block;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(
      140deg,
      rgba(110, 231, 255, 0.2),
      rgba(155, 124, 255, 0.2)
    );
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.track-info {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.track-title {
  overflow: hidden;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-artist {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-play {
  display: grid;
  width: 25px !important;
  height: 25px !important;
  min-width: 25px !important;
  min-height: 25px !important;
  place-items: center;
  margin-left: auto;
  border: 1px solid rgba(110, 231, 255, 0.25);
  border-radius: 50%;
  color: var(--bg);
  background: var(--cyan-soft);
  font-size: 0.58rem;
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.track:hover .track-play {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Project cards ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 26px 24px 24px;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent, var(--cyan)), transparent 85%);
  opacity: 0.9;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.62), 0 0 32px color-mix(in srgb, var(--accent, var(--cyan)) 18%, transparent);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.project-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  color: var(--accent, var(--cyan));
  background: color-mix(in srgb, var(--accent, var(--cyan)) 14%, transparent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.project-glyph {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.project-index {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0.55;
}

.project-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.project-card p {
  flex: 1;
  color: var(--muted);
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.tag-row span {
  padding: 7px 10px;
  border: 1px solid rgba(110, 231, 255, 0.14);
  border-radius: 999px;
  color: #d9f8ff;
  background: rgba(25, 40, 78, 0.55);
  font-size: 0.78rem;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.tag-row span:hover {
  border-color: rgba(110, 231, 255, 0.42);
  background: rgba(110, 231, 255, 0.08);
  transform: translateY(-1px);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
}

.project-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 180ms ease;
}

.project-card:hover .project-link svg {
  transform: translate(2px, -2px);
}

/* ---------- Dynamic info panels ---------- */
.info-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 0;
  color: inherit;
  text-align: left;
  background: linear-gradient(145deg, rgba(13, 21, 51, 0.86), rgba(5, 9, 24, 0.94));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  cursor: pointer;
  font: inherit;
  transition: transform 220ms ease, border-color 220ms ease, grid-column 260ms ease;
}

.info-card:last-child {
  border-right: 1px solid var(--border);
}

.info-card:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.info-card:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.info-card.is-active {
  border-right: 1px solid var(--border);
  border-radius: 10px;
}

.info-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
}

.info-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.info-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent, var(--cyan)) 16%, transparent);
  font-size: 1.15rem;
}

.info-card h3 {
  font-size: 1.08rem;
}

.info-toggle {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: transform 220ms ease, color 180ms ease, border-color 180ms ease;
}

.info-card.is-active .info-toggle {
  transform: rotate(45deg);
  color: var(--accent, var(--cyan));
  border-color: var(--border-hover);
}

.info-teaser {
  color: var(--muted);
  line-height: 1.6;
}

.info-full {
  display: none;
  color: var(--muted);
  line-height: 1.7;
}

.info-full p + p {
  margin-top: 10px;
}

.info-card.is-active {
  grid-column: 1 / -1;
  cursor: default;
}

.info-card.is-active .info-teaser {
  display: none;
}

.info-card.is-active .info-full {
  display: block;
}

.info-panels.has-active .info-card:not(.is-active) {
  display: none;
}

.info-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.info-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  transition: background 200ms ease, width 200ms ease;
}

.info-dot.is-active {
  width: 20px;
  background: var(--accent, var(--cyan));
}

.info-hint-mobile {
  display: none;
}

.info-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  opacity: 0.7;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(320px, 1fr);
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 19, 38, 0.84), rgba(7, 11, 22, 0.92));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: rgba(14, 20, 42, 0.62);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(121, 216, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(121, 216, 255, 0.12);
}

.contact-form .button {
  width: fit-content;
  cursor: pointer;
}

.contact-recaptcha {
  margin: 2px 0;
}

.contact-recaptcha:empty {
  display: none;
}

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

.field-typewriter-layer {
  position: relative;
  display: block;
}

.field-typewriter-layer input {
  position: relative;
  z-index: 1;
  background: transparent;
}

.typewriter-ghost {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  padding: 12px 13px;
  border-radius: 8px;
  background: rgba(14, 20, 42, 0.62);
  color: var(--muted);
  font: inherit;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  transition: opacity 150ms ease;
}

.typewriter-ghost.is-hidden {
  opacity: 0;
}

.typewriter-ghost::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  background: var(--muted);
  animation: typewriter-blink 900ms steps(1) infinite;
}

@keyframes typewriter-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.contact-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.85rem;
  color: var(--cyan);
}

.contact-status.is-error {
  color: #ff5c7a;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* MEDIA QUERIES PARA MÓVILES */
@media (max-width: 980px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-music {
    width: 100%;
    flex: none;
    margin-right: 0;
    transform: none;
  }
}

@media (max-width: 820px) {
  body::before {
    background-position: 30% center;
    background-image:
      linear-gradient(
        180deg,
        rgba(3, 6, 20, 0.95) 0%,
        rgba(5, 8, 28, 0.85) 45%,
        rgba(8, 8, 30, 0.5) 100%
      ),
      url("images/adofondomiku.jpeg");
  }

  .site-header {
    padding: 20px 0;
    background: linear-gradient(180deg, rgba(4, 7, 18, 0.35), rgba(4, 7, 18, 0.05));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .site-header-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
  }

  .header-socials {
    width: 100%;
    justify-content: center;
    gap: 12px;
    margin-right: 0;
  }

  .header-socials a {
    flex: none;
    width: 40px;
    height: 40px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
  }

  .nav-links a {
    flex: none;
    padding: 8px 16px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .info-panels {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin: 0 -4px;
    padding: 4px 4px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .info-panels::-webkit-scrollbar {
    display: none;
  }

  .info-card {
    flex: 0 0 84%;
    scroll-snap-align: center;
    border-radius: 10px;
    border: 1px solid var(--border);
  }

  .info-card.is-active {
    flex: 0 0 84%;
    grid-column: auto;
    border-radius: 10px;
  }

  /* Unlike the desktop accordion, keep every card in the DOM flow so
     the carousel still has slides to swipe between while one is expanded. */
  .info-panels.has-active .info-card:not(.is-active) {
    display: flex;
  }

  .info-dots {
    display: flex;
  }

  .info-hint-desktop {
    display: none;
  }

  .info-hint-mobile {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .contact-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-header-inner,
  .hero,
  .section,
  .contact-band,
  .site-footer {
    width: min(100% - 22px, 1120px);
  }

  .contact-form .button {
    width: 100%;
  }

  .activity-panel {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0 0 28px;
  }
}
