/* CSS VARIABLES */
:root {
  --primary-color: #6B0F1A;
  --secondary-color: #7D1220;
  --accent-color: #A06830;
  --background-color: #FDF5F5;
  --dark-color: #111111;
  --text-color: #333333;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.16);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  
  --main-font: 'DM Serif Display', serif;
  --alt-font: 'Noto Sans', sans-serif;
}

/* BASE RESET & TYPOGRAPHY */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--alt-font);
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #0C0C0E;
  color: #E8E0D0;
}

h1, h2, h3, h4 {
  font-family: var(--main-font);
  color: #E8E0D0;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 600;
}

p {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.7;
  color: rgba(232, 224, 208, 0.72);
}

/* LUXURY-DARK PRESET STYLING */
section {
  background: #0C0C0E;
  padding: 72px 16px;
  margin: 0;
}

@media (min-width: 1024px) {
  section {
    padding: 88px 24px;
  }
}

.card {
  background: #161618;
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 2px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.1);
}

h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--accent-color);
  margin: 12px auto 0;
}

.text-left h2::after {
  margin: 12px 0 0;
}

/* BUTTONS */
.btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--accent-color);
  color: #0C0C0E;
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(160, 104, 48, 0.4);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* HEADER & BURGER NAVIGATION */
.header {
  background: #0C0C0E;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1000;
}

.burger-btn .bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #E8E0D0;
  transition: all 0.3s ease;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #161618;
  padding: 24px;
  z-index: 999;
  border-bottom: 2px solid var(--accent-color);
}

.site-nav a {
  color: #E8E0D0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  display: block;
  padding: 8px 0;
}

.site-nav a:hover {
  color: var(--accent-color);
}

#menu-toggle:checked ~ .site-nav {
  display: block;
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ .burger-btn .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 768px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    background: transparent;
    padding: 0;
    border-bottom: none;
  }
  .site-nav ul {
    flex-direction: row;
  }
  .site-nav a {
    padding: 0;
  }
}

/* HERO (cinematic-bottom-left) */
.hero {
  position: relative;
  min-height: 77vh;
  background-image: url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: flex-end;
  padding: 48px 16px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 12, 14, 0.95) 0%, rgba(12, 12, 14, 0.4) 60%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 300;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

@media (min-width: 1024px) {
  .hero {
    padding: 88px 48px;
  }
}

/* CSS TABS */
.tab-label {
  border-bottom: 2px solid transparent;
  color: rgba(232, 224, 208, 0.6);
  transition: all 0.3s;
}

.tab-label:hover {
  color: #E8E0D0;
}

.tab-panel {
  display: none;
}

#tab-balance:checked ~ .tab-headers label[for="tab-balance"],
#tab-deficiencias:checked ~ .tab-headers label[for="tab-deficiencias"],
#tab-habitos:checked ~ .tab-headers label[for="tab-habitos"] {
  border-bottom-color: var(--accent-color);
  color: var(--accent-color);
}

#tab-balance:checked ~ .tab-panels #panel-balance,
#tab-deficiencias:checked ~ .tab-panels #panel-deficiencias,
#tab-habitos:checked ~ .tab-panels #panel-habitos {
  display: block;
}

/* QUIZ STYLING */
.quiz-label {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 2px;
}

.quiz-explanation {
  display: none;
}

#q1-a:checked ~ .q1-explanation-a,
#q1-b:checked ~ .q1-explanation-b,
#q2-a:checked ~ .q2-explanation-a,
#q2-b:checked ~ .q2-explanation-b {
  display: block;
}

#q1-a:checked + label,
#q1-b:checked + label,
#q2-a:checked + label,
#q2-b:checked + label {
  background: rgba(160, 104, 48, 0.1);
  border-color: var(--accent-color);
}

/* STEPS LINE CONNECTOR (Desktop) */
@media (min-width: 768px) {
  .steps-container::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(201, 162, 39, 0.15);
    z-index: 1;
  }
}

/* SCROLL REVEAL ANIMATION */
@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: reveal-up linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 25%;
}

/* IMAGES & TOUCH TARGETS */
img {
  max-width: 100%;
  height: auto;
}

input, textarea, button {
  min-height: 44px;
}

/* FOOTER LOGO FILTER */
footer img[alt="logo"] {
  filter: brightness(0) invert(1);
}

.bg-gray-100,
.bg-white,
.bg-yellow-100,
.bg-blue-100,
.bg-red-100,
.bg-green-100,
.bg-gray-100 p,
.bg-white p,
.bg-yellow-100 p,
.bg-blue-100 p,
.bg-red-100 p,
.bg-green-100 p {
  color: #111A13;
}