/* ============================================
   365paraguaybet-playonline.com — Global styles
   Palette: Dark Forest + Tarnished Gold + Casino Gold
   Fonts: Cinzel (latin monumental serif, headings) + Inter (body + wordmark)
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: calc(0.433vw + 0.433vh + 0.3175vmin);
  scroll-behavior: smooth;
}

:root {
  /* ===== Background layers — Dark Forest ===== */
  --bg-dark: #0a1410;
  --bg-surface: #0f1d18;
  --bg-elevated: #16291f;
  --bg-line: #1f3a2e;

  /* ===== Surface alphas (header / mobile / footer accents) ===== */
  --surface-bg: rgba(10, 20, 16, 0.78);
  --surface-bg-strong: rgba(10, 20, 16, 0.96);
  --surface-bg-deep: #05100a;

  /* ===== Accent — Bet365 brand green ===== */
  --accent: #786e4d;
  --accent-dark: #5d5640;
  --accent-bright: #a09271;
  --accent-soft: rgba(120, 110, 77, 0.10);
  --accent-glow: rgba(120, 110, 77, 0.30);
  --accent-glow-strong: rgba(120, 110, 77, 0.42);
  --accent-glow-bright: rgba(160, 146, 113, 0.55);
  --accent-line: rgba(120, 110, 77, 0.08);
  --accent-line-soft: rgba(120, 110, 77, 0.15);
  --accent-line-mid: rgba(120, 110, 77, 0.22);
  --accent-border: rgba(120, 110, 77, 0.34);

  /* ===== Accent 2 — Casino gold ===== */
  --accent-2: #f5c518;
  --accent-2-dark: #d4a30a;
  --accent-2-bright: #ffd700;
  --accent-2-soft: rgba(245, 197, 24, 0.12);
  --accent-2-glow: rgba(245, 197, 24, 0.32);

  /* ===== Text — readable on dark forest base ===== */
  --text: #efe9d8;
  --text-muted: #a89e83;
  --text-dim: #6e6753;

  /* ===== Radius ===== */
  --radius-sm: 0.8rem;
  --radius: 1.4rem;
  --radius-lg: 2.4rem;
  --radius-pill: 999px;
  --radius-full: 999px;

  /* ===== Shadows ===== */
  --shadow-accent: 0 0 40px var(--accent-glow);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow-soft: 0 0 24px rgba(120, 110, 77, 0.18);
  --shadow-gold: 0 0 32px var(--accent-2-glow);

  /* ===== Gradients ===== */
  --gradient-hero:
    radial-gradient(ellipse at 80% 25%, rgba(120, 110, 77, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 12% 80%, rgba(245, 197, 24, 0.10) 0%, transparent 50%),
    linear-gradient(160deg, #0a1410 0%, #0f1d18 55%, #0a1410 100%);
  --gradient-accent: linear-gradient(135deg, #786e4d 0%, #5d5640 100%);
  --gradient-gold: linear-gradient(135deg, #f5c518 0%, #d4a30a 100%);
  --gradient-footer: linear-gradient(180deg, var(--bg-dark) 0%, var(--surface-bg-deep) 100%);

  /* ===== Spacing ===== */
  --main-padding: 50px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

section {
  padding: 8rem var(--main-padding);
  position: relative;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   Text scale — Archivo Black headings + Inter body
   ============================================ */
.text-xxl {
  font-family: "Cinzel", "Inter", serif;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.10;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.text-xl {
  font-family: "Cinzel", "Inter", serif;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.text-l {
  font-family: "Cinzel", "Inter", serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.22;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.text-ml {
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.25;
}
.text-m {
  font-size: 1.52rem;
  font-weight: 500;
  line-height: 1.55;
}
.text-ms {
  font-size: 1.36rem;
  font-weight: 400;
  line-height: 1.6;
}
.text-s {
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.62;
}
.text-xs {
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.55;
}
.text-xxs {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-accent {
  color: var(--accent);
}
.text-gold {
  color: var(--accent-2);
}
.text-muted {
  color: var(--text-muted);
}
.text-dim {
  color: var(--text-dim);
}

/* ============================================
   Buttons — Pill (capsule) + heavy padding
   Category shift: rounded → pill (vs cuba/guatemala),
                    pill vs clip-path octagonal (vs bolivia),
                    pill vs sharp/push (vs chile)
   ============================================ */
.primary_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.35rem 2.8rem;
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bg-dark);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.primary_button:hover {
  background: var(--accent-bright);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.outline_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.35rem 2.8rem;
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.outline_button:hover {
  background: var(--accent-soft);
  color: var(--accent-bright);
  transform: translateY(-2px);
}

/* Accent-2 variants (gold) — for casino / live blocks */
.primary_button--accent2  { background: var(--accent-2); color: var(--bg-dark); }
.primary_button--accent2:hover {
  background: var(--accent-2-bright);
  box-shadow: var(--shadow-gold);
}
.outline_button--accent2  { color: var(--accent-2); border-color: var(--accent-2); }
.outline_button--accent2:hover {
  background: var(--accent-2-soft);
  color: var(--accent-2-bright);
}

/* ============================================
   Section tag — gold dot eyebrow (legacy, kept for compat)
   ============================================ */
.section_tag {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section_tag::before {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--accent);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 10px var(--accent);
}

/* ============================================
   Chapter marker — Capítulo I, II, III... (monumental)
   Categorical shift: not eyebrow tag — chapter heading
   ============================================ */
.chapter_marker {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
}

.chapter_marker_num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Cinzel", serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding: 0.55rem 1.4rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius-pill);
  background: rgba(15, 29, 24, 0.5);
  box-shadow: 0 0 18px var(--accent-glow);
  text-transform: uppercase;
}

.chapter_marker_line {
  width: 3.6rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.chapter_marker_label {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ============================================
   Ornament divider — Cinzel monumental break
   Placed between sections as a book-chapter pause
   ============================================ */
.ornament_divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 3rem var(--main-padding);
  background: var(--bg-dark);
}

.ornament_divider_line {
  flex: 0 0 8rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.ornament_divider_symbol {
  font-family: "Cinzel", serif;
  font-size: 1.4rem;
  color: var(--accent-2);
  letter-spacing: 0.6em;
  text-shadow: 0 0 12px var(--accent-2-glow);
}

/* ============================================
   Corner ornaments — latin/colonial frame
   Applied to .corner_frame wrappers (Hero / Mega-CTA)
   ============================================ */
.corner_frame {
  position: relative;
}

.corner_frame::before,
.corner_frame::after,
.corner_frame > .corner_tl,
.corner_frame > .corner_br {
  content: "";
  position: absolute;
  width: 3.4rem;
  height: 3.4rem;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  z-index: 2;
  pointer-events: none;
}

.corner_frame::before {
  top: 2rem;
  left: 2rem;
  border-top-width: 2px;
  border-left-width: 2px;
}

.corner_frame::after {
  bottom: 2rem;
  right: 2rem;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.corner_frame > .corner_tr {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 3.4rem;
  height: 3.4rem;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  z-index: 2;
  pointer-events: none;
}

.corner_frame > .corner_bl {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  width: 3.4rem;
  height: 3.4rem;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  z-index: 2;
  pointer-events: none;
}

/* ============================================
   Layout helper
   ============================================ */
.base_position {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* ============================================
   Check list — accent tick
   ============================================ */
.check_list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.check_list > li {
  position: relative;
  padding-left: 2.4rem;
  color: var(--text-muted);
  font-size: 1.22rem;
  line-height: 1.55;
}

.check_list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
}

.check_list > li::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.7rem;
  width: 0.55rem;
  height: 0.28rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ============================================
   Tables
   ============================================ */
._table {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--bg-line);
  box-shadow: var(--shadow-card);
}

._table > table {
  width: 100%;
  border-collapse: collapse;
}

._table > table > thead > tr {
  background: var(--bg-elevated);
}

._table > table > thead > tr > th {
  font-family: "Cinzel", "Inter", serif;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
  padding: 1.5rem 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  border-bottom: 2px solid var(--accent);
}

._table > table > tbody > tr {
  transition: background 0.25s ease;
}

._table > table > tbody > tr:nth-child(even) {
  background: rgba(22, 41, 31, 0.4);
}

._table > table > tbody > tr:hover {
  background: var(--accent-soft);
}

._table > table > tbody > tr > td {
  padding: 1.4rem 1.8rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--bg-line);
  vertical-align: top;
}

._table > table > tbody > tr:last-child > td {
  border-bottom: none;
}

/* ============================================
   Inline section CTA row (universal)
   ============================================ */
.section_cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2.5rem;
}

.section_cta > .cta_note {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-left: 0.6rem;
  letter-spacing: 0.02em;
}

.section_cta > .cta_note > span {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================
   Selection
   ============================================ */
::selection {
  background: var(--accent);
  color: var(--bg-dark);
}

/* ============================================
   Mobile — ≤1024px
   ============================================ */
@media (max-width: 1024px) {
  html {
    font-size: calc(0.333vw + 0.333vh + 0.2175vmin);
  }

  :root {
    --main-padding: 20px;
  }

  section {
    padding: 10rem var(--main-padding);
  }

  .text-xxl { font-size: 7.2rem; }
  .text-xl  { font-size: 5.4rem; }
  .text-l   { font-size: 4.2rem; }
  .text-ml  { font-size: 3.6rem; }
  .text-m   { font-size: 2.8rem; }
  .text-ms  { font-size: 2.6rem; }
  .text-s   { font-size: 2.4rem; }
  .text-xs  { font-size: 2.2rem; }
  .text-xxs { font-size: 2rem; }

  .primary_button,
  .outline_button {
    font-size: 3.4rem;
    padding: 2.2rem 3.2rem;
  }

  .primary_button {
    width: 90%;
    height: 16rem;
  }

  .section_tag {
    font-size: 2.2rem;
    letter-spacing: 0.26em;
  }

  .section_tag::before {
    width: 1.4rem;
    height: 1.4rem;
  }

  .check_list > li {
    padding-left: 4.4rem;
    font-size: 2.4rem;
  }

  .check_list > li::before {
    width: 2.8rem;
    height: 2.8rem;
    top: 0.4rem;
  }

  .check_list > li::after {
    width: 1rem;
    height: 0.5rem;
    left: 0.9rem;
    top: 1.15rem;
    border-left-width: 3px;
    border-bottom-width: 3px;
  }

  ._table > table > thead > tr > th,
  ._table > table > tbody > tr > td {
    padding: 2rem 1.8rem;
    font-size: 2.2rem;
  }

  .section_cta {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .section_cta > .cta_note {
    font-size: 2rem;
    text-align: center;
    margin-left: 0;
    margin-top: 0.5rem;
  }
}
