/* blaysplay.com — layout + visual system */
:root {
  --bg-deep: #0a0e1a;
  --bg-card: #12182a;
  --bg-card-hover: #161e34;
  --border-subtle: rgba(94, 234, 212, 0.12);
  --accent: #5eead4;
  --accent-dim: rgba(94, 234, 212, 0.35);
  --accent-gold: #fbbf24;
  --accent-gold-soft: rgba(251, 191, 36, 0.15);
  --text: #e8edf7;
  --text-muted: #9aa3b5;
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-lg: 20px;
  --radius-md: 12px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --container: min(1120px, calc(100% - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  padding-bottom: 5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #9cf5e8;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(320px, 52vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(94, 234, 212, 0.08), transparent 55%),
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.12), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.06), transparent 35%),
    linear-gradient(165deg, #0f172a 0%, #0a0e1a 45%, #070b14 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(251, 191, 36, 0.07), transparent 50%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  font-weight: 600;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.55);
}

/* Brand card — debajo del hero, sin superposición */
.brand-slot {
  display: flex;
  justify-content: center;
  padding: 1.25rem 1rem 0;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.brand-card {
  display: block;
  width: min(920px, 100%);
  background: linear-gradient(145deg, #151c30, #0f1424);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem 1.35rem;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

.brand-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-dim);
  box-shadow: var(--shadow-lg), 0 0 48px rgba(94, 234, 212, 0.12);
}

.brand-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.brand-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4f9ef;
  background: rgba(94, 234, 212, 0.12);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1rem;
}

.brand-card__badge-star {
  color: var(--accent-gold);
  font-size: 0.85rem;
  line-height: 1;
}

.brand-card__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto auto;
  gap: 1rem 1.25rem;
  align-items: center;
}

.brand-card__logo {
  width: auto;
  max-height: 44px;
  object-fit: contain;
  filter: brightness(1.08);
}

.brand-card__offer {
  min-width: 0;
}

.brand-card__pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a1f2e;
  background: var(--accent-gold);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.35rem;
}

.brand-card__offer-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.brand-card__score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.brand-card__stars {
  display: flex;
  gap: 2px;
}

.brand-card__stars img {
  width: 16px;
  height: 16px;
}

.brand-card__rating {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent-gold);
}

.brand-card__cta {
  justify-self: end;
}

.brand-card__cta-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #0f172a;
  background: linear-gradient(180deg, #fde68a, var(--accent-gold));
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-card:hover .brand-card__cta-inner {
  transform: scale(1.03);
  box-shadow: 0 10px 28px rgba(251, 191, 36, 0.45);
}

/* Main */
.main-content {
  padding: 3rem 0 4rem;
}

.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.content-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  margin: 0 0 1rem;
  color: #f1f5f9;
  line-height: 1.3;
}

.content-block p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.content-block p:last-child {
  margin-bottom: 0;
}

/* 18+ disclaimer before footer */
.age-disclaimer {
  padding: 2rem 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.6), rgba(10, 14, 26, 0.95));
  border-top: 1px solid var(--border-subtle);
}

.age-disclaimer__inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.age-disclaimer__icon-link {
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.age-disclaimer__icon-link img {
  display: block;
}

.age-disclaimer__title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.age-disclaimer__text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  background: #060912;
  border-top: 1px solid var(--border-subtle);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer__heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.site-footer__heading--spaced {
  margin-top: 1.25rem;
}

.site-footer__col p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.site-footer__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  padding: 1.5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__logos--secondary {
  border-top: none;
  padding-top: 0.5rem;
}

.site-footer__logo-link {
  display: flex;
  align-items: center;
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.site-footer__logo-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.site-footer__logo-link img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

.site-footer__legal {
  text-align: center;
  padding-top: 1.75rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.site-footer__nav a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
}

/* Reveal animation (JS toggles .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cookie banner */
@keyframes cookieEnter {
  from {
    opacity: 0;
    transform: translateY(110%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem;
  background: rgba(6, 9, 18, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
}

.cookie-banner:not([hidden]) {
  animation: cookieEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 52rem;
}

.cookie-banner__text a {
  color: var(--accent);
}

.cookie-banner__btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.65rem 1.35rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: #0f172a;
  background: linear-gradient(180deg, #5eead4, #2dd4bf);
  box-shadow: 0 4px 16px rgba(45, 212, 191, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cookie-banner__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45, 212, 191, 0.45);
}

.cookie-banner__btn:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Policy / legal inner pages */
.page-header {
  padding: 2rem 1rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, #0f172a, var(--bg-deep));
}

.page-header__inner {
  width: var(--container);
  margin: 0 auto;
}

.page-header__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

.page-header__brand:hover {
  color: var(--accent);
}

.legal-page {
  padding: 2rem 0 4rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1.5rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

/* Tablet */
@media (max-width: 900px) {
  .brand-card__main {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }

  .brand-card__logo {
    grid-column: 1;
    grid-row: 1;
  }

  .brand-card__offer {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .brand-card__score {
    grid-column: 1;
    grid-row: 3;
    align-items: flex-start;
  }

  .brand-card__cta {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
    align-self: center;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile: misma zona bajo el hero; ancho completo del área útil, altura compacta */
@media (max-width: 640px) {
  .hero {
    min-height: 260px;
    padding-bottom: 2rem;
  }

  .brand-slot {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 1rem 1rem 0;
    margin-top: 0;
  }

  .brand-card {
    width: 100%;
    max-height: 300px;
    padding: 0.65rem 0.85rem 0.75rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .brand-card__badge {
    font-size: 0.55rem;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.45rem;
    align-self: flex-start;
  }

  .brand-card__main {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 0.35rem 0.65rem;
    align-items: center;
    flex: 1;
    min-height: 0;
  }

  .brand-card__logo {
    grid-column: 1;
    grid-row: 1;
    max-height: 28px;
  }

  .brand-card__score {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
  }

  .brand-card__stars img {
    width: 12px;
    height: 12px;
  }

  .brand-card__rating {
    font-size: 1.35rem;
  }

  .brand-card__offer {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .brand-card__pill {
    font-size: 0.55rem;
    margin-bottom: 0.2rem;
  }

  .brand-card__offer-text {
    font-size: 0.78rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .brand-card__cta {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: stretch;
  }

  .brand-card__cta-inner {
    width: 100%;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    font-size: 0.72rem;
  }

  .age-disclaimer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .brand-card,
  .brand-card__cta-inner {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cookie-banner:not([hidden]) {
    animation: none;
  }
}
