@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;500;600&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --cream:#fffaf4;
  --white:#fff;
  --ink:#221d18;
  --soft:#6f6258;
  --gold:#b8832f;
  --gold2:#d9b56d;
  --line:#eadcc7;
}

*{box-sizing:border-box;margin:0;padding:0}

body{
  font-family:'Inter',sans-serif;
  background:linear-gradient(180deg,#fffaf4,#fff);
  color:var(--ink);
}

.app{
  max-width:1180px;
  margin:auto;
  padding:28px 18px 60px;
}

.langs{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-bottom:14px;
}

.langs button{
  border:1px solid var(--line);
  background:#fff;
  padding:9px 14px;
  border-radius:30px;
  cursor:pointer;
  font-weight:800;
}

.langs button.active{
  background:#000;
  color:#fff;
}

.hero{
  position:relative;
  min-height:650px;
  border-radius:34px;
  overflow:hidden;
  background:linear-gradient(135deg,#fff,#fff2df);
  padding:58px;
  display:flex;
  align-items:center;
}

.hero-logo{
  width:92px;
  height:92px;
  border-radius:50%;
  object-fit:cover;
  box-shadow:0 18px 40px rgba(0,0,0,.16);
  background:#000;
}

.erba-real{
  position:absolute;
  right:100px;
  bottom:50px;
  width:330px;
  max-width:36vw;
  z-index:3;
  filter:drop-shadow(0 28px 45px rgba(0,0,0,.18));
}

.erba-watermark{
  position:absolute;
  right:-70px;
  top:40px;
  width:420px;
  opacity:.30;
  z-index:1;
  filter:blur(.2px);
}

.big-x{
  position:absolute;
  right:20px;
  top:30px;
  font-family:'Fraunces',serif;
  font-size:520px;
  color:rgba(184,131,47,.10);
  line-height:.8;
  z-index:0;
}

.hero-content{
  position:relative;
  z-index:4;
  max-width:560px;
}

.brand{
  display:flex;
  align-items:center;
  gap:20px;
  margin-bottom:36px;
}

.brand h1{
  font-family:'Fraunces',serif;
  font-size:58px;
  font-weight:400;
  line-height:.95;
}

.brand span{
  display:block;
  letter-spacing:12px;
  color:var(--gold);
  font-size:20px;
  margin-top:10px;
}

.hero h2{
  font-family:'Fraunces',serif;
  font-weight:400;
  font-size:48px;
  line-height:1.08;
  margin-bottom:24px;
}

.hero h2 em{
  color:var(--gold);
}

.hero p{
  color:var(--soft);
  font-size:17px;
  line-height:1.7;
  max-width:430px;
  margin-bottom:28px;
}

.main-btn,.next,.whatsapp{
  border:none;
  background:linear-gradient(135deg,var(--gold2),var(--gold));
  color:white;
  padding:17px 34px;
  border-radius:50px;
  font-weight:800;
  letter-spacing:1.4px;
  cursor:pointer;
  font-size:14px;
  text-decoration:none;
  display:inline-block;
}

.quiz{
  display:none;
  margin-top:-70px;
  position:relative;
  z-index:10;
  background:white;
  border:1px solid var(--line);
  border-radius:24px;
  padding:42px;
  box-shadow:0 30px 80px rgba(0,0,0,.10);
}

.quiz.open{display:block}

.topline{
  color:var(--gold);
  font-weight:800;
  letter-spacing:2px;
  font-size:12px;
  margin-bottom:18px;
  text-align:center;
}

.quiz h2{
  font-family:'Fraunces',serif;
  font-size:34px;
  font-weight:400;
  margin-bottom:8px;
  text-align:center;
}

.help{
  color:var(--soft);
  margin-bottom:25px;
  text-align:center;
}

.progress{
  height:7px;
  background:#eee2d2;
  border-radius:8px;
  overflow:hidden;
  margin:0 auto 34px;
  max-width:720px;
}

.bar{
  height:100%;
  width:12.5%;
  background:linear-gradient(90deg,var(--gold2),var(--gold));
}

.step{display:none}
.step.active{display:block}

.grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

.grid.small{
  grid-template-columns:repeat(2,1fr);
  max-width:760px;
  margin:auto;
}

.group h3{
  text-align:center;
  font-size:13px;
  letter-spacing:1px;
  margin-bottom:14px;
}

.option{
  width:100%;
  border:1px solid var(--line);
  background:white;
  padding:13px 14px;
  border-radius:12px;
  margin-bottom:9px;
  cursor:pointer;
  text-align:left;
  font-weight:600;
}

.option.active{
  background:var(--ink);
  color:white;
  border-color:var(--ink);
}

.nav{
  display:flex;
  justify-content:space-between;
  margin-top:34px;
}

.nav button{
  padding:15px 28px;
  border-radius:50px;
  font-weight:800;
  letter-spacing:1.5px;
  cursor:pointer;
}

.back{
  background:white;
  color:var(--gold);
  border:1px solid var(--line);
}

.results{
  display:none;
  margin-top:45px;
  background:white;
  border-radius:24px;
  padding:42px;
  border:1px solid var(--line);
  box-shadow:0 30px 80px rgba(0,0,0,.08);
}

.results.open{display:block}

.results h2{
  font-family:'Fraunces',serif;
  font-size:42px;
  text-align:center;
  font-weight:400;
}

.results p{
  text-align:center;
  color:var(--soft);
  margin:12px auto 30px;
}

.cards{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}

.card{
  position:relative;
  border:1px solid var(--line);
  border-left:5px solid var(--gold);
  border-radius:18px;
  padding:20px;
  background:#fffdf9;
  min-height:250px;
}

.perfume-img{
  position:absolute;
  top:18px;
  right:18px;
  width:85px;
  height:115px;
  object-fit:contain;
  background:transparent;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.12));
}

.card h3{
  font-family:'Fraunces',serif;
  font-size:22px;
  margin-bottom:4px;
  max-width:70%;
}

.brand-card{
  color:var(--gold);
  font-weight:800;
  margin-bottom:12px;
  max-width:70%;
}

.score{
  display:inline-block;
  background:var(--ink);
  color:white;
  padding:7px 12px;
  border-radius:20px;
  font-size:13px;
  margin-bottom:12px;
}

.reason{
  margin-top:12px;
  background:#f9f2e8;
  border-radius:12px;
  padding:12px;
  font-size:13px;
  color:#5d4a35;
  line-height:1.6;
}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:12px;
}

.badge{
  background:#f5ebdd;
  color:#5e4930;
  padding:6px 10px;
  border-radius:20px;
  font-size:12px;
  font-weight:700;
}

.features{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin:34px 0;
}

.feature{
  border-right:1px solid var(--line);
  padding:10px;
  color:var(--soft);
  font-size:14px;
}

.feature strong{
  display:block;
  color:var(--ink);
  margin-bottom:5px;
}

.footer{
  background:#050505;
  color:var(--gold2);
  text-align:center;
  padding:22px;
  border-radius:0 0 24px 24px;
  letter-spacing:3px;
}

@media(max-width:850px){
  .hero{padding:32px;min-height:610px}
  .brand h1{font-size:38px}
  .hero-logo{width:68px;height:68px}
  .hero h2{font-size:38px}
  .erba-real{right:20px;bottom:65px;width:210px;opacity:.55}
  .erba-watermark{right:-160px;width:360px}
  .grid,.grid.small{grid-template-columns:1fr}
  .cards,.features{grid-template-columns:1fr}
  .quiz{padding:28px;margin-top:-38px}
  .card h3,.brand-card{max-width:65%}
}

/* === CAMBIOS KARLA PALMA PARFUM - VERSIÓN CORREGIDA === */
:root{
  --wine:#6f1d3a;
  --wine-dark:#4d1026;
  --green:#0f8f4f;
  --green-dark:#08703b;
}

/* QR en esquina de la portada */
.hero-qr{
  position:absolute;
  right:28px;
  bottom:28px;
  width:118px;
  height:118px;
  background:#fff;
  padding:8px;
  border-radius:14px;
  z-index:6;
  box-shadow:0 14px 35px rgba(0,0,0,.16);
}

/* Idiomas con marco vino elegante */
.langs button{
  border:2px solid var(--wine) !important;
}

.langs button.active{
  background:var(--wine-dark) !important;
  color:#fff !important;
  border-color:var(--wine-dark) !important;
}

/* Barra de avance verde con movimiento */
.bar{
  background:linear-gradient(90deg,var(--green),var(--green-dark)) !important;
  transition:width .85s ease;
}

.bar.loading{
  animation:progressPulse .85s ease;
}

@keyframes progressPulse{
  0%{filter:brightness(1); transform:scaleX(.96);}
  45%{filter:brightness(1.45); transform:scaleX(1.01);}
  100%{filter:brightness(1); transform:scaleX(1);}
}

/* Resultados en verde */
.card{
  border-left:5px solid var(--green) !important;
}

.card h3{
  color:var(--green) !important;
}

.score{
  background:#fff !important;
  color:var(--green) !important;
  border:2px solid var(--green) !important;
  font-weight:900;
}

/* Botón WhatsApp marco verde */
.whatsapp{
  background:#fff !important;
  color:var(--green) !important;
  border:2px solid var(--green) !important;
}

.whatsapp:hover{
  background:var(--green) !important;
  color:#fff !important;
}

/* Footer: solo texto, sin marco */
.footer-link{
  display:block;
  text-align:center;
  text-decoration:none !important;
  border:none !important;
  background:transparent !important;
  color:var(--wine) !important;
  box-shadow:none !important;
  padding:22px;
  border-radius:0 !important;
  letter-spacing:1.2px;
  font-weight:900;
}

.footer-link:hover{
  color:var(--green) !important;
}

/* Botón nuevo test */
.new-test-wrap{
  text-align:center;
  margin-top:34px;
}

.new-test-btn{
  border:2px solid var(--wine);
  background:#fff;
  color:var(--wine);
  padding:16px 34px;
  border-radius:50px;
  font-weight:900;
  letter-spacing:1.2px;
  cursor:pointer;
  font-size:14px;
}

.new-test-btn:hover{
  background:var(--wine);
  color:#fff;
}

@media(max-width:850px){
  .hero-qr{
    width:88px;
    height:88px;
    right:18px;
    bottom:18px;
  }
}

/* ===== CORRECCIÓN FINAL SOLICITADA ===== */

/* Link final: solo texto, sin marco negro, sin fondo negro */
.site-link-clean{
  display:block !important;
  width:max-content !important;
  margin:28px auto 0 auto !important;
  padding:0 !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  color:#6f1d3a !important;
  text-decoration:none !important;
  font-weight:900 !important;
  letter-spacing:1px !important;
  border-radius:0 !important;
}

.site-link-clean:hover{
  color:#0f8f4f !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

/* Barra de avance del test: verde */
#bar,
.progress .bar{
  background:#0f8f4f !important;
  background-image:linear-gradient(90deg,#0f8f4f,#08703b) !important;
  transition:width .85s ease !important;
}

#bar.loading,
.progress .bar.loading{
  animation:progressPulse .85s ease !important;
}

@keyframes progressPulse{
  0%{filter:brightness(1); transform:scaleX(.96);}
  45%{filter:brightness(1.45); transform:scaleX(1.01);}
  100%{filter:brightness(1); transform:scaleX(1);}
}
