/* =========================
   CX3C STORE – INDEX FINAL
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  background: #05071a;
  color: #ffffff;
}

/* =========================
   HEADER
========================= */

.site-header {
  background: linear-gradient(90deg, #2b0a5f, #13003b);
  padding: 12px 24px;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  height: 42px;
  display: block;
}

/* User actions */
.user-actions {
  display: flex;
  gap: 12px;
}

.user-actions a {
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  transition: 0.2s ease;
}

.user-actions a[href*="login"] {
  border: 1px solid rgba(124,58,237,0.5);
}

.user-actions a[href*="registro"] {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  box-shadow: 0 6px 18px rgba(124,58,237,0.35);
}

.user-actions a:hover {
  transform: translateY(-1px);
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  height: 80vh;
  min-height: 520px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15,23,42,0.95) 0%,
    rgba(88,28,135,0.85) 45%,
    rgba(88,28,135,0.25) 70%,
    rgba(88,28,135,0) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  gap: 16px;
}

.hero-overlay h1 {
  font-size: 3.2rem;
  font-weight: 800;
}

.hero-overlay p {
  font-size: 1.1rem;
  max-width: 520px;
  color: #e5e7eb;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  padding: 14px 28px;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 10px 30px rgba(124,58,237,0.35);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.hero-note {
  font-size: 0.95rem;
  color: #c7c9ff;
}

.hero-note a {
  color: #7dd3fc;
  font-weight: 600;
  text-decoration: none;
}

/* =========================
   FOOTER
========================= */

.footer {
  text-align: center;
  padding: 32px;
  background: #020617;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  .hero-overlay {
    padding: 40px 24px;
    background: linear-gradient(
      180deg,
      rgba(15,23,42,0.95) 0%,
      rgba(88,28,135,0.85) 65%,
      rgba(88,28,135,0.5) 100%
    );
  }

  .hero-overlay h1 {
    font-size: 2.4rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .brand-logo {
    height: 36px;
  }
}

.user-account {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 16px;
}

.account-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.account-label {
  font-size: 12px;
  opacity: 0.7;
}

.account-email {
  font-size: 13px;
  font-weight: 500;
}


/* =========================
   USER MENU
========================= */

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.user-trigger:hover {
  background: rgba(255,255,255,0.08);
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.user-label {
  font-size: 14px;
  color: #e5e7eb;
}

/* Dropdown */

.user-dropdown {
  position: absolute;
  top: 52px;
  right: 0;
  background: #0b1020;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 12px;
  min-width: 220px;
  display: none;
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
  z-index: 1000;
}

.user-menu:hover .user-dropdown {
  display: block;
}

.user-email {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 10px;
  word-break: break-all;
}

.user-dropdown a,
.user-dropdown button {
  width: 100%;
  display: block;
  background: none;
  border: none;
  color: #e5e7eb;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: rgba(255,255,255,0.08);
}

.user-dropdown button {
  color: #f87171;
}

/* =========================
   ACCOUNT MENU
========================= */

.account-menu {
  position: relative;
}

.account-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
}

.account-trigger:hover {
  background: rgba(255,255,255,0.14);
}

.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.account-text {
  font-size: 14px;
  font-weight: 500;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
  padding: 12px;
  display: none;
  z-index: 1000;
}

.account-dropdown.open {
  display: block;
}

.account-email {
  font-size: 13px;
  color: #94a3b8;
  padding: 8px 10px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 8px;
}

.dropdown-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #e5e7eb;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown-item:hover {
  background: #1e293b;
}

.dropdown-item.danger {
  color: #f87171;
}

.dropdown-item.danger:hover {
  background: rgba(248,113,113,0.15);
}