/* Políticas legales y banner de cookies — Radio Vibra FM */

.vibra-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9800;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(12, 6, 24, 0.72) 0%, rgba(8, 4, 18, 0.96) 40%);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 92, 240, 0.35);
  box-shadow: 0 -8px 40px rgba(128, 0, 255, 0.25);
  transform: translateY(0);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.vibra-cookie-banner.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.vibra-cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.vibra-cookie-banner__text {
  flex: 1 1 280px;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 235, 255, 0.95);
}

.vibra-cookie-banner__text strong {
  color: #ff9aeb;
  font-weight: 700;
}

.vibra-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.vibra-cookie-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.vibra-cookie-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 154, 235, 0.45);
}

.vibra-cookie-btn--ghost:hover {
  background: rgba(128, 0, 255, 0.25);
  transform: translateY(-1px);
}

.vibra-cookie-btn--primary {
  background: linear-gradient(135deg, var(--vibra-purple), #b300ff);
  color: #fff;
  box-shadow: 0 4px 18px rgba(128, 0, 255, 0.45);
}

.vibra-cookie-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(128, 0, 255, 0.6);
}

.vibra-cookie-banner__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.vibra-cookie-banner__close:hover {
  background: rgba(255, 69, 0, 0.35);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  margin: 0.75rem 0 0.5rem;
}

/* --- Footer principal --- */
.site-footer {
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
  padding: 1.25rem clamp(1rem, 3vw, 2.25rem) calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(ellipse 120% 90% at 10% 0%, rgba(255, 92, 240, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 70% at 90% 20%, rgba(128, 0, 255, 0.28), transparent 50%),
    linear-gradient(165deg, #1a0828 0%, #12061c 45%, #0a0412 100%);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #8000ff, #c800c8, #ff5cf0, #ff9aeb) 1;
  color: rgba(255, 245, 255, 0.95);
  box-shadow: 0 -12px 40px rgba(255, 92, 240, 0.12);
}

.site-footer__inner {
  width: 100%;
  max-width: none;
  margin: 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 0.5rem clamp(1rem, 3.5vw, 2.75rem);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: start;
}

.site-footer__brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.35rem;
  align-items: center;
}

.site-footer__logo {
  display: block;
  grid-row: 1 / 3;
  grid-column: 1;
}

.site-footer__logo img {
  width: auto;
  height: 56px;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 92, 240, 0.4));
}

.site-footer__tagline {
  margin: 0;
  grid-column: 2;
  grid-row: 1;
  max-width: none;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 228, 255, 0.88);
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  grid-column: 2;
  grid-row: 2;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  line-height: 0;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(200, 0, 200, 0.35), rgba(255, 92, 240, 0.2));
  border: 1px solid rgba(255, 154, 235, 0.55);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-footer__social a svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.site-footer__social a:hover {
  background: linear-gradient(145deg, #8000ff, #ff5cf0);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255, 92, 240, 0.55);
}

.site-footer__heading {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ff9aeb, #ff5cf0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.site-footer__links a,
.site-footer__links .footer-nav-link,
.site-footer__links .footer-legal-link {
  display: inline-block;
  padding: 0;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 240, 255, 0.9);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__links a:hover,
.site-footer__links .footer-nav-link:hover,
.site-footer__links .footer-legal-link:hover {
  color: #fff;
  transform: translateX(3px);
}

.site-footer__links .footer-legal-link {
  color: var(--vibra-pink-soft);
}

/* Comunidad — tarjetas con icono */
.site-footer__community {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer__community-btn {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  row-gap: 0.05rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 154, 235, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-footer__community-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 154, 235, 0.55);
  box-shadow: 0 4px 16px rgba(128, 0, 255, 0.25);
}

.site-footer__community-btn--discord:hover {
  background: rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.55);
}

.site-footer__community-btn--x:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.site-footer__community-icon {
  grid-row: 1 / 3;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  line-height: 0;
  background: linear-gradient(145deg, rgba(128, 0, 255, 0.45), rgba(255, 92, 240, 0.25));
  border: 1px solid rgba(255, 154, 235, 0.4);
}

.site-footer__community-icon svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.site-footer__community-btn--discord .site-footer__community-icon {
  background: linear-gradient(145deg, rgba(88, 101, 242, 0.5), rgba(88, 101, 242, 0.2));
  border-color: rgba(88, 101, 242, 0.45);
}

.site-footer__community-label {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.site-footer__community-hint {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 220, 255, 0.65);
}

.site-footer__bottom {
  padding-top: 0.65rem;
  text-align: center;
}

.site-footer__copy {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  color: rgba(255, 240, 255, 0.92);
}

.site-footer__copy strong {
  color: #fff;
}

.site-footer__disclaimer {
  margin: 0;
  max-width: none;
  padding: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 220, 255, 0.68);
}

.site-footer__disclaimer a {
  color: var(--vibra-pink-soft);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__disclaimer a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
  }
}

@media (max-width: 520px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.85rem;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__col:nth-child(3),
  .site-footer__col:nth-child(4) {
    text-align: left;
  }

  .site-footer__links a,
  .site-footer__links .footer-nav-link,
  .site-footer__links .footer-legal-link {
    text-align: left;
  }
}

.footer-legal-link {
  background: none;
  border: none;
  color: var(--vibra-pink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  padding: 4px 6px;
  font-family: inherit;
}

.footer-legal-link:hover {
  color: #fff;
}

.footer-legal-sep {
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

/* Sección legal (oculta en nav principal) */
.legal-page {
  max-width: 920px;
  margin: 0 auto 3rem;
  padding: 0 12px 2rem;
}

.legal-hero {
  text-align: center;
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: 22px;
  background: var(--vibra-bg-glass);
  border: 1px solid rgba(255, 92, 240, 0.35);
  box-shadow: var(--vibra-shadow-purple);
}

.legal-hero-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vibra-pink-soft);
  margin-bottom: 0.5rem;
}

.legal-hero h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  background: linear-gradient(120deg, #fff 0%, var(--vibra-pink-soft) 50%, var(--vibra-pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-hero-lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 228, 255, 0.92);
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.25rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 154, 235, 0.4);
  background: rgba(128, 0, 255, 0.15);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
}

.legal-back-btn:hover {
  background: rgba(128, 0, 255, 0.35);
  transform: translateX(-2px);
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.legal-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 154, 235, 0.35);
  background: rgba(20, 10, 35, 0.6);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.legal-tab.is-active {
  background: linear-gradient(135deg, rgba(128, 0, 255, 0.55), rgba(255, 92, 240, 0.35));
  border-color: var(--vibra-pink);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 92, 240, 0.3);
}

.legal-panel {
  display: none;
  padding: 1.5rem 1.35rem 1.75rem;
  border-radius: 18px;
  background: rgba(10, 5, 20, 0.88);
  border: 1px solid rgba(128, 0, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.legal-panel.is-active {
  display: block;
}

.legal-panel h3 {
  margin: 1.35rem 0 0.65rem;
  font-size: 1.05rem;
  color: var(--vibra-pink-soft);
}

.legal-panel h3:first-child {
  margin-top: 0;
}

.legal-panel p,
.legal-panel li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 235, 255, 0.9);
}

.legal-panel ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-panel a {
  color: var(--vibra-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-cookie-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 92, 240, 0.25);
}

.legal-cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 520px;
}

.legal-cookie-table th,
.legal-cookie-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.legal-cookie-table th {
  background: rgba(128, 0, 255, 0.25);
  color: #fff;
  font-weight: 700;
}

.legal-cookie-table tr:last-child td {
  border-bottom: none;
}

.legal-callout {
  margin: 1rem 0;
  padding: 12px 14px;
  border-radius: 12px;
  border-left: 4px solid var(--vibra-pink);
  background: rgba(128, 0, 255, 0.18);
  font-size: 0.88rem;
  line-height: 1.55;
  color: #fff;
}

.legal-consent-actions {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

@media (max-width: 600px) {
  .vibra-cookie-banner__inner {
    padding-right: 28px;
  }

  .vibra-cookie-banner__actions {
    width: 100%;
  }

  .vibra-cookie-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
