:root{
  /* MORADO CLARO REAL (fondo) */
  --bg1:#241a3a;  /* morado oscuro suave (no negro) */
  --bg2:#3a2a5f;  /* morado medio suave */

  /* Texto */
  --text:#f6f1ff;
  --muted:rgba(246,241,255,.78);
  --line:rgba(255,255,255,.14);

  /* MORADO CLARO BAJO (principal) */
  --accent: rgba(176,149,247,.92);   /* #B095F7 */
  --accent2: rgba(159,86,165,.55);   /* #9F56A5 */

  /* Cards */
  --card: rgba(255,255,255,.07);
  --card2: rgba(255,255,255,.12);
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
}

body{
  /* ✅ Opción A: fondo morado CLARO, no negro */
  background:
    radial-gradient(circle at 30% 10%, rgba(176,149,247,.30), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(159,86,165,.22), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  min-height: 100vh;
  overflow-x:hidden;
}

/* ================= BACKGROUND ================= */
#bg-canvas{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ✅ Overlay suave (deja el morado CLARO visible) */
.bg-overlay{
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.06), transparent 55%),
    radial-gradient(circle at 15% 15%, rgba(176,149,247,.14), transparent 50%),
    radial-gradient(circle at 85% 25%, rgba(159,86,165,.12), transparent 55%),
    radial-gradient(circle at 50% 110%, rgba(0,0,0,.20), transparent 55%);
  z-index: 1;
  pointer-events:none;
}

/* ================= NAV ================= */
.topbar{
  position: sticky;
  top:0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(20,14,34,.45); /* menos oscuro */
  border-bottom: 1px solid var(--line);
}

.nav{
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display:flex;
  align-items:center;
  gap:14px;
}

.brand{ display:flex; align-items:center; }

/* Logo navbar: circular visual */
.brand-logo{
  height: 34px;
  width: 34px;
  display:block;
  border-radius: 999px;
  object-fit: cover;

  border: 1px solid rgba(176,149,247,.28);
  background: rgba(0,0,0,.10);
}

.nav-toggle{
  margin-left:auto;
  width:42px;
  height:38px;
  display:none;
  background: transparent;
  border:1px solid var(--line);
  border-radius:12px;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  height:2px;
  margin:6px 8px;
  background: rgba(255,255,255,.78);
  border-radius: 2px;
}

.nav-links{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:14px;
}

.nav-links a{
  color: var(--text);
  text-decoration:none;
  font-size: 14px;
  opacity:.9;
}
.nav-links a:hover{ opacity: 1; }

/* Botón Contacto */
.nav-cta{
  padding:10px 12px;
  border-radius:14px;
  border: 1px solid rgba(176,149,247,.32);
  background: rgba(176,149,247,.12);
}

/* Botón Login */
.btn-login{
  padding:10px 12px;
  border-radius:14px;
  border: 1px solid rgba(176,149,247,.45);
  background: rgba(176,149,247,.16);
}
.btn-login:hover{
  border-color: rgba(176,149,247,.70);
  background: rgba(176,149,247,.22);
}

/* ================= LAYERS ================= */
.hero, .panel, .footer{
  position: relative;
  z-index: 2;
}

/* ================= HERO ================= */
.hero{
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 16px 30px;
  text-align:center;
}

.hero-title{
  font-size: clamp(28px, 5vw, 54px);
  letter-spacing: .06em;
  margin: 0 0 14px;
}

/* ✅ Logo grande en HERO (recorte circular real) */
.hero-logo{
  width: min(340px, 82vw);
  height: min(340px, 82vw);
  display:block;
  margin: 0 auto 16px;

  /* Mantén recorte circular por si el PNG no está perfecto */
  border-radius: 999px;
  object-fit: cover;

  /* ❌ quita el “círculo donde va la imagen” */
  border: none;
  background: transparent;
  box-shadow: none;
  filter: none;
}


.subtitle{
  margin: 0 auto 18px;
  max-width: 820px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.hero-actions{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hero-mini{
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

/* ================= SECTIONS ================= */
.panel{
  max-width: 1100px;
  margin: 0 auto;
  padding: 38px 16px;
}

.panel h2{
  margin: 0 0 10px;
  font-size: 24px;
}

.lead{
  margin: 0 0 18px;
  color: var(--muted);
  line-height:1.5;
}

.grid{
  display:grid;
  gap: 14px;
}

/* ================= CARDS ================= */
.cards{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(6px);
}

.card h3{ margin: 8px 0 8px; }
.card p{ margin: 8px 0; color: var(--muted); }

/* Badge morado claro */
.badge{
  display:inline-block;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(176,149,247,.38);
  background: rgba(176,149,247,.14);
  color: rgba(255,255,255,.94);
}

/* ================= PRODUCTS ================= */
.products{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 12px;
  backdrop-filter: blur(6px);
}

.product-img{
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  aspect-ratio: 3 / 4;
}

.product-img img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.muted{ color: var(--muted); }

/* ================= LOCATION ================= */
.location-box{
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}

/* ================= CONTACT ================= */
.contact-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
}

.contact-form, .contact-box{
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  padding: 16px;
  backdrop-filter: blur(6px);
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom: 12px;
}

label{ font-size: 13px; color: rgba(255,255,255,.92); }

input, textarea{
  background: rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 12px;
  color: var(--text);
  outline:none;
}

input:focus, textarea:focus{
  border-color: rgba(176,149,247,.65);
  box-shadow: 0 0 0 3px rgba(176,149,247,.22);
}

.form-note{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.contact-meta{
  margin-top: 14px;
  display:grid;
  gap:8px;
}

.meta-k{ color: var(--muted); }
.meta-v{ color: rgba(255,255,255,.90); }

.login-box{
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.14);
}

/* ================= BUTTONS ================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration:none;
  cursor:pointer;
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
  font-weight: 750;
  font-size: 14px;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}

.btn:active{ transform: scale(.98); }

/* Principal morado claro */
.btn-solid{
  background: rgba(176,149,247,.22);
  border-color: rgba(176,149,247,.55);
}
.btn-solid:hover{
  background: rgba(176,149,247,.30);
  border-color: rgba(176,149,247,.75);
}

.btn-ghost{
  background: rgba(255,255,255,.07);
}
.btn-ghost:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(176,149,247,.45);
}

/* ================= FOOTER ================= */
.footer{
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(20,14,34,.45);
  padding: 22px 16px;
  backdrop-filter: blur(10px);
}

.footer-wrap{
  max-width: 1100px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.footer a{
  color: var(--text);
  opacity:.88;
  text-decoration:none;
  display:block;
  margin-top: 8px;
  font-size: 14px;
}
.footer a:hover{ opacity: 1; }

.footer-bottom{
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

/* ================= WA FLOAT ================= */
.wa-float{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;

  background: rgba(176,149,247,.26);
  border: 1px solid rgba(176,149,247,.60);

  color: var(--text);
  text-decoration:none;
  font-weight: 900;
}
.wa-float:hover{
  background: rgba(176,149,247,.34);
  border-color: rgba(176,149,247,.80);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px){
  .cards, .products{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }

  .nav-toggle{ display:block; }

  .nav-links{
    display:none;
    width:100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 0;
  }
  .nav-links.is-open{ display:flex; }
  .nav{ flex-wrap: wrap; }

  .hero{ padding-top: 62px; }
  .hero-logo{ width: min(300px, 84vw); height: min(300px, 84vw); }
}
