/* ============================================================
   COMPONENTES — botones, enlaces, medios, listas y formulario
   ============================================================ */

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.95rem 1.6rem;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}

.btn svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); flex: none; }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn--sm { padding: 0.7rem 1.15rem; font-size: 0.68rem; }

/* Sólido sobre fondo claro */
.btn--solid {
  background: var(--c-deep);
  border-color: var(--c-deep);
  color: var(--c-paper);
}
.btn--solid:hover { background: var(--c-tide); border-color: var(--c-tide); }

/* Sólido sobre fondo oscuro */
.btn--light {
  background: var(--c-paper);
  border-color: var(--c-paper);
  color: var(--c-deep);
}
.btn--light:hover { background: var(--c-foam); border-color: var(--c-foam); }

/* Contorno */
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: currentColor; }
.btn--ghost:hover span { color: var(--c-paper); }
.site-header.is-stuck .btn--ghost:hover span { color: var(--c-paper); }

.btn--ghost-dark { background: transparent; border-color: rgba(20, 24, 26, 0.28); color: var(--c-ink); }
.btn--ghost-dark:hover { border-color: var(--c-ink); background: var(--c-ink); color: var(--c-paper); }

.btn--ghost-light { background: transparent; border-color: rgba(246, 243, 238, 0.4); color: var(--c-paper); }
.btn--ghost-light:hover { border-color: var(--c-paper); background: var(--c-paper); color: var(--c-deep); }

/* ---------- Enlace con flecha ---------- */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-tide);
  white-space: nowrap;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; flex: none; }
.link-arrow:hover { gap: var(--s-4); color: var(--c-ink); }

.link-arrow--light { color: var(--c-foam); }
.link-arrow--light:hover { color: var(--c-paper); }

/* ---------- Redes sociales ---------- */

.social { display: flex; align-items: center; gap: var(--s-4); }

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  opacity: 0.8;
  transition: opacity var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.social a:hover { opacity: 1; border-color: currentColor; transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; }

.social--sm a { width: 30px; height: 30px; }
.social--sm svg { width: 17px; height: 17px; }

/* ---------- Medios ---------- */

.media {
  position: relative;
  overflow: hidden;
  background: var(--c-deep);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

.media--portrait { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media--landscape { aspect-ratio: 4 / 3; }
.media--wide { aspect-ratio: 16 / 9; }

a:hover .media img, .media--zoom:hover img { transform: scale(1.035); }

.media__caption {
  margin-top: var(--s-3);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--c-ink-3);
}

/* Banda inmersiva a sangre completa */
.band {
  position: relative;
  color: var(--c-paper);
  background: var(--c-deep-2);
  isolation: isolate;
  overflow: hidden;
}
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(7, 32, 38, 0.9) 0%, rgba(7, 32, 38, 0.72) 45%, rgba(7, 32, 38, 0.4) 100%);
}
.band h2, .band h3 { color: var(--c-paper); }

/* ---------- Listas editoriales ---------- */

.rule-list li {
  padding-block: var(--s-4);
  border-top: var(--hairline);
  display: flex;
  gap: var(--s-4);
  align-items: baseline;
}
.rule-list li:last-child { border-bottom: var(--hairline); }
.rule-list .n {
  font-family: var(--f-display);
  font-size: 0.8rem;
  color: var(--c-tide);
  min-width: 1.6rem;
}

.section--dark .rule-list li { border-color: rgba(207, 224, 220, 0.16); }
.section--dark .rule-list .n, .band .rule-list .n { color: var(--c-foam-2); }

.tag-list { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.tag-list li {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  border: var(--hairline);
  border-radius: var(--radius-pill);
  color: var(--c-ink-2);
}
.section--dark .tag-list li, .band .tag-list li {
  border-color: rgba(207, 224, 220, 0.24);
  color: var(--c-foam);
}

/* ---------- Marcador de contenido pendiente ---------- */

.placeholder {
  border-left: 2px solid var(--c-sand);
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  color: var(--c-ink-3);
  font-size: 0.95rem;
}
.placeholder strong {
  display: block;
  font-weight: 500;
  color: var(--c-ink-2);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.section--dark .placeholder, .band .placeholder {
  border-color: var(--c-tide-2);
  color: var(--c-foam-2);
}
.section--dark .placeholder strong, .band .placeholder strong { color: var(--c-foam); }

/* ---------- Botón flotante de WhatsApp ---------- */

.wa-fab {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 90;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-pill);

  background: #1FA855;
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(7, 32, 38, 0.55), 0 2px 6px rgba(7, 32, 38, 0.18);

  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.92);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out),
              visibility 0.45s, background 0.25s var(--ease);
}

.wa-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.wa-fab svg { width: 29px; height: 29px; }

.wa-fab:hover { background: #17924A; }
.wa-fab:active { transform: translateY(1px); }

@media (max-width: 640px) {
  .wa-fab { width: 50px; height: 50px; }
  .wa-fab svg { width: 27px; height: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab { transition: opacity 0.2s linear, visibility 0.2s; transform: none; }
}
