:root{
  --bg:#f2f2f2;
  --panel:#ffffffea;
  --panel-2:#fffdfa;
  --marron:#6b4634;
  --marron-2:#8c6755;
  --turquesa:#18b5ad;
  --turquesa-soft:#dff7f5;
  --linea:#d8cec4;
  --borde:#e4d8cd;
  --oro:#e6bb59;
  --oro-soft:#fff6df;
  --shadow:0 12px 28px rgba(107,70,52,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--marron);}
a{text-decoration:none}
img{max-width:100%;display:block}

.page{max-width:1000px;margin:0 auto;padding:16px}
.page-center{min-height:100vh;display:flex;align-items:center;justify-content:center}
.card,.tarjeta-card{position:relative;background:var(--panel);border:1px solid var(--borde);border-radius:24px;box-shadow:var(--shadow);overflow:hidden}
.access-card{width:100%;max-width:700px;padding:22px 18px}
.watermark-bg::before{
  content:"";
  position:absolute;
  inset:0;
  background:url('logo_belopapel.png') center 22px / 260px auto no-repeat;
  opacity:.05;
  pointer-events:none;
}
.logo-area,.brand-top,.user-head,.camino-title-row,.steps-grid,.footer-note,.form,.alert,.small,.title-main,.intro-small{position:relative;z-index:1}
.logo-area{text-align:center}
.brand-image{width:min(300px,72vw);margin:0 auto}
.brand-image-top{width:min(270px,56vw);margin:0}
.mini-subtitle{text-align:center;font-size:14px;color:var(--marron-2);margin-top:8px}
.title-main{text-align:center;margin:12px 0 10px;font-size:28px}
.intro-small{margin:0 auto 12px;max-width:560px;color:var(--marron-2);line-height:1.4}
.center{text-align:center}
.small{font-size:13px;color:var(--marron-2);margin-top:10px}
.form{display:grid;gap:12px;margin:18px auto 8px;max-width:480px}
.form input{width:100%;padding:15px 16px;border:2px solid var(--borde);border-radius:16px;background:#fff;font-size:17px;color:var(--marron);outline:none}
.form input:focus{border-color:var(--turquesa)}
.form button,.btn{width:100%;border:0;border-radius:16px;padding:15px 18px;background:var(--turquesa);color:#fff;font-size:18px;font-weight:700;cursor:pointer}
.alert{padding:12px 14px;border-radius:14px;margin:12px auto;max-width:480px;background:var(--turquesa-soft);border:1px solid #bce7e3;color:#0a6b65}
.alert.error{background:#fff0ef;border-color:#efc7c4;color:#a2443f}
.route-mini{display:inline-block;margin:10px auto 0;padding:9px 16px;border-radius:999px;background:#d7f5f2;color:#08766f;border:1px solid #9bd9d4;font-weight:700}

.tarjeta-shell{max-width:1020px;margin:0 auto;padding:10px}
.tarjeta-card{padding:14px}
.brand-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.route-mini-top{margin:0;white-space:nowrap;font-size:14px;padding:8px 14px}
.compact-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:10px}
.hello-title{margin:4px 0 6px;font-size:34px;line-height:1.05}
.header-note{margin:0;color:var(--marron-2);font-size:16px;line-height:1.35;max-width:580px}
.stats-inline{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-start;justify-content:flex-end}
.pill{background:#fff;border:1px solid var(--borde);border-radius:999px;padding:9px 14px;font-size:14px;color:var(--marron);box-shadow:0 4px 12px rgba(107,70,52,.05)}
.camino-title-row{display:flex;align-items:center;justify-content:space-between;margin:10px 0 8px}
.camino-title-row h3{margin:0;font-size:20px}

.steps-grid{
  --gapx:18px;
  --gapy:14px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-areas:
    's1 s2'
    's4 s3'
    's5 s6';
  gap:var(--gapy) var(--gapx);
  position:relative;
}
.step-box{position:relative;min-height:118px;padding:12px 12px 12px 86px;background:var(--panel-2);border:2px solid var(--borde);border-radius:22px;box-shadow:0 8px 18px rgba(107,70,52,.06);overflow:visible}
.step-box.is-premio{background:var(--oro-soft);border-color:var(--oro)}
.step-box.is-done{border-color:#82d4cd;background:#f5fffd}
.step-circle{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:58px;height:58px;border-radius:50%;border:4px solid var(--marron-2);background:#fff;color:var(--marron);display:flex;align-items:center;justify-content:center;font-size:31px;font-weight:800;z-index:2}
.step-box.is-premio .step-circle{border-color:var(--oro);background:#fff5da}
.step-box.is-done .step-circle{background:var(--turquesa);border-color:var(--turquesa);color:#fff}
.step-content{position:relative;z-index:2}
.step-kicker{text-transform:uppercase;font-size:12px;letter-spacing:1px;font-weight:800;color:var(--marron-2);margin-bottom:3px}
.step-title{font-size:18px;font-weight:800;line-height:1.15;margin-bottom:6px}
.step-desc{font-size:13px;line-height:1.3;color:var(--marron-2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:34px}
.step-status{display:inline-block;margin-top:8px;padding:7px 12px;border-radius:999px;font-size:12px;font-weight:700}
.step-status.pending{background:#efe6df;color:var(--marron)}
.step-status.ok{background:var(--turquesa-soft);color:#0a746e}

.step-1{grid-area:s1}.step-2{grid-area:s2}.step-3{grid-area:s3}.step-4{grid-area:s4}.step-5{grid-area:s5}.step-6{grid-area:s6}

.step-1::after,.step-3::after,.step-5::after,
.step-2::after,.step-4::after{
  content:"";
  position:absolute;
  z-index:0;
}
.step-1::after{
  top:50%;right:calc(var(--gapx) * -1);
  width:var(--gapx);border-top:7px dashed var(--linea);
}
.step-2::after{
  right:50%;bottom:calc(var(--gapy) * -1);
  height:var(--gapy);border-left:7px dashed var(--linea);
}
.step-3::after{
  top:50%;left:calc(var(--gapx) * -1);
  width:var(--gapx);border-top:7px dashed var(--linea);
}
.step-4::after{
  left:50%;bottom:calc(var(--gapy) * -1);
  height:var(--gapy);border-left:7px dashed var(--linea);
}
.step-5::after{
  top:50%;right:calc(var(--gapx) * -1);
  width:var(--gapx);border-top:7px dashed var(--linea);
}
.footer-note{margin-top:12px;padding:12px 14px;border-radius:18px;background:#fff;border:1px solid var(--borde);color:var(--marron-2);font-size:14px}

.admin-table{width:100%;border-collapse:collapse;background:#fff;border-radius:16px;overflow:hidden}
.admin-table th,.admin-table td{padding:10px;border-bottom:1px solid #eee;text-align:left;font-size:14px}
.admin-table th{background:#fff5e8}
.actions{display:flex;gap:7px;flex-wrap:wrap}
.actions form{margin:0}
.actions button{width:auto;font-size:13px;padding:9px 11px;box-shadow:none;border-radius:12px}

@media (max-width:700px){
  .page,.tarjeta-shell{padding:8px}
  .access-card,.tarjeta-card{padding:12px}
  .brand-image{width:min(250px,72vw)}
  .brand-image-top{width:min(210px,56vw)}
  .hello-title{font-size:28px}
  .header-note{font-size:14px}
  .route-mini{font-size:13px;padding:8px 12px}
  .route-mini-top{font-size:12px;padding:7px 10px}
  .compact-head{gap:8px}
  .stats-inline{gap:7px}
  .pill{font-size:12px;padding:7px 10px}
  .camino-title-row h3{font-size:18px}
  .steps-grid{--gapx:10px;--gapy:10px;gap:var(--gapy) var(--gapx)}
  .step-box{min-height:102px;padding:10px 8px 10px 62px;border-radius:18px}
  .step-circle{left:8px;width:44px;height:44px;font-size:22px;border-width:3px}
  .step-kicker{font-size:10px}
  .step-title{font-size:14px;margin-bottom:4px}
  .step-desc{font-size:11px;min-height:28px;-webkit-line-clamp:2}
  .step-status{font-size:11px;padding:6px 9px;margin-top:6px}
  .step-1::after,.step-3::after,.step-5::after{border-top-width:5px}
  .step-2::after,.step-4::after{border-left-width:5px}
}


/* ===== ADMIN BELOPAPEL BONITO ===== */
body.admin-body{
  background:#f2f2f2;
  color:var(--marron);
}
.admin-shell{
  max-width:1180px;
  margin:0 auto;
  padding:16px;
}
.admin-top-card{
  background:#fff;
  border:1px solid var(--borde);
  border-radius:24px;
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  box-shadow:var(--shadow);
  margin-bottom:14px;
}
.admin-brand{
  display:flex;
  align-items:center;
  gap:16px;
}
.admin-brand img{
  width:210px;
  max-width:45vw;
}
.admin-kicker{
  font-size:14px;
  color:var(--marron-2);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
}
.admin-brand h1{
  margin:2px 0 0;
  font-size:32px;
  line-height:1;
  text-align:left;
}
.admin-logout{
  background:#18b5ad;
  color:#fff;
  padding:12px 18px;
  border-radius:14px;
  font-weight:800;
  white-space:nowrap;
}
.admin-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-bottom:14px;
}
.admin-stat{
  background:#fff;
  border:1px solid var(--borde);
  border-radius:20px;
  padding:14px 16px;
  box-shadow:0 8px 18px rgba(107,70,52,.05);
}
.admin-stat span{
  display:block;
  font-size:13px;
  color:var(--marron-2);
  margin-bottom:5px;
}
.admin-stat strong{
  display:block;
  font-size:26px;
  color:var(--marron);
}
.admin-panel{
  background:#fff;
  border:1px solid var(--borde);
  border-radius:24px;
  padding:18px;
  box-shadow:var(--shadow);
  margin-bottom:14px;
}
.admin-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  margin-bottom:14px;
}
.admin-section-head h2{
  margin:0;
  font-size:30px;
  color:var(--marron);
}
.admin-section-head p{
  margin:4px 0 0;
  color:var(--marron-2);
  font-size:15px;
}
.admin-search{
  display:grid;
  grid-template-columns:1fr 170px auto;
  gap:10px;
  margin-bottom:16px;
}
.admin-search input{
  width:100%;
  padding:14px 16px;
  border:2px solid var(--borde);
  border-radius:16px;
  font-size:16px;
  outline:none;
}
.admin-search input:focus{
  border-color:var(--turquesa);
}
.admin-search button{
  border:0;
  border-radius:16px;
  background:var(--turquesa);
  color:#fff;
  font-size:17px;
  font-weight:800;
  cursor:pointer;
}
.admin-clear{
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  padding:0 14px;
  background:#f4eee8;
  color:var(--marron);
  font-weight:800;
}
.table-wrap{
  overflow:auto;
  border:1px solid #eee2d6;
  border-radius:18px;
}
.admin-table-pro{
  width:100%;
  border-collapse:collapse;
  min-width:820px;
}
.admin-table-pro th{
  text-align:left;
  background:#fff4e6;
  color:var(--marron);
  padding:13px 12px;
  font-size:14px;
}
.admin-table-pro td{
  padding:14px 12px;
  border-bottom:1px solid #f0e6dc;
  vertical-align:middle;
  font-size:14px;
}
.admin-table-pro td strong{
  display:block;
  font-size:16px;
}
.admin-table-pro td span{
  display:block;
  color:var(--marron-2);
  font-size:12px;
  margin-top:4px;
}
.status-badge{
  display:inline-flex !important;
  padding:7px 11px;
  border-radius:999px;
  font-size:13px !important;
  font-weight:800;
}
.status-badge.is-confirmed{
  background:#dff7f5;
  color:#08766f;
}
.status-badge.is-pending{
  background:#fff1d9;
  color:#9b6200;
}
.mini-progress{
  min-width:110px;
}
.mini-progress span{
  display:block;
  font-weight:800;
  color:var(--marron) !important;
  margin-bottom:6px !important;
}
.mini-progress div{
  height:9px;
  background:#f0e7df;
  border-radius:999px;
  overflow:hidden;
}
.mini-progress i{
  display:block;
  height:100%;
  background:var(--turquesa);
  border-radius:999px;
}
.admin-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
}
.admin-actions form{
  margin:0;
}
.admin-actions button{
  border:1px solid #d9c7b8;
  border-radius:12px;
  padding:9px 12px;
  background:#fff;
  color:var(--marron);
  font-weight:800;
  cursor:pointer;
}
.admin-actions .btn-plus{
  background:#18b5ad;
  border-color:#18b5ad;
  color:#fff;
}
.admin-actions .btn-minus{
  background:#fff;
}
.admin-actions .btn-gift{
  background:#fff6df;
  border-color:#e6bb59;
}
.empty-row{
  text-align:center;
  color:var(--marron-2);
  padding:24px !important;
}
.premios-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.premio-edit-card{
  border:1px solid var(--borde);
  border-radius:20px;
  padding:14px;
  background:#fffdfa;
}
.premio-num{
  font-weight:900;
  font-size:18px;
  margin-bottom:10px;
}
.premio-edit-card input,
.premio-edit-card textarea{
  width:100%;
  border:2px solid var(--borde);
  border-radius:14px;
  padding:12px 13px;
  margin-bottom:10px;
  font-size:15px;
  font-family:Arial,Helvetica,sans-serif;
  outline:none;
  resize:vertical;
}
.premio-edit-card input:focus,
.premio-edit-card textarea:focus{
  border-color:var(--turquesa);
}
.save-gifts{
  grid-column:1/-1;
  border:0;
  border-radius:16px;
  padding:15px 18px;
  background:var(--turquesa);
  color:#fff;
  font-size:18px;
  font-weight:900;
  cursor:pointer;
}
@media(max-width:800px){
  .admin-shell{padding:10px}
  .admin-top-card{align-items:flex-start}
  .admin-brand{gap:10px}
  .admin-brand img{width:155px}
  .admin-brand h1{font-size:24px}
  .admin-stats{grid-template-columns:1fr}
  .admin-search{grid-template-columns:1fr}
  .admin-search button,.admin-clear{height:48px}
  .premios-grid{grid-template-columns:1fr}
  .admin-panel{padding:12px}
  .admin-section-head h2{font-size:24px}
}


/* ===== EFECTO CONFETI / SONIDO ===== */
.belopapel-celebracion{
  position:fixed;
  left:50%;
  top:18px;
  transform:translate(-50%,-22px);
  opacity:0;
  z-index:1000000;
  background:#fffdfa;
  color:#6b4634;
  border:2px solid #e6bb59;
  border-radius:20px;
  box-shadow:0 14px 30px rgba(107,70,52,.18);
  padding:14px 18px;
  min-width:min(420px,92vw);
  text-align:center;
  transition:.35s ease;
}
.belopapel-celebracion.show{
  transform:translate(-50%,0);
  opacity:1;
}
.belopapel-celebracion strong{
  display:block;
  font-size:20px;
  margin-bottom:4px;
}
.belopapel-celebracion span{
  display:block;
  font-size:14px;
  color:#8c6755;
}
.belopapel-audio-btn{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translate(-50%,22px);
  opacity:0;
  z-index:1000001;
  border:0;
  border-radius:999px;
  background:#18b5ad;
  color:#fff;
  padding:13px 18px;
  font-size:15px;
  font-weight:900;
  box-shadow:0 12px 24px rgba(24,181,173,.28);
  cursor:pointer;
  transition:.3s ease;
}
.belopapel-audio-btn.show{
  transform:translate(-50%,0);
  opacity:1;
}
@media(max-width:600px){
  .belopapel-celebracion{
    top:10px;
    padding:12px 14px;
  }
  .belopapel-celebracion strong{
    font-size:17px;
  }
  .belopapel-audio-btn{
    width:calc(100% - 28px);
    bottom:12px;
  }
}


/* ===== RUTA PREMIUM DESORDENADA 1-6 ===== */
.tarjeta-card{
  background:
    radial-gradient(circle at 10% 10%, rgba(24,181,173,.08), transparent 25%),
    radial-gradient(circle at 92% 16%, rgba(230,187,89,.12), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(107,70,52,.06), transparent 32%),
    rgba(255,255,255,.96);
}
.ruta-premium{
  position:relative;
  height:430px;
  margin:8px 0 10px;
  border:1px solid #eaded3;
  border-radius:24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,250,243,.94)),
    repeating-linear-gradient(45deg, rgba(107,70,52,.025) 0 8px, transparent 8px 18px);
  overflow:hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.ruta-lines{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:1;
  pointer-events:none;
}
.ruta-bg,
.ruta-progress{
  fill:none !important;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.ruta-bg{
  stroke:#d9d0c7;
  stroke-width:10;
  stroke-dasharray:18 17;
  opacity:.95;
}
.ruta-progress{
  stroke:#18b5ad;
  stroke-width:8;
  stroke-dasharray:var(--p) 100;
  pathLength:100;
  opacity:.75;
  filter:drop-shadow(0 3px 4px rgba(24,181,173,.25));
}
.ruta-step{
  position:absolute;
  z-index:2;
  width:255px;
  min-height:105px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px;
  border-radius:22px;
  border:2px solid #d9cec4;
  background:rgba(255,255,255,.94);
  box-shadow:0 12px 24px rgba(107,70,52,.08);
}
.ruta-step.locked{
  background:rgba(246,246,246,.94);
  border-color:#d6d6d6;
  color:#8d8580;
  filter:grayscale(.25);
}
.ruta-step.done{
  background:#f2fffd;
  border-color:#77d2ca;
}
.ruta-step.premio{
  background:#fff8e8;
  border-color:#e6bb59;
}
.ruta-step.premio.done{
  background:linear-gradient(135deg,#fffdf6,#fff1c7);
  border-color:#e0ad3e;
  box-shadow:0 14px 28px rgba(230,187,89,.2);
}
.ruta-icon{
  width:56px;
  height:56px;
  min-width:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  font-weight:900;
  border:4px solid #b8aca2;
  background:#fff;
  color:#8d8580;
}
.ruta-step.done.normal .ruta-icon{
  background:#18b5ad;
  border-color:#18b5ad;
  color:#fff;
}
.ruta-step.premio .ruta-icon{
  background:#fff5dc;
  border-color:#e6bb59;
  color:#6b4634;
}
.ruta-step.premio.done .ruta-icon{
  background:#ffe9ad;
  border-color:#e0ad3e;
  color:#6b4634;
}
.ruta-kicker{
  font-size:11px;
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#8c6755;
}
.ruta-title{
  font-size:17px;
  font-weight:900;
  color:#6b4634;
  line-height:1.05;
  margin:3px 0 5px;
}
.ruta-desc{
  font-size:12px;
  line-height:1.25;
  color:#8c6755;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.ruta-status{
  display:inline-block;
  margin-top:7px;
  border-radius:999px;
  padding:6px 10px;
  font-size:11px;
  font-weight:900;
}
.ruta-status.pending{
  background:#e7e3df;
  color:#82766e;
}
.ruta-status.ok{
  background:#dff7f5;
  color:#08766f;
}
.ruta-step-1{left:4%; top:34px;}
.ruta-step-2{left:38%; top:12px;}
.ruta-step-3{right:4%; top:104px;}
.ruta-step-4{left:8%; top:210px;}
.ruta-step-5{left:40%; top:176px;}
.ruta-step-6{right:5%; bottom:28px;}

@media(max-width:900px){
  .ruta-premium{
    height:720px;
    padding:14px;
    display:grid;
    grid-template-columns:1fr;
    gap:11px;
    overflow:visible;
  }
  .ruta-lines{
    display:none;
  }
  .ruta-step{
    position:relative;
    inset:auto !important;
    width:100%;
    min-height:92px;
  }
  .ruta-step::after{
    content:"";
    position:absolute;
    left:40px;
    bottom:-15px;
    height:16px;
    border-left:5px dashed #d9d0c7;
  }
  .ruta-step.done::after{
    border-left-color:#18b5ad;
  }
  .ruta-step-6::after{
    display:none;
  }
  .ruta-icon{
    width:50px;
    height:50px;
    min-width:50px;
    font-size:24px;
    border-width:3px;
  }
  .ruta-title{
    font-size:16px;
  }
  .ruta-desc{
    font-size:12px;
  }
}
@media(max-width:600px){
  .ruta-premium{
    height:auto;
    gap:8px;
    padding:10px;
    border-radius:18px;
  }
  .ruta-step{
    min-height:76px;
    padding:9px 10px;
    border-radius:16px;
    gap:9px;
  }
  .ruta-icon{
    width:42px;
    height:42px;
    min-width:42px;
    font-size:20px;
  }
  .ruta-kicker{font-size:9px}
  .ruta-title{font-size:14px}
  .ruta-desc{font-size:10px;min-height:auto}
  .ruta-status{font-size:10px;padding:5px 8px;margin-top:4px}
  .ruta-step::after{
    left:31px;
    bottom:-12px;
    height:12px;
    border-left-width:4px;
  }
}

/* ===== FONDOS CAMINO DE SANTIAGO: PC Y MÓVIL ===== */
.ruta-premium{
  background:
    linear-gradient(rgba(255,255,255,.25), rgba(255,255,255,.25)),
    url('img/fondo_camino_pc.png') center center / cover no-repeat !important;
  border:1px solid #dfc9a7 !important;
}

/* Dejamos las tarjetas por encima del fondo */
.ruta-step{
  backdrop-filter: blur(1px);
}

/* En móvil usamos fondo vertical */
@media(max-width:900px){
  .ruta-premium{
    background:
      linear-gradient(rgba(255,255,255,.20), rgba(255,255,255,.20)),
      url('img/fondo_camino_movil.png') center top / cover no-repeat !important;
  }
}

/* Ajuste extra para que en móvil se vea más limpio */
@media(max-width:600px){
  .ruta-premium{
    background:
      linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)),
      url('img/fondo_camino_movil.png') center top / cover no-repeat !important;
    border-radius:20px !important;
  }
}


/* ===== MENÚ INFERIOR Y SECCIONES TARJETA ===== */
.app-shell{
  padding-bottom:100px;
}

.tab-section{
  display:none;
}

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

.mobile-tabs{
  position:fixed;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  z-index:99999;
  width:min(620px, calc(100% - 24px));
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:6px;
  padding:9px;
  border-radius:28px;
  background:rgba(255,255,255,.95);
  border:1px solid #eaded3;
  box-shadow:0 12px 34px rgba(107,70,52,.18);
  backdrop-filter:blur(8px);
}

.mobile-tabs button{
  border:0;
  background:transparent;
  border-radius:20px;
  padding:8px 4px;
  color:#6b4634;
  font-weight:800;
  cursor:pointer;
}

.mobile-tabs button span{
  display:block;
  font-size:23px;
  line-height:1;
  margin-bottom:3px;
}

.mobile-tabs button em{
  display:block;
  font-style:normal;
  font-size:12px;
}

.mobile-tabs button.active{
  background:#dff7f5;
  color:#08766f;
}

.section-card{
  min-height:430px;
  border:1px solid #dfc9a7;
  border-radius:24px;
  padding:22px;
  background:
    linear-gradient(rgba(255,255,255,.72),rgba(255,255,255,.72)),
    url('img/fondo_camino_movil.png') center center / cover no-repeat;
  box-shadow:0 10px 24px rgba(107,70,52,.08);
}

.section-card h3{
  margin:0 0 8px;
  font-size:30px;
  color:#6b4634;
}

.section-card p{
  margin:0 0 18px;
  color:#8c6755;
  line-height:1.4;
}

.gifts-list{
  display:grid;
  gap:12px;
}

.gift-item{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:16px;
  border-radius:20px;
  background:rgba(255,255,255,.92);
  border:2px solid #dfd7cf;
  box-shadow:0 8px 18px rgba(107,70,52,.06);
}

.gift-item.gift-have{
  border-color:#18b5ad;
  background:rgba(239,255,252,.94);
}

.gift-item.gift-missing{
  filter:grayscale(.25);
  opacity:.82;
}

.gift-icon{
  width:52px;
  height:52px;
  min-width:52px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff5dc;
  border:3px solid #e6bb59;
  font-size:25px;
}

.gift-info strong{
  display:block;
  font-size:20px;
  color:#6b4634;
  margin-bottom:4px;
}

.gift-info span{
  display:block;
  color:#8c6755;
  line-height:1.35;
  margin-bottom:7px;
}

.gift-info em{
  display:inline-block;
  font-style:normal;
  font-weight:900;
  border-radius:999px;
  padding:7px 11px;
  font-size:13px;
}

.gift-date,.gift-ok{
  background:#dff7f5;
  color:#08766f;
}

.gift-wait{
  background:#ece7e1;
  color:#6b625c;
}

.social-card{
  display:flex;
  align-items:center;
  gap:14px;
  background:rgba(255,255,255,.94);
  border:2px solid #e6bb59;
  border-radius:22px;
  padding:18px;
  color:#6b4634;
  box-shadow:0 8px 18px rgba(107,70,52,.08);
}

.social-icon{
  width:54px;
  height:54px;
  min-width:54px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#1877f2;
  color:#fff;
  font-size:34px;
  font-weight:900;
  font-family:Arial,Helvetica,sans-serif;
}

.social-card strong{
  display:block;
  font-size:22px;
  margin-bottom:3px;
}

.social-card span{
  color:#8c6755;
}

.profile-box{
  display:flex;
  align-items:center;
  gap:14px;
  background:rgba(255,255,255,.94);
  border:2px solid #eaded3;
  border-radius:22px;
  padding:18px;
  margin-bottom:14px;
}

.profile-avatar{
  width:58px;
  height:58px;
  min-width:58px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#dff7f5;
  font-size:28px;
}

.profile-box strong{
  display:block;
  font-size:24px;
  color:#6b4634;
}

.profile-box span{
  display:block;
  color:#8c6755;
  font-size:16px;
  margin-top:3px;
}

.profile-data{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:16px;
}

.profile-data div{
  background:rgba(255,255,255,.94);
  border:2px solid #eaded3;
  border-radius:18px;
  padding:15px;
}

.profile-data span{
  display:block;
  color:#8c6755;
  font-size:13px;
  margin-bottom:5px;
}

.profile-data strong{
  display:block;
  color:#6b4634;
  font-size:20px;
}

.logout-client{
  display:block;
  text-align:center;
  border-radius:18px;
  padding:15px 18px;
  background:#6b4634;
  color:#fff;
  font-weight:900;
}

@media(max-width:900px){
  .tarjeta-shell.app-shell{
    padding-bottom:92px;
  }

  .app-card{
    padding:10px;
  }

  .brand-top{
    margin-bottom:4px;
  }

  .compact-head{
    margin-bottom:6px;
  }

  .hello-title{
    font-size:24px;
  }

  .header-note{
    font-size:13px;
  }

  .camino-title-row{
    margin:4px 0 6px;
  }

  .camino-title-row h3{
    font-size:22px;
  }

  .mobile-tabs{
    bottom:8px;
    width:calc(100% - 18px);
    padding:7px;
    border-radius:24px;
  }

  .mobile-tabs button{
    padding:7px 3px;
  }

  .mobile-tabs button span{
    font-size:20px;
  }

  .mobile-tabs button em{
    font-size:11px;
  }

  .section-card{
    min-height:calc(100vh - 210px);
    padding:18px;
    border-radius:22px;
  }

  .section-card h3{
    font-size:26px;
  }
}

@media(max-width:520px){
  .brand-image-top{
    width:min(190px, 52vw);
  }

  .route-mini-top{
    font-size:11px;
    padding:6px 8px;
  }

  .stats-inline .pill{
    font-size:11px;
  }

  .profile-data{
    grid-template-columns:1fr;
  }

  .gift-info strong{
    font-size:18px;
  }

  .gift-info span{
    font-size:13px;
  }
}

/* ===== AJUSTE MÓVIL: MOSTRAR COMO EL DIBUJO 1 ===== */
@media (max-width: 900px) {
  .tab-section#tab-camino.active {
    display:block;
  }

  .camino-title-row {
    margin: 4px 0 8px !important;
  }

  .ruta-premium {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: min(92vw, 620px) !important;
    min-height: 500px !important;
    max-height: 620px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 26px !important;
    background:
      linear-gradient(rgba(255,255,255,.10), rgba(255,255,255,.10)),
      url('img/fondo_camino_movil.png') center center / 100% 100% no-repeat !important;
    border:1px solid #dfc9a7 !important;
  }

  .ruta-lines {
    display: none !important;
  }

  .ruta-step {
    position: absolute !important;
    width: 26.8% !important;
    min-height: 0 !important;
    padding: 2.4% 2% !important;
    border-radius: 16px !important;
    gap: 6px !important;
    box-shadow: 0 8px 16px rgba(107,70,52,.10) !important;
    overflow: hidden !important;
    backdrop-filter: none !important;
  }
  .ruta-step::after { display:none !important; }

  .ruta-icon {
    width: 16% !important;
    min-width: 16% !important;
    aspect-ratio: 1 / 1;
    height: auto !important;
    font-size: clamp(13px, 2.25vw, 21px) !important;
    border-width: 3px !important;
  }

  .ruta-info { min-width: 0; }
  .ruta-kicker {
    font-size: clamp(6px, 1.15vw, 8px) !important;
    letter-spacing: .6px !important;
  }
  .ruta-title {
    font-size: clamp(10px, 1.85vw, 14px) !important;
    margin: 2px 0 3px !important;
    line-height: 1.04 !important;
  }
  .ruta-desc {
    font-size: clamp(7px, 1.28vw, 9px) !important;
    line-height: 1.16 !important;
    -webkit-line-clamp: 3 !important;
    min-height: 0 !important;
  }
  .ruta-status {
    font-size: clamp(7px, 1.2vw, 9px) !important;
    padding: 3px 7px !important;
    margin-top: 4px !important;
  }

  /* Distribución como el dibujo 1 */
  .ruta-step-1 { left: 4.8% !important; top: 37.5% !important; }
  .ruta-step-2 { left: 36.7% !important; top: 37.5% !important; }
  .ruta-step-3 { left: 68.6% !important; top: 37.5% !important; }
  .ruta-step-6 { left: 4.8% !important; top: 72.2% !important; }
  .ruta-step-5 { left: 36.7% !important; top: 72.2% !important; }
  .ruta-step-4 { left: 68.6% !important; top: 72.2% !important; }
}

@media (max-width: 520px) {
  .ruta-premium {
    height: min(96vw, 560px) !important;
    min-height: 430px !important;
    max-height: 560px !important;
  }

  .ruta-step {
    width: 27.2% !important;
    padding: 2.3% 1.8% !important;
    border-radius: 14px !important;
    gap: 5px !important;
  }

  .ruta-icon {
    width: 18% !important;
    min-width: 18% !important;
    font-size: clamp(11px, 2.1vw, 16px) !important;
  }

  .ruta-kicker { font-size: clamp(5px, 1.0vw, 7px) !important; }
  .ruta-title { font-size: clamp(9px, 1.7vw, 12px) !important; }
  .ruta-desc { font-size: clamp(6px, 1.08vw, 8px) !important; }
  .ruta-status { font-size: clamp(6px, 1.0vw, 8px) !important; padding: 3px 6px !important; }
}


/* ===== AJUSTE FINAL MÓVIL BELOPAPEL ===== */
@media (max-width: 900px) {
  body.belopapel-body{
    background:#f7f3ee !important;
  }

  .tarjeta-shell.app-shell{
    padding:6px 6px 96px !important;
  }

  .tarjeta-card.app-card{
    padding:8px !important;
    border-radius:18px !important;
  }

  /* En móvil ocultamos cabecera grande para que la tarjeta respire */
  .brand-top,
  .compact-head{
    display:none !important;
  }

  .camino-title-row{
    margin:0 0 6px !important;
  }

  .camino-title-row h3{
    font-size:27px !important;
    line-height:1.05 !important;
    margin:0 !important;
  }

  .footer-note{
    display:none !important;
  }

  .ruta-premium{
    position:relative !important;
    display:block !important;
    width:100% !important;

    /* Altura adaptada a cada móvil, sin hacerlo demasiado largo */
    height:calc(100dvh - 190px) !important;
    min-height:520px !important;
    max-height:720px !important;

    padding:0 !important;
    overflow:hidden !important;
    border-radius:22px !important;

    background:
      linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)),
      url('img/fondo_camino_movil.png') center center / cover no-repeat !important;

    border:1px solid #dfc9a7 !important;
    box-shadow:0 10px 26px rgba(107,70,52,.10) !important;
  }

  .ruta-lines{
    display:none !important;
  }

  .ruta-step{
    position:absolute !important;
    width:29.2% !important;
    min-height:0 !important;
    display:flex !important;
    align-items:center !important;
    gap:5px !important;

    padding:2.1% 1.55% !important;
    border-radius:14px !important;
    overflow:hidden !important;

    box-shadow:0 7px 15px rgba(107,70,52,.12) !important;
    backdrop-filter:none !important;
  }

  .ruta-step::after{
    display:none !important;
  }

  .ruta-icon{
    width:24px !important;
    height:24px !important;
    min-width:24px !important;
    font-size:14px !important;
    border-width:2px !important;
  }

  .ruta-kicker{
    font-size:7px !important;
    letter-spacing:.45px !important;
    line-height:1 !important;
    margin-bottom:2px !important;
  }

  .ruta-title{
    font-size:12px !important;
    line-height:1.02 !important;
    margin:0 0 2px !important;
  }

  .ruta-desc{
    font-size:8px !important;
    line-height:1.08 !important;
    min-height:auto !important;
    -webkit-line-clamp:3 !important;
  }

  .ruta-status{
    font-size:7px !important;
    padding:3px 6px !important;
    margin-top:4px !important;
  }

  /* Posiciones ajustadas al fondo móvil */
  .ruta-step-1{ left:3.5% !important; top:37.5% !important; }
  .ruta-step-2{ left:35.4% !important; top:37.5% !important; }
  .ruta-step-3{ left:67.3% !important; top:37.5% !important; }

  .ruta-step-6{ left:3.5% !important; top:70.6% !important; }
  .ruta-step-5{ left:35.4% !important; top:70.6% !important; }
  .ruta-step-4{ left:67.3% !important; top:70.6% !important; }

  .mobile-tabs{
    bottom:8px !important;
    width:calc(100% - 18px) !important;
    padding:7px !important;
    border-radius:24px !important;
  }

  .mobile-tabs button{
    padding:7px 3px !important;
  }

  .mobile-tabs button span{
    font-size:20px !important;
  }

  .mobile-tabs button em{
    font-size:11px !important;
  }
}

/* Móviles muy altos: aprovechamos más pantalla */
@media (max-width: 900px) and (min-height: 780px) {
  .ruta-premium{
    height:calc(100dvh - 185px) !important;
    max-height:780px !important;
  }
}

/* Móviles pequeños: compactamos para que no se rompa */
@media (max-width: 430px) {
  .tarjeta-shell.app-shell{
    padding-left:4px !important;
    padding-right:4px !important;
  }

  .camino-title-row h3{
    font-size:25px !important;
  }

  .ruta-premium{
    height:calc(100dvh - 180px) !important;
    min-height:500px !important;
  }

  .ruta-step{
    width:29.8% !important;
    padding:2% 1.3% !important;
    gap:4px !important;
  }

  .ruta-icon{
    width:21px !important;
    height:21px !important;
    min-width:21px !important;
    font-size:12px !important;
  }

  .ruta-kicker{ font-size:6px !important; }
  .ruta-title{ font-size:11px !important; }
  .ruta-desc{ font-size:7px !important; }
  .ruta-status{ font-size:6px !important; padding:3px 5px !important; }
}


/* ===== PEREGRINO EN EL CAMINO ===== */
.peregrino-marker{
  position:absolute;
  z-index:5;
  width:74px;
  height:auto;
  pointer-events:none;
  filter:drop-shadow(0 8px 12px rgba(107,70,52,.26));
  transition:left .45s ease, top .45s ease, transform .45s ease;
}

.peregrino-marker img{
  width:100%;
  height:auto;
  display:block;
}

/* PC / tablet */
.peregrino-pos-0{ left:5%; top:28%; transform:translate(-50%,-50%) scale(.72); }
.peregrino-pos-1{ left:14%; top:35%; transform:translate(-50%,-50%) scale(.72); }
.peregrino-pos-2{ left:40%; top:30%; transform:translate(-50%,-50%) scale(.72); }
.peregrino-pos-3{ left:75%; top:38%; transform:translate(-50%,-50%) scale(.72); }
.peregrino-pos-4{ left:74%; top:74%; transform:translate(-50%,-50%) scale(.72); }
.peregrino-pos-5{ left:47%; top:75%; transform:translate(-50%,-50%) scale(.72); }
.peregrino-pos-6{ left:17%; top:75%; transform:translate(-50%,-50%) scale(.72); }

/* Móvil: tarjetas más dispersas y peregrino pequeño */
@media (max-width:900px){
  .ruta-step{
    z-index:4 !important;
  }

  .peregrino-marker{
    width:clamp(38px, 11vw, 58px);
    z-index:6;
  }

  /* Recolocación más dispersa y más limpia en móvil */
  .ruta-step-1{ left:4.4% !important; top:34.5% !important; }
  .ruta-step-2{ left:36.1% !important; top:31.5% !important; }
  .ruta-step-3{ left:68.2% !important; top:35.5% !important; }

  .ruta-step-6{ left:4.4% !important; top:73.2% !important; }
  .ruta-step-5{ left:36.1% !important; top:68.5% !important; }
  .ruta-step-4{ left:68.2% !important; top:72.6% !important; }

  .peregrino-pos-0{ left:7%; top:25%; transform:translate(-50%,-50%) scale(.58); }
  .peregrino-pos-1{ left:15%; top:45%; transform:translate(-50%,-50%) scale(.58); }
  .peregrino-pos-2{ left:44%; top:43%; transform:translate(-50%,-50%) scale(.58); }
  .peregrino-pos-3{ left:82%; top:47%; transform:translate(-50%,-50%) scale(.58); }
  .peregrino-pos-4{ left:80%; top:69%; transform:translate(-50%,-50%) scale(.58); }
  .peregrino-pos-5{ left:50%; top:65%; transform:translate(-50%,-50%) scale(.58); }
  .peregrino-pos-6{ left:18%; top:69%; transform:translate(-50%,-50%) scale(.58); }
}

/* Móviles estrechos */
@media (max-width:430px){
  .peregrino-marker{
    width:clamp(34px, 10.5vw, 48px);
  }

  .ruta-step-1{ left:4% !important; top:34.8% !important; }
  .ruta-step-2{ left:35.7% !important; top:31.8% !important; }
  .ruta-step-3{ left:67.5% !important; top:35.8% !important; }

  .ruta-step-6{ left:4% !important; top:73.4% !important; }
  .ruta-step-5{ left:35.7% !important; top:68.7% !important; }
  .ruta-step-4{ left:67.5% !important; top:72.8% !important; }
}


/* ===== MÓVIL: CAMINO DESORDENADO PRO ===== */
@media (max-width:900px){
  /*
    Orden visual y recorrido:
    1 → 2 → 3
              ↓
    6 ← 5 ← 4

    Las tarjetas quedan más desordenadas y naturales,
    pero el camino sigue teniendo sentido.
  */

  .ruta-premium{
    height:calc(100dvh - 185px) !important;
    min-height:535px !important;
    max-height:760px !important;
    background:
      linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.07)),
      url('img/fondo_camino_movil.png') center center / cover no-repeat !important;
  }

  .ruta-step{
    width:28.4% !important;
    padding:2.05% 1.45% !important;
    border-radius:15px !important;
    gap:5px !important;
    box-shadow:0 9px 18px rgba(107,70,52,.14) !important;
  }

  /* Arriba: 1, 2, 3 algo desordenados */
  .ruta-step-1{ left:5.0% !important; top:35.8% !important; }
  .ruta-step-2{ left:36.2% !important; top:31.2% !important; }
  .ruta-step-3{ left:67.0% !important; top:37.6% !important; }

  /* Abajo: 6, 5, 4 desordenados, pero conectados por el camino */
  .ruta-step-6{ left:5.3% !important; top:72.5% !important; }
  .ruta-step-5{ left:36.0% !important; top:66.7% !important; }
  .ruta-step-4{ left:67.2% !important; top:71.2% !important; }

  /* Peregrino siguiendo el camino */
  .peregrino-marker{
    width:clamp(36px, 10.2vw, 54px) !important;
    z-index:6 !important;
  }

  .peregrino-pos-0{ left:8% !important; top:29% !important; transform:translate(-50%,-50%) scale(.58) !important; }
  .peregrino-pos-1{ left:15% !important; top:43% !important; transform:translate(-50%,-50%) scale(.58) !important; }
  .peregrino-pos-2{ left:45% !important; top:40% !important; transform:translate(-50%,-50%) scale(.58) !important; }
  .peregrino-pos-3{ left:82% !important; top:45% !important; transform:translate(-50%,-50%) scale(.58) !important; }

  /* En 4,5,6 mira hacia la izquierda por efecto espejo */
  .peregrino-pos-4{ left:81% !important; top:67% !important; transform:translate(-50%,-50%) scale(.58) !important; }
  .peregrino-pos-5{ left:50% !important; top:63% !important; transform:translate(-50%,-50%) scale(.58) !important; }
  .peregrino-pos-6{ left:18% !important; top:67% !important; transform:translate(-50%,-50%) scale(.58) !important; }
}

@media (max-width:430px){
  .ruta-premium{
    height:calc(100dvh - 180px) !important;
    min-height:520px !important;
  }

  .ruta-step{
    width:29.1% !important;
    padding:1.9% 1.25% !important;
  }

  .ruta-step-1{ left:4.2% !important; top:36.0% !important; }
  .ruta-step-2{ left:35.7% !important; top:31.5% !important; }
  .ruta-step-3{ left:67.0% !important; top:38.0% !important; }

  .ruta-step-6{ left:4.5% !important; top:72.6% !important; }
  .ruta-step-5{ left:35.8% !important; top:66.9% !important; }
  .ruta-step-4{ left:67.0% !important; top:71.4% !important; }

  .peregrino-marker{
    width:clamp(31px, 9.8vw, 46px) !important;
  }
}


/* ===== CORRECCIÓN PEREGRINO SELLO 4 PC ===== */
/*
  En PC tu diseño actual está así:
  arriba: 1,2,3
  abajo: 4,5,6

  Por eso, con 4 sellos el peregrino debe ir al sello 4,
  no al 6.
*/
@media (min-width:901px){
  .peregrino-pos-0{ left:6% !important; top:32% !important; transform:translate(-50%,-50%) scale(.72) !important; }
  .peregrino-pos-1{ left:17% !important; top:34% !important; transform:translate(-50%,-50%) scale(.72) !important; }
  .peregrino-pos-2{ left:45% !important; top:28% !important; transform:translate(-50%,-50%) scale(.72) !important; }
  .peregrino-pos-3{ left:80% !important; top:36% !important; transform:translate(-50%,-50%) scale(.72) !important; }

  /* Corrección importante */
  .peregrino-pos-4{ left:20% !important; top:67% !important; transform:translate(-50%,-50%) scale(.72) !important; }
  .peregrino-pos-5{ left:50% !important; top:62% !important; transform:translate(-50%,-50%) scale(.72) !important; }
  .peregrino-pos-6{ left:80% !important; top:67% !important; transform:translate(-50%,-50%) scale(.72) !important; }
}


/* ===== EFECTO ESPEJO PEREGRINO ===== */
/* Solo inicio, sello 1 y sello 2 con efecto espejo */
.peregrino-pos-0 img,
.peregrino-pos-1 img,
.peregrino-pos-2 img{
  animation:peregrinoCaminaEspejo 1.25s ease-in-out infinite;
  transform-origin:center bottom;
}

/* Desde sello 3 hasta sello 6 mirando hacia la derecha */
.peregrino-pos-3 img,
.peregrino-pos-4 img,
.peregrino-pos-5 img,
.peregrino-pos-6 img{
  animation:peregrinoCaminaNormal 1.25s ease-in-out infinite;
  transform-origin:center bottom;
}

@keyframes peregrinoCaminaNormal{
  0%,100%{ transform:scaleX(1) translateY(0) rotate(-1deg); }
  50%{ transform:scaleX(1) translateY(-3px) rotate(1deg); }
}

@keyframes peregrinoCaminaEspejo{
  0%,100%{ transform:scaleX(-1) translateY(0) rotate(1deg); }
  50%{ transform:scaleX(-1) translateY(-3px) rotate(-1deg); }
}


/* ===== CORRECCIÓN FINAL DIRECCIÓN PEREGRINO 4-5-6 ===== */
/*
  El PNG original del peregrino mira hacia la izquierda.
  Por eso para que en 4, 5 y 6 mire hacia la derecha
  hay que aplicarle scaleX(-1).
*/
.peregrino-pos-4 img,
.peregrino-pos-5 img,
.peregrino-pos-6 img{
  animation:peregrinoCaminaDerecha 1.25s ease-in-out infinite !important;
  transform-origin:center bottom !important;
}

@keyframes peregrinoCaminaDerecha{
  0%,100%{ transform:scaleX(-1) translateY(0) rotate(1deg); }
  50%{ transform:scaleX(-1) translateY(-3px) rotate(-1deg); }
}


/* ===== AJUSTE EXTRA MÓVIL DISPERSO + PEREGRINO ===== */
@media (max-width:900px){
  /* Más aire entre tarjetas */
  .ruta-premium{
    height:calc(100dvh - 175px) !important;
    min-height:560px !important;
    max-height:790px !important;
  }

  .ruta-step{
    width:27.2% !important;
    padding:2.05% 1.45% !important;
    border-radius:16px !important;
    box-shadow:0 10px 20px rgba(107,70,52,.15) !important;
  }

  /* Arriba más separados */
  .ruta-step-1{ left:3.6% !important; top:35.2% !important; }
  .ruta-step-2{ left:36.1% !important; top:30.6% !important; }
  .ruta-step-3{ left:69.1% !important; top:36.6% !important; }

  /* Abajo más separados */
  .ruta-step-6{ left:3.9% !important; top:74.2% !important; }
  .ruta-step-5{ left:36.3% !important; top:67.9% !important; }
  .ruta-step-4{ left:69.0% !important; top:73.0% !important; }

  /* Peregrino un poco más grande */
  .peregrino-marker{
    width:clamp(42px, 11.8vw, 62px) !important;
    z-index:7 !important;
  }

  /* Ajuste de posiciones del peregrino siguiendo el camino */
  .peregrino-pos-0{ left:8.5% !important; top:28.0% !important; transform:translate(-50%,-50%) scale(.64) !important; }
  .peregrino-pos-1{ left:15.2% !important; top:43.0% !important; transform:translate(-50%,-50%) scale(.64) !important; }
  .peregrino-pos-2{ left:46.0% !important; top:40.0% !important; transform:translate(-50%,-50%) scale(.64) !important; }
  .peregrino-pos-3{ left:82.8% !important; top:45.0% !important; transform:translate(-50%,-50%) scale(.64) !important; }
  .peregrino-pos-4{ left:81.5% !important; top:69.2% !important; transform:translate(-50%,-50%) scale(.64) !important; }
  .peregrino-pos-5{ left:50.0% !important; top:63.8% !important; transform:translate(-50%,-50%) scale(.64) !important; }
  .peregrino-pos-6{ left:18.0% !important; top:69.0% !important; transform:translate(-50%,-50%) scale(.64) !important; }
}

@media (max-width:430px){
  .ruta-premium{
    height:calc(100dvh - 170px) !important;
    min-height:540px !important;
  }

  .ruta-step{
    width:27.9% !important;
    padding:1.95% 1.2% !important;
  }

  .ruta-step-1{ left:3.2% !important; top:35.5% !important; }
  .ruta-step-2{ left:35.7% !important; top:30.8% !important; }
  .ruta-step-3{ left:68.8% !important; top:36.8% !important; }

  .ruta-step-6{ left:3.5% !important; top:74.4% !important; }
  .ruta-step-5{ left:35.9% !important; top:68.1% !important; }
  .ruta-step-4{ left:68.7% !important; top:73.2% !important; }

  .peregrino-marker{
    width:clamp(40px, 11.4vw, 56px) !important;
  }
}


/* ===== MÓVIL PRO V2: RECORRIDO, PEREGRINO Y MENÚ ===== */
@media (max-width:900px){
  /* Más alto para que el recorrido respire mejor */
  .ruta-premium{
    height:calc(100dvh - 165px) !important;
    min-height:590px !important;
    max-height:820px !important;
    background:
      linear-gradient(rgba(255,255,255,.04), rgba(255,255,255,.04)),
      url('img/fondo_camino_movil.png') center center / cover no-repeat !important;
  }

  /* Tarjetas un poco más elegantes y separadas */
  .ruta-step{
    width:26.8% !important;
    padding:2.1% 1.35% !important;
    border-radius:17px !important;
    gap:5px !important;
    box-shadow:0 12px 24px rgba(107,70,52,.16) !important;
  }

  /* Recorrido móvil más pro/desordenado:
     1 bajo-izq → 2 arriba-centro → 3 derecha → 4 abajo-derecha → 5 centro-bajo → 6 izq-bajo
  */
  .ruta-step-1{ left:4.2% !important; top:36.8% !important; }
  .ruta-step-2{ left:36.3% !important; top:30.0% !important; }
  .ruta-step-3{ left:69.0% !important; top:38.8% !important; }

  .ruta-step-4{ left:69.0% !important; top:73.5% !important; }
  .ruta-step-5{ left:36.0% !important; top:66.0% !important; }
  .ruta-step-6{ left:4.2% !important; top:74.8% !important; }

  /* Peregrino más visible en móvil */
  .peregrino-marker{
    width:clamp(56px, 15vw, 82px) !important;
    z-index:8 !important;
    filter:drop-shadow(0 10px 14px rgba(107,70,52,.32)) !important;
  }

  /* Posición del peregrino siguiendo la ruta */
  .peregrino-pos-0{ left:7.8% !important; top:27.0% !important; transform:translate(-50%,-50%) scale(.74) !important; }
  .peregrino-pos-1{ left:17.0% !important; top:44.0% !important; transform:translate(-50%,-50%) scale(.74) !important; }
  .peregrino-pos-2{ left:46.0% !important; top:40.0% !important; transform:translate(-50%,-50%) scale(.74) !important; }
  .peregrino-pos-3{ left:83.0% !important; top:47.5% !important; transform:translate(-50%,-50%) scale(.74) !important; }
  .peregrino-pos-4{ left:82.0% !important; top:70.2% !important; transform:translate(-50%,-50%) scale(.74) !important; }
  .peregrino-pos-5{ left:50.0% !important; top:62.0% !important; transform:translate(-50%,-50%) scale(.74) !important; }
  .peregrino-pos-6{ left:17.0% !important; top:70.2% !important; transform:translate(-50%,-50%) scale(.74) !important; }

  /* Menú inferior más grande y más legible */
  .mobile-tabs{
    bottom:8px !important;
    width:calc(100% - 14px) !important;
    padding:9px !important;
    border-radius:28px !important;
    gap:7px !important;
  }

  .mobile-tabs button{
    padding:10px 4px !important;
    border-radius:22px !important;
  }

  .mobile-tabs button span{
    font-size:28px !important;
    margin-bottom:4px !important;
  }

  .mobile-tabs button em{
    font-size:15px !important;
    font-weight:900 !important;
    line-height:1.1 !important;
  }

  .mobile-tabs button.active{
    box-shadow:inset 0 -4px 0 rgba(24,181,173,.28);
  }
}

/* Móviles estrechos */
@media (max-width:430px){
  .tarjeta-shell.app-shell{
    padding-bottom:106px !important;
  }

  .ruta-premium{
    height:calc(100dvh - 160px) !important;
    min-height:570px !important;
  }

  .ruta-step{
    width:27.4% !important;
    padding:1.9% 1.15% !important;
  }

  .ruta-step-1{ left:3.4% !important; top:37.0% !important; }
  .ruta-step-2{ left:35.7% !important; top:30.2% !important; }
  .ruta-step-3{ left:68.8% !important; top:39.0% !important; }

  .ruta-step-4{ left:68.8% !important; top:73.6% !important; }
  .ruta-step-5{ left:35.7% !important; top:66.2% !important; }
  .ruta-step-6{ left:3.4% !important; top:75.0% !important; }

  .peregrino-marker{
    width:clamp(50px, 14vw, 68px) !important;
  }

  .mobile-tabs button span{
    font-size:26px !important;
  }

  .mobile-tabs button em{
    font-size:14px !important;
  }
}

