/* Aguero Casino — aguerocasinoplayar.com — palette seed: aguerocasino */

:root {
  --bg: hsl(197 24% 7%);
  --bg-elevated: hsl(197 22% 11%);
  --border: hsla(197 22% 90% / 0.12811751931905746);
  --text: hsl(197 15% 96%);
  --muted: hsl(197 23% 60%);
  --accent: hsl(238 71% 59%);
  --accent-strong: hsl(238 77% 47%);
  --gold: hsl(357 79% 51%);
  --danger: hsl(2 83% 54%);
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(74, 158, 255, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(117, 170, 219, 0.08), transparent);
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 100;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 480px) {
  .header-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.brand {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand span {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.nav-list a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text);
}

.nav-list a.btn-primary {
  color: #fff;
}

.nav-list a.btn-primary:hover {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), #2d7dd2);
  color: #fff;
  box-shadow: 0 4px 24px rgba(74, 158, 255, 0.35);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 6px 28px rgba(74, 158, 255, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem 1rem 2.5rem;
}

@media (min-width: 480px) {
  .hero {
    padding: 3rem 1.25rem 2.75rem;
  }
}

@media (min-width: 720px) {
  .hero {
    padding: 3.5rem 1.25rem 3rem;
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 1.75rem;
}

.page-hero {
  padding-bottom: 2rem;
}

.page-hero h1 {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-strong);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

.prose {
  max-width: 68ch;
}

.prose > p:first-of-type {
  margin-top: 0;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 0.98rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose .note {
  font-size: 0.9rem;
  padding: 1rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  font: inherit;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid rgba(74, 158, 255, 0.45);
  outline-offset: 2px;
}

.form-row-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-row-check input {
  width: auto;
  margin: 0.25rem 0 0;
}

.faq-list details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.15rem;
  margin-bottom: 0.65rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style-position: outside;
}

.faq-list details[open] summary {
  margin-bottom: 0.5rem;
}

.faq-list details p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Interlinking + fuentes oficiales (GENERATION-SPEC) */
.cross-links {
  margin: 2.5rem 0 0;
  padding: 1.15rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cross-links h2 {
  font-size: 1rem;
  margin: 0 0 0.65rem;
}

.cross-links ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.cross-links li {
  margin-bottom: 0.35rem;
}

.gov-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1rem 0;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.gov-strip-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.gov-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.gov-strip a {
  color: var(--accent);
  text-decoration: none;
}

.gov-strip a:hover {
  text-decoration: underline;
  color: var(--accent-strong);
}

@media (min-width: 480px) {
  .gov-strip {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

@media (min-width: 480px) {
  main {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 4rem;
  }
}

section {
  margin-bottom: 3.5rem;
}

@media (max-width: 719px) {
  section {
    margin-bottom: 2.5rem;
  }

  main > section:last-of-type {
    margin-bottom: 1.25rem;
  }
}

section h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
}

@media (min-width: 480px) {
  .card {
    padding: 1.35rem 1.5rem;
  }
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: rgba(74, 158, 255, 0.15);
  color: var(--accent);
  border: 1px solid rgba(74, 158, 255, 0.25);
}

.disclaimer {
  border-left: 3px solid var(--danger);
  padding: 1rem 1.25rem;
  background: rgba(231, 76, 60, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.disclaimer strong {
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 1rem 2rem;
  margin-top: 2rem;
}

@media (min-width: 480px) {
  .site-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-inner p {
  margin: 0 0 0.75rem;
}

/* Mobile footer: brand full width; Cuenta | Pagos; Legal full width with links in 2 text columns */
.footer-extended {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.65rem;
  align-items: stretch;
}

.footer-extended > div:first-child {
  grid-column: 1 / -1;
}

.footer-extended > div:last-child {
  grid-column: 1 / -1;
}

@media (max-width: 959.98px) {
  .site-footer {
    margin-top: 1.25rem;
    padding-top: 1.5rem;
    padding-bottom: 1.75rem;
  }

  .footer-extended > div:first-child {
    padding: 1rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.15rem;
  }

  .footer-extended > div:nth-child(2),
  .footer-extended > div:nth-child(3) {
    padding: 0.85rem 0.7rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }

  .footer-extended > div:nth-child(2) .footer-heading,
  .footer-extended > div:nth-child(3) .footer-heading {
    margin-bottom: 0.45rem;
  }

  .footer-extended > div:nth-child(2) .footer-links.footer-links-col,
  .footer-extended > div:nth-child(3) .footer-links.footer-links-col {
    gap: 0.35rem;
  }

  .footer-extended > div:nth-child(2) .footer-links a,
  .footer-extended > div:nth-child(3) .footer-links a {
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--accent);
    text-decoration: none;
  }

  .footer-extended > div:nth-child(2) .footer-links a:hover,
  .footer-extended > div:nth-child(3) .footer-links a:hover {
    color: var(--accent-strong);
    text-decoration: underline;
  }

  .footer-extended > div:last-child {
    padding: 0.9rem 0.85rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 0.15rem;
  }

  /* Legal links: fill width with two balanced columns (no empty right band) */
  .footer-extended > div:last-child .footer-links.footer-links-col {
    display: block;
    columns: 2;
    column-gap: 1rem;
    column-fill: balance;
  }

  .footer-extended > div:last-child .footer-links.footer-links-col a {
    display: block;
    width: 100%;
    break-inside: avoid;
    padding: 0.22rem 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--accent);
    text-decoration: none;
  }

  .footer-extended > div:last-child .footer-links.footer-links-col a:hover {
    color: var(--accent-strong);
    text-decoration: underline;
  }
}

@media (min-width: 960px) {
  .footer-extended {
    grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
    align-items: start;
  }

  .footer-extended > div:first-child,
  .footer-extended > div:last-child {
    grid-column: auto;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    margin: 0;
  }

  .footer-extended > div:nth-child(2),
  .footer-extended > div:nth-child(3) {
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
  }

  .footer-extended > div:last-child .footer-links.footer-links-col {
    display: flex;
    flex-direction: column;
    columns: unset;
    column-gap: unset;
  }

  .footer-extended > div:last-child .footer-links.footer-links-col a {
    display: block;
    width: auto;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    color: var(--accent-strong);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }

  .footer-extended > div:last-child .footer-links.footer-links-col a:hover {
    color: var(--accent);
  }
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--text);
}

.footer-tagline {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 42ch;
}

@media (min-width: 960px) {
  .footer-tagline {
    max-width: 28ch;
  }
}

.footer-heading {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.footer-links-col {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 719px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    right: 1rem;
    top: 100%;
    margin-top: 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    min-width: 200px;
    display: none;
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
  }
}
