/* ============================================================
   ABC ASESOR DE TRATAMIENTOS — CSS Principal
   Estilo: Authentic Beauty Concept Official Brand Identity
   Paleta: Blanco #FFFFFF, Negro #000000, Grises #F5F5F5 / #E0E0E0
   Tipografía: Neue Haas Grotesk / Helvetica Neue / Arial (sans-serif bold)
   Filosofía: Minimalismo radical, tipografía como elemento visual
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #FFFFFF;
  color: #000000;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- VARIABLES ---------- */
:root {
  --black: #000000;
  --white: #FFFFFF;
  --grey-100: #F5F5F5;
  --grey-200: #E8E8E8;
  --grey-300: #D0D0D0;
  --grey-500: #888888;
  --grey-700: #444444;

  /* Colores por gama */
  --glow-color: #F2C8C8;       /* Rosa pálido — Cabello coloreado */
  --hydrate-color: #C5D5E8;    /* Azul grisáceo — Cabello seco */
  --amplify-color: #C8DCC8;    /* Verde menta — Cabello fino */
  --replenish-color: #DDD0B8;  /* Tostado — Cabello dañado */
  --allhair-color: #E8E8E8;    /* Gris claro — Todos los tipos */
  --styling-color: #2C2C2C;    /* Negro — Styling */
  --beyond-color: #E8D8C8;     /* Melocotón — Beyond Hair */

  --transition: 0.25s ease;
  --max-width: 1200px;
}

/* ---------- HEADER / NAVBAR ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  justify-content: space-between;
}

.header__logo {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--black);
}

.header__logo span {
  display: block;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity var(--transition);
}

.header__nav a:hover {
  opacity: 0.5;
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
  margin-top: 64px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-main.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.hero__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.8;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 700px;
}

.hero__subtitle {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  max-width: 440px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero__badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 6px 14px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  padding: 16px 32px;
}

.btn--primary {
  background: var(--black);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--grey-700);
}

.btn--white {
  background: var(--white);
  color: var(--black);
}

.btn--white:hover {
  background: var(--grey-200);
}

.btn--outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}

.btn--outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--black);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* ---------- PROGRESS BAR ---------- */
.progress-bar {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  height: 3px;
  background: var(--grey-200);
}

.progress-bar__fill {
  height: 100%;
  background: var(--black);
  transition: width 0.4s ease;
}

/* ---------- QUIZ SECTION ---------- */
.quiz-section {
  display: none;
  min-height: 100vh;
  padding-top: 67px;
}

.quiz-section.active {
  display: block;
}

.quiz-step {
  display: none;
  min-height: calc(100vh - 67px);
}

.quiz-step.active {
  display: flex;
  flex-direction: column;
}

/* Step layout: left image + right content */
.quiz-step__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 67px);
}

.quiz-step__image {
  position: relative;
  overflow: hidden;
}

.quiz-step__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-step__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 64px;
  background: var(--white);
}

.quiz-step__counter {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 16px;
}

.quiz-step__question {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.quiz-step__hint {
  font-size: 13px;
  color: var(--grey-500);
  margin-bottom: 48px;
  line-height: 1.5;
}

/* Options grid */
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 48px;
}

.quiz-option {
  position: relative;
  cursor: pointer;
  border: 1.5px solid var(--grey-200);
  padding: 20px 20px 20px 48px;
  transition: all var(--transition);
  background: var(--white);
}

.quiz-option:hover {
  border-color: var(--black);
}

.quiz-option.selected {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.quiz-option__check {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz-option.selected .quiz-option__check::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--white);
}

.quiz-option__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.quiz-option__desc {
  font-size: 11px;
  color: var(--grey-500);
  line-height: 1.4;
}

.quiz-option.selected .quiz-option__desc {
  color: rgba(255,255,255,0.7);
}

/* Navigation buttons */
.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-nav__back {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-500);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-nav__back:hover {
  color: var(--black);
}

.quiz-nav__back svg {
  width: 14px;
  height: 14px;
}

/* ---------- RESULTS SECTION ---------- */
.results-section {
  display: none;
  padding-top: 64px;
}

.results-section.active {
  display: block;
}

.results-header {
  position: relative;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.results-header__bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/results-header.jpg');
  background-size: cover;
  background-position: center top;
}

.results-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.results-header__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px 48px;
  width: 100%;
}

.results-header__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}

.results-header__title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin-bottom: 16px;
}

.results-header__summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.results-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255,255,255,0.2);
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.4);
}

/* Treatment block */
.results-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 40px;
}

.results-treatment {
  margin-bottom: 80px;
}

.results-treatment__header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--black);
}

.results-treatment__number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.results-treatment__name {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.results-treatment__gama {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-left: auto;
}

.results-treatment__desc {
  font-size: 14px;
  color: var(--grey-700);
  margin: 20px 0 32px;
  max-width: 640px;
  line-height: 1.7;
}

/* Product cards grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--grey-200);
  border: 1px solid var(--grey-200);
}

.product-card {
  background: var(--white);
  padding: 32px 24px;
  transition: background var(--transition);
  cursor: default;
}

.product-card:hover {
  background: var(--grey-100);
}

.product-card__gama-dot {
  width: 28px;
  height: 4px;
  margin-bottom: 24px;
}

.product-card__name {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.product-card__size {
  font-size: 11px;
  color: var(--grey-500);
  margin-bottom: 10px;
  font-weight: 400;
}

.product-card__desc {
  font-size: 12px;
  color: var(--grey-700);
  line-height: 1.5;
}

/* Ritual section */
.ritual-section {
  background: var(--grey-100);
  padding: 64px 40px;
  margin-top: 0;
}

.ritual-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.ritual-section__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 12px;
}

.ritual-section__title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
}

.ritual-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
}

.ritual-step {
  display: flex;
  flex-direction: column;
}

.ritual-step__num {
  font-size: 48px;
  font-weight: 900;
  color: var(--grey-200);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.ritual-step__name {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.ritual-step__product {
  font-size: 12px;
  color: var(--grey-700);
  line-height: 1.5;
}

/* CTA restart */
.results-cta {
  background: var(--black);
  padding: 80px 40px;
  text-align: center;
}

.results-cta__title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-500);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--black);
}

.footer__copy {
  font-size: 10px;
  color: var(--grey-500);
  letter-spacing: 0.05em;
}

/* ---------- GAMA COLOR UTILITIES ---------- */
.gama-glow       { background-color: var(--glow-color); }
.gama-hydrate    { background-color: var(--hydrate-color); }
.gama-amplify    { background-color: var(--amplify-color); }
.gama-replenish  { background-color: var(--replenish-color); }
.gama-allhair    { background-color: var(--allhair-color); }
.gama-styling    { background-color: var(--styling-color); }
.gama-beyond     { background-color: var(--beyond-color); }

.tag-glow       { background: var(--glow-color); color: var(--black); }
.tag-hydrate    { background: var(--hydrate-color); color: var(--black); }
.tag-amplify    { background: var(--amplify-color); color: var(--black); }
.tag-replenish  { background: var(--replenish-color); color: var(--black); }
.tag-allhair    { background: var(--allhair-color); color: var(--black); }
.tag-styling    { background: var(--styling-color); color: var(--white); }
.tag-beyond     { background: var(--beyond-color); color: var(--black); }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-fade {
  animation: fadeIn 0.4s ease forwards;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .header {
    padding: 0 20px;
  }

  .header__nav {
    display: none;
  }

  .hero__content {
    padding: 0 20px;
  }

  .hero__title {
    font-size: clamp(32px, 8vw, 56px);
  }

  .quiz-step__inner {
    grid-template-columns: 1fr;
  }

  .quiz-step__image {
    height: 240px;
  }

  .quiz-step__content {
    padding: 40px 24px;
  }

  .quiz-options {
    grid-template-columns: 1fr;
  }

  .results-body {
    padding: 40px 20px;
  }

  .ritual-section {
    padding: 40px 20px;
  }

  .results-cta {
    padding: 60px 20px;
  }

  .footer {
    padding: 32px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .results-header__content {
    padding: 0 20px 40px;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero__badges {
    display: none;
  }

  .ritual-steps {
    grid-template-columns: 1fr;
  }
}
