/* ============================================
   Apostala Paraguay — Global styles
   Palette: DARK + NEON RED — deep black + electric red + ember spark
   Fonts: Syne (display retro geometric) + DM Sans (humanist sans body)
   ============================================ */

* {
  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 NEON (deep black with red tinge) ===== */
  --bg-dark: #0a0508;
  --bg-surface: #13090d;
  --bg-elevated: #1c0d12;
  --bg-line: #2e1419;

  /* ===== Surface alphas (header / mobile menu / footer) — translucent black ===== */
  --surface-bg: rgba(10, 5, 8, 0.78);
  --surface-bg-strong: rgba(10, 5, 8, 0.95);
  --surface-bg-deep: #050204;

  /* ===== Cinema-overlay text color (universal — dark theme already) ===== */
  --text-on-dark: #fff5f6;
  --text-on-dark-muted: rgba(255, 245, 246, 0.78);

  /* ===== Accent — primary (neon red) ===== */
  --accent: #ff0040;
  --accent-dark: #cc0033;
  --accent-bright: #ff3360;
  --accent-soft: rgba(255, 0, 64, 0.10);
  --accent-glow: rgba(255, 0, 64, 0.35);
  --accent-glow-strong: rgba(255, 0, 64, 0.55);
  --accent-glow-bright: rgba(255, 51, 96, 0.65);
  --accent-line: rgba(255, 0, 64, 0.14);
  --accent-line-soft: rgba(255, 0, 64, 0.22);
  --accent-line-mid: rgba(255, 0, 64, 0.32);
  --accent-border: rgba(255, 0, 64, 0.45);

  /* ===== Accent 2 — secondary (ember spark) ===== */
  --accent-2: #ff6b35;
  --accent-2-dark: #e54a18;
  --accent-2-bright: #ff8758;
  --accent-2-soft: rgba(255, 107, 53, 0.12);
  --accent-2-glow: rgba(255, 107, 53, 0.4);

  /* ===== Text ===== */
  --text: #fff5f6;
  --text-muted: #a0888c;
  --text-dim: #6b5358;

  /* ===== Radius ===== */
  --radius-sm: 0;
  --radius: 0;
  --radius-lg: 0;
  --radius-full: 999px;

  /* ===== Trapezoidal clip — slot-machine geometry ===== */
  --clip-trapezoid: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  --clip-trapezoid-mobile: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%);

  /* ===== Shadows — neon red glow ===== */
  --shadow-accent: 0 0 28px var(--accent-glow);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.65);
  --shadow-glow-soft: 0 0 24px rgba(255, 0, 64, 0.18);
  --shadow-neon: 0 0 12px var(--accent), 0 0 32px var(--accent-glow);

  /* ===== Gradients ===== */
  --gradient-hero:
    radial-gradient(ellipse at 75% 25%, rgba(255, 0, 64, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(255, 107, 53, 0.12) 0%, transparent 50%),
    linear-gradient(160deg, #0a0508 0%, #13090d 55%, #0a0508 100%);
  --gradient-accent: linear-gradient(135deg, #ff0040 0%, #cc0033 100%);
  --gradient-footer: linear-gradient(180deg, var(--bg-dark) 0%, var(--surface-bg-deep) 100%);
  --gradient-cinema-overlay:
    linear-gradient(160deg, #0a0508 0%, #1c0d12 55%, #0a0508 100%);

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

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.55;
  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 {
  display: block;
}

/* ============================================
   Display font — Syne (retro geometric)
   ============================================ */
.text-display {
  font-family: "Syne", "DM Sans", sans-serif;
  letter-spacing: -0.015em;
}

/* ============================================
   Text scale
   ============================================ */
.text-xxl {
  font-size: 4.7rem;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.text-xl {
  font-size: 3.36rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.text-l {
  font-size: 2.44rem;
  font-weight: 700;
  line-height: 1.18;
}
.text-ml {
  font-size: 1.95rem;
  font-weight: 600;
  line-height: 1.28;
}
.text-m {
  font-size: 1.52rem;
  font-weight: 500;
  line-height: 1.55;
}
.text-ms {
  font-size: 1.46rem;
  font-weight: 400;
  line-height: 1.6;
}
.text-s {
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.6;
}
.text-xs {
  font-size: 1.07rem;
  font-weight: 400;
  line-height: 1.55;
}
.text-xxs {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-accent  { color: var(--accent); text-shadow: 0 0 18px var(--accent-glow-strong); }
.text-ember   { color: var(--accent-2); text-shadow: 0 0 18px var(--accent-2-glow); }
.text-amber   { color: var(--accent-2); }
.text-muted   { color: var(--text-muted); }
.text-dim     { color: var(--text-dim); }

/* ============================================
   Buttons — trapezoidal clip (slot-machine geometry)
   ============================================ */
.primary_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.2rem 2.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: "Syne", inherit;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  clip-path: var(--clip-trapezoid);
  filter: drop-shadow(0 0 14px var(--accent-glow));
  transition:
    transform 0.2s ease,
    background 0.25s ease,
    filter 0.25s ease;
}

.primary_button:hover {
  background: var(--accent-bright);
  color: #fff;
  transform: translateY(2px);
  filter: drop-shadow(0 0 22px var(--accent-glow-strong));
}

.outline_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.2rem 2.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: "Syne", inherit;
  color: var(--accent);
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  clip-path: var(--clip-trapezoid);
  text-shadow: 0 0 12px var(--accent-glow);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease;
}

.outline_button:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(2px);
  text-shadow: none;
}

/* ===== Ember variants ===== */
.primary_button--ember  { background: var(--accent-2); color: var(--bg-dark); filter: drop-shadow(0 0 14px var(--accent-2-glow)); }
.primary_button--ember:hover { background: var(--accent-2-bright); color: var(--bg-dark); }
.outline_button--ember  { color: var(--accent-2); border-color: var(--accent-2); text-shadow: 0 0 12px var(--accent-2-glow); }
.outline_button--ember:hover { background: var(--accent-2); color: var(--bg-dark); }

/* ============================================
   Section tag — bracket marker, mono caps
   ============================================ */
.section_tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: "Syne", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section_tag::before {
  content: "//";
  color: var(--accent-2);
  font-weight: 800;
}

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

/* ============================================
   Check list — accent dot + text
   ============================================ */
.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.55rem;
  width: 1rem;
  height: 1rem;
  background: var(--accent);
  border-radius: 0;
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ============================================
   Tables — flat, accent header, hover
   ============================================ */
._table {
  width: 100%;
  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);
  border-bottom: 2px solid var(--accent);
}

._table > table > thead > tr > th {
  color: var(--accent);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  text-align: left;
  padding: 1.5rem 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--accent-glow);
}

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

._table > table > tbody > tr:nth-child(even) {
  background: rgba(28, 13, 18, 0.55);
}

._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;
}

._table > table > tbody > tr > td:first-child {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ============================================
   Inline section CTA row
   ============================================ */
.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.2rem;
    padding: 2rem 3rem;
    clip-path: var(--clip-trapezoid-mobile);
  }

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

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

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

  .check_list > li::before {
    width: 2.2rem;
    height: 2.2rem;
    top: 0.65rem;
  }

  ._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;
  }
}
