:root{
  --bg1:#12070A;
  --bg2:#2A0E15;

  --love:#ff3b7a;
  --love2:#ff7aa8;
  --rose:#ff4d6d;
  --gold:#ffd6e7;

  --white:#ffffff;
  --muted:#ffd6e7cc;

  --glass: rgba(255,255,255,.10);
  --stroke: rgba(255,255,255,.16);
  --shadow: 0 18px 50px rgba(0,0,0,.40);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--white);
  background:
    radial-gradient(1100px 680px at 15% 18%, rgba(255,59,122,.22), transparent 55%),
    radial-gradient(900px 560px at 85% 32%, rgba(255,122,168,.16), transparent 55%),
    radial-gradient(700px 520px at 55% 85%, rgba(255,214,231,.10), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  overflow-x:hidden;
}

.hidden{ display:none !important; }

.bg-canvas{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  pointer-events:none;
  opacity:.9;
}

.app{ position:relative; z-index:2; }

.glass{
  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
}

.topbar{
  padding:16px 18px;
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.brand{ display:flex; gap:12px; align-items:center; }
.brand-dot{
  width:14px; height:14px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, var(--love2), var(--love));
  box-shadow: 0 0 0 7px rgba(255,59,122,.14), 0 0 36px rgba(255,59,122,.22);
}
.brand-title{
  font-family: "Playfair Display", serif;
  font-weight:700;
  font-size: 18px;
  letter-spacing:.2px;
}
.brand-sub{ font-size:13px; color: var(--muted); margin-top:-2px; }

.mini-stats{
  display:flex; gap:10px; flex-wrap:wrap;
}
.mini-card{
  padding:10px 12px;
  border-radius:14px;
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.12);
  min-width: 190px;
}
.mini-label{ font-size:12px; color:var(--muted); }
.mini-value{ font-weight:600; }

.cardx{ border-radius:24px; }

.hero-title{
  font-family:"Playfair Display", serif;
  font-weight:700;
  font-size: 38px;
  line-height:1.05;
}
.hero-text{ font-size:16px; color: rgba(255,255,255,.92); }
.signature{ color: var(--gold); font-weight:600; }

.verse-hint{
  display:flex;
  align-items:center;
  gap:10px;
}
.verse-chip{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,59,122,.16);
  border:1px solid rgba(255,59,122,.25);
  color: rgba(255,255,255,.92);
  font-weight:700;
}
.verse-note{ font-size:12px; color: rgba(255,255,255,.75); }

.divider{
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
}

.statbox{
  padding:14px 14px;
  border-radius:18px;
  background: rgba(0,0,0,.16);
  border:1px solid rgba(255,255,255,.12);
  height:100%;
}
.statlabel{ font-size:12px; color:var(--muted); }
.statvalue{ font-weight:700; font-size:18px; margin-top:6px; }
.statnote{ font-size:12px; color:rgba(255,255,255,.75); margin-top:2px; }

.btn-love{
  background: linear-gradient(90deg, var(--love), var(--love2));
  border: none;
  color: #fff;
}
.btn-love:hover{
  filter: brightness(1.05);
}

.glow{
  box-shadow: 0 0 0 7px rgba(255,59,122,.14), 0 14px 34px rgba(255,59,122,.18);
}

.result{
  padding:14px 14px;
  border-radius:18px;
  background: rgba(255,59,122,.10);
  border:1px solid rgba(255,59,122,.22);
}
.result-title{
  font-weight:800;
  letter-spacing:.2px;
}
.result-text{ color: rgba(255,255,255,.92); margin-top:6px; }

.section-title{
  font-weight:800;
  font-size:18px;
  margin:0;
}
.section-sub{ color: var(--muted); font-size:13px; }

.pill{
  width:34px; height:34px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
}

.footer{
  padding:14px 16px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.tiny{ font-size:12px; color: rgba(255,255,255,.85); }

/* Fotos completas (sin recorte) */
.photo-frame{
  background:
    radial-gradient(800px 520px at 50% 25%, rgba(255,214,231,.16), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.35));
  border: 1px solid rgba(255,255,255,.14);
}

.carousel img{
  width:100%;
  height: 440px;
  object-fit: contain;     /* clave: no recorta */
  object-position: center;
  background: transparent;
}

@media (max-width: 576px){
  .carousel img{ height: 340px; }
  .hero-title{ font-size: 32px; }
}

/* PIN Gate + Loader */
.gate-screen, .loader-screen{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 9999;
  padding: 18px;
}

.gate-screen{
  background:
    radial-gradient(900px 600px at 30% 20%, rgba(255,59,122,.22), transparent 55%),
    linear-gradient(180deg, rgba(18,7,10,.96), rgba(42,14,21,.96));
}

.gate-card{
  width:min(560px, 100%);
  padding: 22px 20px;
  text-align:center;
}
.gate-badge{
  display:inline-block;
  padding: 7px 12px;
  border-radius:999px;
  background: rgba(255,59,122,.16);
  border:1px solid rgba(255,59,122,.25);
  color: rgba(255,255,255,.92);
  font-weight:700;
  font-size:12px;
}
.gate-title{
  margin: 14px 0 6px;
  font-family:"Playfair Display", serif;
  font-weight:700;
  font-size: 30px;
}
.gate-sub{ color: var(--muted); margin: 0; }
.gate-msg{ min-height:22px; font-size:13px; }

.loader-screen{
  background:
    radial-gradient(900px 600px at 30% 20%, rgba(255,122,168,.18), transparent 55%),
    linear-gradient(180deg, rgba(18,7,10,.98), rgba(42,14,21,.98));
}

.loader-card{
  width:min(420px, 100%);
  padding: 22px 18px;
  border-radius:22px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  text-align:center;
}

.loader-heart{
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  position: relative;
  transform: rotate(45deg);
  background: radial-gradient(circle at 30% 30%, var(--love2), var(--love));
  border-radius: 10px;
  animation: pulse 1.2s infinite ease-in-out;
}
.loader-heart::before,
.loader-heart::after{
  content:"";
  position:absolute;
  width:56px; height:56px;
  border-radius:50%;
  background: inherit;
}
.loader-heart::before{ left:-28px; top:0; }
.loader-heart::after{ left:0; top:-28px; }

@keyframes pulse{
  0%,100%{ transform: rotate(45deg) scale(1); filter: drop-shadow(0 12px 22px rgba(255,59,122,.18)); }
  50%{ transform: rotate(45deg) scale(1.07); filter: drop-shadow(0 16px 34px rgba(255,59,122,.24)); }
}

.loader-text .small{ color: var(--muted); font-size:13px; }
.loader-text .big{ font-weight:800; letter-spacing:1px; margin-top:2px; }

.loader-bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  overflow:hidden;
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,.12);
}
.loader-bar-fill{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, var(--love), var(--love2));
  border-radius:999px;
  transition: width .25s ease;
}
