/* =========================================================
   APP CITAS — Portal de acceso premium (rediseño dinámico)
   ========================================================= */

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

:root{
  --bg-0:#02060f;
  --bg-1:#060d1c;
  --accent-green:#22c55e;
  --accent-green-2:#16a34a;
  --accent-purple:#7c3aed;
  --accent-blue:#2563eb;
  --ink:#0f172a;
  --muted:#94a3b8;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}

html,body{
  background:var(--bg-0);
  color:#fff;
  min-height:100vh;
  overflow-x:hidden;
}

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

a{ color:inherit; }

/* ---------------- TOP BAR ---------------- */
.topbar{
  position:sticky;
  top:0;
  z-index:40;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 28px;
  background:rgba(2,6,15,.78);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
  flex-wrap:wrap;
}

.brand-mark{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand-mark .logo-box{
  width:44px;
  height:44px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:transparent;
  font-weight:900;
  font-size:15px;
  color:#04130a;
  overflow:hidden;
  flex-shrink:0;
}

.brand-mark .logo-box span{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:linear-gradient(135deg,#22c55e,#0ea5e9);
}

.brand-mark .logo-box img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
  display:block;
}

.brand-mark .name{
  font-size:18px;
  font-weight:900;
  letter-spacing:-.3px;
  line-height:1.1;
}

.brand-mark .name small{
  display:block;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.5px;
  color:var(--accent-green);
  text-transform:uppercase;
}

.topbar-flag{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13.5px;
  font-weight:900;
  color:#fff;
  padding:8px 16px 8px 8px;
  border-radius:30px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.16);
}

.topbar-flag img{
  width:30px;
  height:30px;
  border-radius:50%;
  object-fit:cover;
  box-shadow:0 0 0 2px rgba(255,255,255,.18);
}

.topbar-badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.badge{
  display:flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  border-radius:14px;
  padding:8px 14px;
  font-size:12px;
  font-weight:700;
  color:#dbeafe;
  white-space:nowrap;
}

.badge .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--accent-green);
  box-shadow:0 0 0 0 rgba(34,197,94,.6);
  animation:pulseDot 1.8s infinite;
}

@keyframes pulseDot{
  0%{ box-shadow:0 0 0 0 rgba(34,197,94,.55); }
  70%{ box-shadow:0 0 0 8px rgba(34,197,94,0); }
  100%{ box-shadow:0 0 0 0 rgba(34,197,94,0); }
}

.badge.live-badge span#liveText{
  max-width:200px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  display:inline-block;
}

.badge .avatars{
  display:flex;
}

.badge .avatars img{
  width:22px;
  height:22px;
  border-radius:50%;
  border:2px solid var(--bg-0);
  object-fit:cover;
  margin-left:-8px;
}
.badge .avatars img:first-child{ margin-left:0; }

/* ---------------- HERO ---------------- */
.hero-wrap{
  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:40px;
  align-items:center;
  padding:48px 5vw 70px;
  position:relative;
  background:
    radial-gradient(circle at 8% 18%,rgba(34,197,94,.18),transparent 32%),
    radial-gradient(circle at 95% 0%,rgba(124,58,237,.22),transparent 38%),
    linear-gradient(160deg,var(--bg-0),var(--bg-1) 55%,var(--bg-0));
}

.kicker-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.4);
  color:#86efac;
  font-size:12px;
  font-weight:900;
  letter-spacing:.5px;
  border-radius:20px;
  padding:7px 14px;
  margin-bottom:0;
}

.flag-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  border-radius:20px;
  padding:5px 14px 5px 5px;
  font-size:12px;
  font-weight:900;
  color:#fff;
}

.flag-pill img{
  width:26px;
  height:26px;
  border-radius:50%;
  object-fit:cover;
  box-shadow:0 0 0 2px rgba(255,255,255,.2);
}

.hero-copy h1{
  font-size:clamp(34px,5vw,58px);
  line-height:1.05;
  font-weight:950;
  letter-spacing:-1.4px;
}

.hero-copy h1 .accent{
  background:linear-gradient(90deg,#4ade80,#22d3ee);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero-copy p.lead{
  margin-top:18px;
  font-size:17px;
  line-height:1.6;
  color:#cbd5e1;
  max-width:520px;
}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-top:30px;
  max-width:560px;
}

.feature-pill{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  border-radius:16px;
  padding:14px 10px;
  text-align:center;
}

.feature-pill .ico{
  font-size:20px;
  margin-bottom:6px;
}

.feature-pill .label{
  font-size:11.5px;
  font-weight:800;
  color:#e2e8f0;
  line-height:1.25;
}

.cta-row{
  display:flex;
  gap:14px;
  margin-top:34px;
  flex-wrap:wrap;
}

.btn-primary, .btn-secondary{
  border:1px solid transparent;
  cursor:pointer;
  font-weight:800;
  font-size:15px;
  border-radius:14px;
  padding:16px 26px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
  transition:transform .15s ease, border-color .15s ease, background .2s ease;
}

.btn-primary{
  background:rgba(34,197,94,.08);
  border-color:rgba(74,222,128,.55);
  color:#86efac;
}

.btn-primary:hover{
  background:rgba(34,197,94,.16);
  border-color:#4ade80;
  transform:translateY(-2px);
}

.btn-secondary{
  background:rgba(124,58,237,.08);
  border-color:rgba(167,139,250,.55);
  color:#c4b5fd;
}

.btn-secondary:hover{
  background:rgba(124,58,237,.16);
  border-color:#a78bfa;
  transform:translateY(-2px);
}

.free-note{
  margin-top:14px;
  font-size:13px;
  color:#86efac;
  font-weight:700;
}
.free-note strong{ color:#4ade80; }

/* ---------------- PRICE BOX ---------------- */
.price-box{
  margin-top:30px;
  max-width:520px;
  background:linear-gradient(135deg,rgba(34,197,94,.12),rgba(2,6,15,.4));
  border:1px solid rgba(34,197,94,.4);
  border-radius:20px;
  padding:20px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.price-box .left small{
  display:block;
  color:#86efac;
  font-weight:900;
  font-size:11px;
  letter-spacing:1px;
  margin-bottom:6px;
}

.price-box .amount{
  display:flex;
  align-items:baseline;
  gap:10px;
}

.price-box .amount .now{
  font-size:34px;
  font-weight:950;
  color:#4ade80;
}

.price-box .amount .old{
  font-size:16px;
  color:#64748b;
  text-decoration:line-through;
}

.price-box .plan-name{
  font-size:12px;
  color:#cbd5e1;
  margin-top:4px;
}

.countdown{
  display:flex;
  gap:8px;
  align-items:center;
}

.countdown .seg{
  background:rgba(0,0,0,.4);
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  padding:8px 10px;
  text-align:center;
  min-width:48px;
}

.countdown .seg b{
  display:block;
  font-size:18px;
  font-weight:950;
}

.countdown .seg span{
  font-size:9px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.5px;
}

/* ---------------- VISUAL / SHOWCASE ---------------- */
.showcase{
  position:relative;
  min-height:560px;
}

.showcase-photo{
  position:relative;
  border-radius:28px;
  overflow:hidden;
  height:520px;
  background:
    linear-gradient(155deg,rgba(2,6,15,.15),rgba(2,6,15,.75) 75%),
    radial-gradient(circle at 30% 20%,#1d4f3f,transparent 55%),
    radial-gradient(circle at 80% 10%,#2c2360,transparent 50%),
    linear-gradient(135deg,#0b1f1a,#101a33 60%,#0b1f1a);
  box-shadow:0 40px 90px rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.08);
  background-image:url('/portal/assets/img/hero-salon.jpg');
       background-size:cover;
       background-position:center;
}

.showcase-photo img.hero-photo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.92;
}

.showcase-photo .photo-caption{
  position:absolute;
  left:24px;
  bottom:24px;
  z-index:5;
  background:rgba(2,6,15,.55);
  backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:12px 16px;
  max-width:280px;
}

.photo-caption strong{ font-size:14px; display:block; }
.photo-caption small{ color:#cbd5e1; font-size:12px; }

.mockups{
  position:absolute;
  right:-12px;
  bottom:-46px;
  display:flex;
  align-items:flex-end;
  gap:-10px;
  z-index:6;
}

.mockup-laptop{
  width:300px;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 30px 60px rgba(0,0,0,.55);
  border:6px solid #0b1220;
  background:#0b1220;
  transform:translateY(0);
}

.mockup-laptop img{ width:100%; display:block; }

.mockup-phone{
  width:118px;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 20px 40px rgba(0,0,0,.55);
  border:5px solid #0b1220;
  background:#0b1220;
  margin-left:-26px;
}

.mockup-phone img{ width:100%; display:block; }

.mockup-phone.phone-2{ margin-bottom:60px; }
.mockup-phone.phone-1{ margin-bottom:0px; }

.float-chip{
  position:absolute;
  z-index:8;
  background:rgba(2,6,15,.85);
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  padding:10px 14px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:800;
  box-shadow:0 14px 30px rgba(0,0,0,.45);
  animation:floatY 3.6s ease-in-out infinite;
}

@keyframes floatY{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-8px); }
}

.chip-top-left{ top:18px; left:18px; }
.chip-top-right{ top:46px; right:170px; }

.chip-green{ color:#4ade80; }
.chip-yellow{ color:#facc15; }

/* ---------------- TESTIMONIOS (carrusel) ---------------- */
.testimonials{
  padding:50px 5vw 20px;
}

.testimonials h3{
  text-align:center;
  font-size:22px;
  font-weight:900;
  margin-bottom:8px;
}

.testimonials > p.sub{
  text-align:center;
  color:var(--muted);
  margin-bottom:28px;
}

.testi-track{
  display:flex;
  gap:18px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding:4px 4px 14px;
  max-width:1100px;
  margin:0 auto;
  scrollbar-width:none;
}
.testi-track::-webkit-scrollbar{ display:none; }

.testi-card{
  scroll-snap-align:start;
  flex:0 0 280px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.1);
  border-radius:18px;
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.testi-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11.5px;
  font-weight:800;
}

.testi-tag{
  padding:4px 9px;
  border-radius:10px;
  background:rgba(255,255,255,.06);
}
.tag-new{ color:#4ade80; }
.tag-happy{ color:#facc15; }

.testi-net{ color:#94a3b8; }

.testi-text{
  font-size:13.5px;
  line-height:1.5;
  color:#e2e8f0;
}

.testi-who strong{ display:block; font-size:13px; }
.testi-who small{ color:#94a3b8; font-size:11.5px; }

.testi-dots{
  display:flex;
  justify-content:center;
  gap:6px;
  margin-top:4px;
}
.testi-dots span{
  width:7px;
  height:7px;
  border-radius:50%;
  background:rgba(255,255,255,.18);
}
.testi-dots span.active{ background:#4ade80; }

/* ---------------- MODAL ---------------- */
.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(2,6,15,.78);
  backdrop-filter:blur(6px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:100;
  padding:18px;
}

.modal-overlay.open{ display:flex; }

.modal-card{
  width:100%;
  max-width:440px;
  background:#fff;
  color:var(--ink);
  border-radius:26px;
  padding:36px 32px;
  position:relative;
  box-shadow:0 40px 90px rgba(0,0,0,.5);
  max-height:90vh;
  overflow-y:auto;
}

.modal-close{
  position:absolute;
  top:18px;
  right:18px;
  width:34px;
  height:34px;
  border-radius:50%;
  border:0;
  background:#f1f5f9;
  cursor:pointer;
  font-size:16px;
  font-weight:800;
  color:#475569;
}

.modal-logo{
  width:58px;
  height:58px;
  border-radius:50%;
  margin:0 auto 16px;
  display:grid;
  place-items:center;
  background:transparent;
  font-size:22px;
  overflow:hidden;
}
.modal-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
  display:block;
}

.modal-card h2{
  text-align:center;
  font-size:26px;
  font-weight:950;
  letter-spacing:-.6px;
}

.modal-card p.sub{
  text-align:center;
  color:#64748b;
  margin:6px 0 26px;
  font-size:14px;
}

.form-group{ margin-bottom:16px; }

label{
  display:block;
  font-size:12.5px;
  font-weight:850;
  margin-bottom:7px;
  color:#172033;
}

.input{
  width:100%;
  height:50px;
  border:1px solid #d7dce6;
  border-radius:13px;
  padding:0 15px;
  font-size:15px;
  outline:none;
  background:#fff;
  color:#0f172a;
}

.input:focus{
  border-color:#22c55e;
  box-shadow:0 0 0 4px rgba(34,197,94,.14);
}

.row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:6px 0 20px;
  font-size:12.5px;
  color:#475569;
}

.row label{
  display:flex;
  align-items:center;
  gap:6px;
  margin:0;
  color:#475569;
  font-weight:600;
}

.row a{ color:#16a34a; text-decoration:none; font-weight:800; }

.btn-submit{
  width:100%;
  height:52px;
  border:1px solid #16a34a;
  border-radius:14px;
  background:#16a34a;
  color:#fff;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  transition:transform .15s ease, background .2s ease;
}

.btn-submit:hover{ background:#15803d; transform:translateY(-1px); }

.btn-submit:disabled{ opacity:.6; cursor:not-allowed; }

.login-msg{
  margin-top:12px;
  text-align:center;
  font-size:13px;
  font-weight:800;
  min-height:18px;
}

.create{
  margin-top:20px;
  text-align:center;
  font-size:13.5px;
  color:#64748b;
}
.create a{ color:#16a34a; text-decoration:none; font-weight:900; }

.quick-roles{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-bottom:22px;
}
.quick-roles span{
  width:30px; height:30px; border-radius:50%;
  display:grid; place-items:center;
  font-size:12px; font-weight:900; color:#fff;
}

.purple{background:#7c3aed}
.blue{background:#2563eb}
.green{background:#16a34a}
.orange{background:#f97316}

/* ---------------- FOOTER STRIP ---------------- */
.trust-strip{
  display:flex;
  justify-content:center;
  gap:34px;
  flex-wrap:wrap;
  padding:24px 5vw 44px;
  border-top:1px solid rgba(255,255,255,.08);
  color:#94a3b8;
  font-size:13px;
  font-weight:700;
}

/* ---------------- RESPONSIVE ---------------- */
@media(max-width:1100px){
  .hero-wrap{
    grid-template-columns:1fr;
    padding-top:30px;
  }
  .showcase{ min-height:auto; margin-top:10px; }
  .showcase-photo{ height:420px; }
  .mockups{ right:8px; bottom:-30px; }
  .mockup-laptop{ width:230px; }
  .mockup-phone{ width:92px; }
  .feature-grid{ grid-template-columns:repeat(2,1fr); }
}

@media(max-width:640px){
  .topbar{ padding:12px 16px; justify-content:space-between; }
  .hero-wrap{ padding:24px 18px 50px; text-align:center; }
  .hero-copy h1{ font-size:32px; }
  .feature-grid{ max-width:360px; margin-left:auto; margin-right:auto; }
  .lead{ margin-left:auto; margin-right:auto; }
  .price-box{ flex-direction:column; align-items:stretch; text-align:center; }
  .price-box .amount{ justify-content:center; }
  .countdown{ justify-content:center; }
  .cta-row{
    flex-direction:column;
    align-items:stretch;
    width:100%;
  }
  .btn-primary, .btn-secondary{
    width:100%;
    text-align:center;
  }
  .free-note{ text-align:center; }
  .showcase-photo{ height:320px; border-radius:22px; }
  .mockups{ display:none; }
  .testi-card{ flex-basis:78vw; }
  .modal-card{ padding:28px 20px; }
}
