/* css/pages.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0b0f14;
  --bg-soft: #121821;
  --card: #151c26;
  --border: #253041;
  --text: #edf2f7;
  --muted: #98a4b3;
  --primary: #8dfc39;
  --primary-dark: #74d12e;
  --white: #ffffff;
  --danger: #ff6b6b;
  --success: #8dfc39;
  --container: 1200px;
  --radius: 18px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
  font-weight: 300;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  margin-top: 15px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  font-weight: 500;
}

.site-main {
  min-height: calc(100vh - 140px);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.88rem;
  font-weight: 300;
}

.hero {
  padding: 56px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 11px;
  background: rgba(141, 252, 57, 0.12);
  color: var(--primary);
  border: 1px solid rgba(141, 252, 57, 0.25);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 500;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  line-height: 1.08;
  font-weight: 500;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 300;
}

.hero-card,
.cards-grid,
.form-grid {
  display: grid;
  gap: 14px;
}

.hero-card {
  grid-template-columns: 1fr;
}

.metric-card,
.info-card,
.pricing-box,
.auth-card,
.error-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.metric-card,
.info-card {
  padding: 18px;
}

.metric-label,
.price-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 300;
}

.metric-value,
.price-value {
  margin-top: 6px;
  font-size: 1.45rem;
  font-weight: 500;
}

.metric-meta,
.price-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 300;
}

.section {
  padding: 24px 0 44px;
}

.section-dark {
  background: rgba(255, 255, 255, 0.02);
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 500;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
}

.cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 500;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
  font-weight: 300;
}

.pricing-box {
  padding: 18px;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.92rem;
  font-weight: 300;
}

.pricing-row strong {
  font-weight: 500;
}

.pricing-row:last-child {
  border-bottom: 0;
}

.cta-box {
  text-align: center;
  padding: 30px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cta-box h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.55rem;
  font-weight: 500;
}

.cta-box p {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 18px;
  font-size: 0.94rem;
  line-height: 1.65;
  font-weight: 300;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #081106;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.04);
}

.btn-block {
  width: 100%;
}

.auth-section {
  padding: 44px 0;
}

.auth-wrap {
  display: flex;
  justify-content: center;
}

.auth-wrap-wide .auth-card {
  max-width: 920px;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  padding: 24px;
}

.auth-head h1 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 500;
}

.auth-head p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 300;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 0 13px;
  background: #0d131b;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1;
}

.form-group textarea {
  height: auto;
  min-height: 110px;
  padding: 12px 13px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(141, 252, 57, 0.5);
}

.price-preview {
  padding: 16px;
  background: #0d131b;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.auth-links {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
}

.auth-links a {
  color: var(--primary);
  font-weight: 500;
}

.alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(141, 252, 57, 0.1);
  border: 1px solid rgba(141, 252, 57, 0.25);
  color: var(--white);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 300;
}

.error-section {
  padding: 64px 0;
}

.error-box {
  padding: 30px;
  text-align: center;
}

.error-box h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 2.4rem;
  font-weight: 500;
}

.error-box p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 0.92rem;
  font-weight: 300;
}

.field-help {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.3;
  font-weight: 300;
  color: var(--muted);
}

.field-help-slug.is-ok {
  color: var(--success);
}

.field-help-slug.is-error {
  color: var(--danger);
}

.phone-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  min-height: 42px;
  background: #0d131b;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
  border-right: 1px solid var(--border);
}

.phone-wrap input {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  height: 100% !important;
  min-height: 100% !important;
}

.phone-wrap:focus-within {
  border-color: rgba(141, 252, 57, 0.5);
}

.qty-input {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.qty-input input {
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 0 46px;
  text-align: center;
  background: #0d131b;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1;
}

.qty-input input:focus {
  outline: none;
  border-color: rgba(141, 252, 57, 0.5);
}

.qty-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  transition: 0.2s ease;
  z-index: 2;
}

.qty-btn:hover {
  border-color: rgba(141, 252, 57, 0.45);
  color: var(--white);
}

.qty-btn-left {
  left: 6px;
}

.qty-btn-right {
  right: 6px;
}

@media (max-width: 980px) {
  .hero-grid,
  .cards-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .header-inner,
  .main-nav {
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 10px;
  }

  .pricing-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand {
    margin: 0 auto;
    margin-top: 5px;
  }
}



:root {
  --app-sidebar-w: 260px;
}

/* layout interno */
.app-body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* sidebar fijo izquierda */
.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--app-sidebar-w);
  height: 100vh;
  z-index: 60;
  background: #0f141b;
  border-right: 1px solid var(--border);
}

.app-sidebar-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 16px;
  overflow-y: auto;
}

.app-sidebar-top {
  display: grid;
  gap: 18px;
}

.app-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 4px 6px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.app-sidebar-brand img {
  display: block;
  max-width: 120px;
}

.app-nav {
  display: grid;
  gap: 8px;
}

.app-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
  transition: 0.2s ease;
}

.app-nav a:hover,
.app-nav a.active {
  background: rgba(141, 252, 57, 0.10);
  color: var(--white);
  font-weight: 500;
}

.app-sidebar-bottom {
  display: grid;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.app-account-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  word-break: break-word;
  text-align: center;
}

.app-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.2s ease;
}

.app-logout-btn:hover {
  background: rgba(255,255,255,0.04);
  color: white;
}

.app-main {
  margin-left: var(--app-sidebar-w);
  min-height: 100vh;
  padding: 24px;
}

/* botón mobile */
.app-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 980px) {
  .app-menu-toggle {
    display: inline-flex;
  }

  .app-sidebar {
    left: -260px;
    transition: left 0.2s ease;
  }

  .app-sidebar.is-open {
    left: 0;
  }

  .app-main {
    margin-left: 0;
    padding: 16px;
  }
}


/* =========================
   TOAST / MODAL CENTRAL
========================= */

.app-toast {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 20px;
}

.app-toast.is-visible {
  display: flex;
}

.app-toast-box {
  min-width: 280px;
  max-width: 420px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(91, 91, 91, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  text-align: center;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.app-toast.is-visible .app-toast-box {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app-toast-box.is-success {
  border-color: rgba(141, 252, 57, 0.28);
}

.app-toast-box.is-error {
  border-color: rgba(255, 107, 107, 0.28);
}

.app-toast-title {
  font-size: 0.98rem;
  font-weight: 500;
  color: rgb(255, 255, 255);
}

.app-toast-text {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgb(203, 203, 203);
}