/* ===================================================
   VICIO THEME
   Identitat: negre + vermell, escaquer, industrial
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────── */
:root {
  --vicio-red:    #E81C2E;
  --vicio-black:  #0A0A0A;
  --vicio-white:  #F5F0EB;
  --vicio-grey:   #1A1A1A;
  --vicio-grey2:  #2A2A2A;
  --vicio-muted:  #888;

  --bg:           var(--vicio-black);
  --fg:           var(--vicio-white);
  --primary:      var(--vicio-red);
  --muted:        var(--vicio-muted);

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Barlow', 'Arial', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius:       4px;
  --checker-size: 32px;
}

/* ── Base Override ─────────────────────────────── */
body[data-brand="vicio"] {
  background: var(--vicio-black);
  color: var(--vicio-white);
  font-family: var(--font-body);
}

body[data-brand="vicio"] h1,
body[data-brand="vicio"] h2,
body[data-brand="vicio"] h3,
body[data-brand="vicio"] .cover__title,
body[data-brand="vicio"] .slide-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ── Deck Header ───────────────────────────────── */
body[data-brand="vicio"] .deck__header {
  background: var(--vicio-black);
  border-bottom: 2px solid var(--vicio-red);
  padding: 12px 24px;
}

/* ── Vicio Logo (text-based, no image needed) ─── */
.vicio-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vicio-white);
}
.vicio-logo span.v-red {
  color: var(--vicio-red);
}

/* ── Checker Pattern ───────────────────────────── */
.checker {
  background-image:
    repeating-conic-gradient(
      var(--vicio-red) 0% 25%,
      transparent 0% 50%
    );
  background-size: var(--checker-size) var(--checker-size);
}
.checker-strip {
  height: 12px;
  background-image:
    repeating-conic-gradient(
      var(--vicio-red) 0% 25%,
      var(--vicio-black) 0% 50%
    );
  background-size: 12px 12px;
}
.checker-strip--lg {
  height: 28px;
  background-size: 28px 28px;
}

/* ── Slides ────────────────────────────────────── */
body[data-brand="vicio"] .slide {
  background: var(--vicio-black);
  color: var(--vicio-white);
  position: relative;
  overflow: hidden;
}

/* ── Cover Slide ───────────────────────────────── */
.vicio-cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding: 0 80px;
  position: relative;
  overflow: hidden;
}
.vicio-cover__eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vicio-red);
  margin-bottom: 20px;
}
.vicio-cover__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(72px, 10vw, 130px);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--vicio-white);
  margin: 0 0 24px;
}
.vicio-cover__title em {
  font-style: normal;
  color: var(--vicio-red);
  -webkit-text-stroke: 0px;
}
.vicio-cover__title .outlined {
  color: transparent;
  -webkit-text-stroke: 2px var(--vicio-white);
}
.vicio-cover__subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--vicio-muted);
  max-width: 520px;
  line-height: 1.5;
  margin-bottom: 40px;
}
/* Red side accent */
.vicio-cover::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--vicio-red);
}
/* Checker corner */
.vicio-cover__checker {
  position: absolute;
  right: 16px;
  bottom: 0;
  width: 240px;
  height: 240px;
  background-image:
    repeating-conic-gradient(
      rgba(232,28,46,0.25) 0% 25%,
      transparent 0% 50%
    );
  background-size: 24px 24px;
  opacity: 0.6;
}

/* ── Section Title Slide ───────────────────────── */
.vicio-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 60px 80px;
  position: relative;
  background: var(--vicio-grey);
  overflow: hidden;
}
.vicio-section__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 180px;
  line-height: 1;
  color: rgba(232,28,46,0.12);
  position: absolute;
  top: 20px;
  left: 60px;
}
.vicio-section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  text-transform: uppercase;
  color: var(--vicio-white);
  line-height: 1;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.vicio-section__title span {
  color: var(--vicio-red);
}
.vicio-section__bar {
  width: 60px;
  height: 4px;
  background: var(--vicio-red);
  margin-bottom: 16px;
}
.vicio-section__desc {
  font-size: 16px;
  color: var(--vicio-muted);
  max-width: 480px;
}

/* ── Content Slide Layout ──────────────────────── */
.vicio-content {
  padding: 48px 80px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.vicio-content__header {
  margin-bottom: 40px;
}
.vicio-content__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vicio-red);
  margin-bottom: 8px;
}
.vicio-content__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 56px);
  text-transform: uppercase;
  color: var(--vicio-white);
  line-height: 1;
}
.vicio-content__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--vicio-red);
  margin-top: 12px;
}
.vicio-content__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Vicio Cards ───────────────────────────────── */
.vicio-card {
  background: var(--vicio-grey);
  border: 1px solid var(--vicio-grey2);
  border-left: 4px solid var(--vicio-red);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.vicio-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vicio-red);
  margin-bottom: 6px;
}
.vicio-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--vicio-white);
  margin-bottom: 4px;
}
.vicio-card p {
  font-size: 14px;
  color: var(--vicio-muted);
  line-height: 1.5;
  margin: 0;
}

/* ── Vicio Stat ────────────────────────────────── */
.vicio-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.vicio-stat {
  background: var(--vicio-grey);
  border-top: 3px solid var(--vicio-red);
  padding: 24px 20px;
  text-align: center;
  border-radius: var(--radius);
}
.vicio-stat__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 4vw, 64px);
  color: var(--vicio-white);
  line-height: 1;
  margin-bottom: 6px;
}
.vicio-stat__num--red {
  color: var(--vicio-red);
}
.vicio-stat__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vicio-muted);
}
.vicio-stat__sub {
  font-size: 12px;
  color: var(--vicio-muted);
  margin-top: 4px;
}

/* ── Vicio Quote ───────────────────────────────── */
.vicio-quote {
  border-left: 4px solid var(--vicio-red);
  padding: 24px 32px;
  background: var(--vicio-grey);
  position: relative;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.vicio-quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--vicio-red);
  opacity: 0.2;
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
}
.vicio-quote__text {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--vicio-white);
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.vicio-quote__source {
  font-size: 13px;
  color: var(--vicio-muted);
  margin-top: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Pill / Tag ────────────────────────────────── */
.vicio-pill {
  display: inline-block;
  background: var(--vicio-red);
  color: var(--vicio-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
}
.vicio-pill--outline {
  background: transparent;
  border: 1.5px solid var(--vicio-red);
  color: var(--vicio-red);
}

/* ── Red CTA Block ─────────────────────────────── */
.vicio-cta {
  background: var(--vicio-red);
  color: var(--vicio-white);
  padding: 40px 56px;
  text-align: center;
  border-radius: var(--radius);
}
.vicio-cta__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 52px);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 12px;
}
.vicio-cta__sub {
  font-size: 15px;
  opacity: 0.85;
}

/* ── Two-col grid ──────────────────────────────── */
.vicio-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.vicio-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── List styled ───────────────────────────────── */
.vicio-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.vicio-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--vicio-grey2);
  font-size: 15px;
  color: var(--vicio-white);
  line-height: 1.4;
}
.vicio-list li:last-child { border-bottom: none; }
.vicio-list li::before {
  content: '▸';
  color: var(--vicio-red);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Image frame ───────────────────────────────── */
.vicio-img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.vicio-img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--vicio-red);
  z-index: 1;
  pointer-events: none;
  border-radius: var(--radius);
}
.vicio-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Closing slide ─────────────────────────────── */
.vicio-close {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.vicio-close__bg-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 280px;
  color: rgba(232,28,46,0.05);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.vicio-close__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 7vw, 96px);
  text-transform: uppercase;
  color: var(--vicio-white);
  line-height: 1;
  position: relative;
  z-index: 1;
}
.vicio-close__sub {
  font-size: 16px;
  color: var(--vicio-muted);
  margin-top: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ── Animations ────────────────────────────────── */
@keyframes vicio-slide-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vicio-animate {
  animation: vicio-slide-in 0.4s ease both;
}
.vicio-animate--d1 { animation-delay: 0.1s; }
.vicio-animate--d2 { animation-delay: 0.2s; }
.vicio-animate--d3 { animation-delay: 0.3s; }
.vicio-animate--d4 { animation-delay: 0.4s; }
