/* =========================================================
   AuraZenik · Quiz Funnel · styles.css
   Nomenclatura unificada: .az-header, .az-logo, .az-nav,
   .az-header-btn, .quiz-layout, .quiz-card, .question-card,
   .result-card.
   ========================================================= */

:root{
  --blue:       #09486c;
  --blue-dark:  #22313F;
  --blue-soft:  #EEF3FF;
  --coral:      #FE5858;
  --mint:       #EAF8F4;
  --white:      #FFFFFF;
  --text:       #172033;
  --text-2:     #667085;
  --border:     #E6EAF0;
  --shadow:     0 10px 30px rgba(34,49,63,.08);
  --shadow-lg:  0 20px 50px rgba(34,49,63,.14);
  --radius:     18px;
  --radius-sm:  12px;
  --radius-lg:  26px;
  --trans:      220ms cubic-bezier(.2,.7,.2,1);
  --max:        1180px;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}
img{ max-width:100%; display:block; }
a{ color: var(--blue); text-decoration:none; }
a:hover{ opacity:.85; }
button{ font-family: inherit; cursor:pointer; }

h1,h2,h3,h4{ color: var(--text); margin:0 0 .5em; font-weight:700; letter-spacing:-0.01em; }
h1{ font-size: clamp(2rem, 5vw, 2.8rem); line-height:1.1; }
h2{ font-size: clamp(1.4rem, 3.2vw, 2rem); line-height:1.2; }
h3{ font-size: 1.2rem; }
p{ color: var(--text); margin:0 0 1em; }
.muted{ color: var(--text-2); }

.container{
  width:100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   HEADER (.az-header / .az-logo / .az-nav)
   Compacto, no sticky.
   ========================================================= */
.az-header{
  background: var(--blue);
  min-height: 72px;
  padding: 10px max(20px, calc((100vw - 1180px) / 2));
  display:flex; align-items:center;
}
.az-header-inner{
  width:100%; max-width: var(--max); margin: 0 auto;
  display:flex; align-items:center; justify-content:space-between; gap: 16px;
}
.az-logo{
  display:inline-flex;
  align-items:center;
  width: 260px;
  min-width: 260px;
  height: 68px;
}

.az-logo img{
  width: 260px;
  max-width: 100%;
  max-height: 68px;
  height: auto;
  object-fit: contain;
}
.az-nav{ display:flex; gap: 18px; align-items:center; }
.az-header-btn{
  color: rgba(255,255,255,.9);
  font-size: .92rem; font-weight: 500;
  padding: 8px 12px; border-radius: 999px;
  transition: background var(--trans), color var(--trans);
}
.az-header-btn:hover{ background: rgba(255,255,255,.08); color:#fff; opacity:1; }

@media (max-width: 640px){
  .az-header{
    min-height: 64px;
    padding: 8px 16px;
  }

  .az-logo{
    width: 190px;
    min-width: 190px;
    height: 48px;
  }

  .az-logo img{
    width: 190px;
    max-height: 48px;
  }
}

/* =========================================================
   HERO (home)
   ========================================================= */
.hero{
  padding: 60px 0 96px;
  background: linear-gradient(180deg, var(--blue) 0%, #34495e 100%);
  color: #fff;
  text-align:center;
}
.hero h1{ color:#fff; max-width: 800px; margin: 0 auto .6em; }
.hero p.lead{
  color: rgba(255,255,255,.85);
  max-width: 640px; margin: 0 auto 28px;
  font-size: 1.08rem;
}
.hero-ctas{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans), color var(--trans);
  text-align:center;
  line-height:1;
  min-height: 50px;
  text-decoration:none;
}
.btn:focus-visible{ outline: 3px solid #ffd9d9; outline-offset:2px; }
.btn-primary{ background: var(--coral); color:#fff; box-shadow: 0 8px 18px rgba(254,88,88,.35); }
.btn-primary:hover{ transform: translateY(-1px); box-shadow:0 10px 22px rgba(254,88,88,.45); }
.btn-secondary{ background:#fff; color: var(--blue); border:1px solid var(--border); }
.btn-secondary:hover{ background: var(--blue-soft); }
.btn-ghost{ background: transparent; color: var(--text); border:1px solid var(--border); }
.btn-ghost:hover{ background: var(--blue-soft); }
.btn-wa{ background:#25D366; color:#fff; box-shadow: 0 8px 18px rgba(37,211,102,.32); }
.btn-wa:hover{ transform: translateY(-1px); }
.btn-link{ background:none; color: var(--text-2); padding: 8px 14px; font-weight:500; min-height: auto;}
.btn-link:hover{ color: var(--blue); }

/* =========================================================
   SECTIONS / HOME
   ========================================================= */
.section{ padding: 56px 0; }
.section-tight{ padding: 36px 0; }
.section h2{ text-align:center; }
.section .section-sub{ text-align:center; color: var(--text-2); max-width:600px; margin: 0 auto 32px; }

/* Route selector card */
.route-quiz{
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  margin-top: -56px;
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 2;
}
.route-quiz h2{ margin-bottom: 8px; text-align:center; }
.route-quiz .section-sub{ margin-bottom: 28px; }
.route-list{
  display:grid; gap: 14px;
  grid-template-columns: 1fr;
  max-width: 680px; margin: 0 auto;
}
.route-card{
  display:flex; gap:16px; align-items:flex-start;
  padding: 20px 22px;
  background:#fff; border:1.5px solid var(--border);
  border-radius: var(--radius);
  text-align:left;
  transition: all var(--trans);
  color: var(--text); width:100%; cursor:pointer;
  font-family: inherit;
}
.route-card:hover{
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.route-card .route-num{
  flex:none;
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--blue); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:.95rem;
}
.route-card .route-body{ flex:1; }
.route-card .route-body strong{
  display:block; font-size: 1.05rem; margin-bottom: 4px; color: var(--text);
}
.route-card .route-body span{ color: var(--text-2); font-size: .92rem; }
.route-card .route-arrow{
  margin-left: auto; color: var(--coral); font-size: 1.4rem; align-self:center; flex:none;
}

/* How it works */
.steps{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 900px; margin: 0 auto;
}
.step{ text-align:center; padding: 20px 14px; }
.step .step-num{
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--mint); color: var(--blue);
  display:flex; align-items:center; justify-content:center;
  font-weight:700; margin: 0 auto 14px; font-size: 1.1rem;
}
.step strong{ display:block; margin-bottom: 6px; }
.step p{ color: var(--text-2); font-size:.95rem; margin:0; }
@media (max-width: 720px){ .steps{ grid-template-columns: 1fr; } }

/* Footer */
.site-footer{
  background: var(--blue);
  color: rgba(255,255,255,.75);
  padding: 36px 0 24px; margin-top: 56px; text-align:center;
}
.site-footer img{ margin: 0 auto 12px; width: 170px; height: auto; }
.site-footer small{ display:block; color: rgba(255,255,255,.6); font-size:.85rem; }

/* =========================================================
   QUIZ LAYOUT
   ========================================================= */
.quiz-layout{
  background: var(--blue-soft);
  padding-top: 32px;
  padding-bottom: 56px;
  min-height: calc(100vh - 240px);
}
.quiz-card{
  background:#fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px 36px;
  max-width: 760px;
  margin: 0 auto;
  scroll-margin-top: 88px;
}
.question-card,
.result-card{ scroll-margin-top: 88px; }

@media (max-width: 640px){
  .quiz-layout{ padding-top: 20px; padding-bottom: 40px; }
  .quiz-card{ padding: 26px 20px; border-radius: 22px; }
}

/* Progress */
.progress-wrap{
  display:flex; align-items:center; gap:14px;
  margin-bottom: 26px;
}
.progress-bar{
  flex:1; height: 8px; background: var(--border); border-radius:999px; overflow:hidden;
}
.progress-fill{
  height:100%; width:0%;
  background: linear-gradient(90deg, var(--coral), #ff7a7a);
  border-radius: 999px;
  transition: width 350ms cubic-bezier(.2,.7,.2,1);
}
.progress-count{
  color: var(--text-2); font-size:.85rem; font-weight:600; white-space:nowrap;
}

/* Slide animation */
.slide{
  display:none;
  animation: fadeIn 280ms cubic-bezier(.2,.7,.2,1);
}
.slide.active{ display:block; }
@keyframes fadeIn{
  from{ opacity:0; }
  to  { opacity:1; }
}

/* Question */
.q-title{
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 700; color: var(--text);
  margin-bottom: 8px; line-height:1.25;
}
.q-help{ color: var(--text-2); margin-bottom: 22px; font-size:.95rem; }

.options{ display:grid; gap:12px; margin-bottom: 22px; }
.option{
  display:flex; align-items:center; gap:14px;
  background:#fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 1rem; color: var(--text);
  text-align:left; cursor:pointer; width:100%;
  transition: border-color var(--trans), background var(--trans), box-shadow var(--trans);
  font-family: inherit;
}
.option:hover{ border-color: var(--blue); background: var(--blue-soft); }
.option.selected{
  border-color: var(--coral);
  background: #fff5f5;
  box-shadow: 0 4px 14px rgba(254,88,88,.15);
}
.option .opt-mark{
  width:22px; height:22px; border-radius:50%;
  border: 2px solid var(--border); flex:none;
  display:flex; align-items:center; justify-content:center;
  transition: all var(--trans);
}
.option.selected .opt-mark{ border-color: var(--coral); background: var(--coral); }
.option.selected .opt-mark::after{ content:""; width:8px; height:8px; border-radius:50%; background:#fff; }
.option.multi .opt-mark{ border-radius: 6px; }
.option.multi.selected .opt-mark::after{ width:10px; height:10px; border-radius:2px; }

.nav-row{
  display:flex; justify-content:space-between; align-items:center; gap: 10px;
  margin-top: 10px;
}
.nav-row .btn-primary{ min-width: 140px; }

/* Intro / form */
.intro-eyebrow{
  display:inline-block;
  background: var(--mint); color: var(--blue);
  padding: 6px 14px; border-radius:999px;
  font-size:.8rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  margin-bottom: 14px;
}
.field{ margin-bottom: 16px; display:block; }
.field label{ display:block; font-weight:600; margin-bottom:6px; font-size:.95rem; }
.field label .req{ color: var(--coral); }
.field input, .field select{
  width:100%; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--text); background:#fff;
  transition: border-color var(--trans);
}
.field input:focus, .field select:focus{ outline:none; border-color: var(--blue); }
.field .err{ display:none; color: var(--coral); font-size:.85rem; margin-top:6px; }
.field.invalid .err{ display:block; }
.field.invalid input, .field.invalid select{ border-color: var(--coral); }

.lead-grid{ display:grid; gap:14px; grid-template-columns: 1fr 1fr; }
.lead-grid .full{ grid-column: 1/-1; }
@media (max-width: 600px){ .lead-grid{ grid-template-columns: 1fr; } }

/* Result */
.result-header{ text-align:center; padding: 4px 0 20px; }
.result-badge{
  display:inline-block; background: var(--coral); color:#fff;
  padding: 6px 14px; border-radius:999px;
  font-size:.8rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  margin-bottom: 12px;
}
.result-title{ font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 8px; }
.result-sub{ color: var(--text-2); max-width: 560px; margin: 0 auto; }

.result-block{
  background: var(--blue-soft);
  border-radius: var(--radius);
  padding: 22px 24px; margin: 18px 0;
}
.result-block h4{ margin: 0 0 10px; color: var(--blue); font-size:.9rem; text-transform:uppercase; letter-spacing:.04em; }
.tags{ display:flex; gap:8px; flex-wrap:wrap; }
.tag{
  background:#fff; border:1px solid var(--border);
  padding: 6px 12px; border-radius:999px; font-size:.85rem; color: var(--text);
  font-weight:600;
}
.tag.primary{ background: var(--coral); color:#fff; border-color: transparent; }

.result-actions{
  display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin: 22px 0 8px;
}
.legal{
  margin-top: 18px; color: var(--text-2); font-size:.82rem;
  text-align:center; border-top: 1px solid var(--border); padding-top: 14px;
}

/* =========================================================
   PRODUCT RECOMMENDATION (resultado del quiz)
   ========================================================= */
.product-recommendation{
  margin: 24px 0 8px;
}
.product-headline{
  margin: 0 0 12px;
  color: var(--blue);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
}
.product-card-main{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: stretch;
  background:#fff;
  border:1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
}
.product-card-main:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.product-card-link{
  display:flex; align-items:center; justify-content:center;
  background: var(--blue-soft);
  border-radius: var(--radius);
  padding: 14px;
  overflow:hidden;
  transition: transform var(--trans);
}
.product-card-link:hover{ transform: scale(1.02); opacity:1; }
.product-image{
  width:100%; height:auto;
  max-height: 200px;
  object-fit: contain;
  display:block;
}
.product-content{ display:flex; flex-direction:column; justify-content:center; }
.product-name{
  margin: 0 0 6px;
  font-size: 1.4rem;
  color: var(--text);
}
.product-desc{
  color: var(--text-2);
  margin: 0 0 14px;
  font-size: .95rem;
  line-height:1.5;
}
.product-benefits{
  margin: 0 0 18px;
  padding: 0 0 0 18px;
  color: var(--text);
}
.product-benefits li{
  margin-bottom: 6px;
  font-size: .95rem;
  line-height: 1.45;
}
.product-actions{
  display:flex; gap: 10px; flex-wrap: wrap;
}
.product-actions .btn{ flex:1; min-width: 180px; }

/* Card secundaria (productos complementarios) */
.product-secondary-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 6px;
}
.product-secondary{
  display:flex; gap: 12px; align-items: center;
  background:#fff; border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--text); text-decoration:none;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}
.product-secondary:hover{
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  opacity: 1;
}
.product-secondary img{
  width: 64px; height: 64px;
  object-fit: contain;
  background: var(--blue-soft);
  border-radius: 12px;
  padding: 6px;
  flex:none;
}
.product-secondary strong{ display:block; margin-bottom: 2px; font-size: .98rem; }
.product-secondary span{ color: var(--text-2); font-size: .82rem; line-height: 1.35; display:block; }

/* Mobile: imagen arriba, contenido abajo */
@media (max-width: 700px){
  .product-card-main{
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }
  .product-card-link{ padding: 12px; }
  .product-image{ max-height: 220px; }
  .product-actions .btn{ flex: 1 1 100%; }
  .product-secondary-grid{ grid-template-columns: 1fr; }
}

/* Utility */
.center{ text-align:center; }
.hidden{ display:none !important; }
.mb-8{ margin-bottom: 8px; } .mb-16{ margin-bottom:16px; } .mb-24{ margin-bottom: 24px; }
