/* assets/css/styles.css - Diseño Mobile-First y PWA Premium para FactuWeb */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #080c14;
  --bg-gradient: radial-gradient(circle at top, #0f172a 0%, #080c14 100%);
  --panel-bg: rgba(17, 24, 39, 0.75);
  --panel-bg-solid: #111827;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --accent-cyan: #0ea5e9;
  --accent-green: #10b981;
  --accent-coral: #f43f5e;
  --accent-amber: #f59e0b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #4b5563;
  --font-family: 'Outfit', sans-serif;
  --bottom-bar-height: 68px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
/* Reset explícito para eliminar cualquier margen o espacio del navegador */
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Cuando está activa la landing: body no debe ser flex (evita espacio arriba del navbar) */
body.page-landing,
body.page-auth {
  display: block !important;
  overflow-y: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #38bdf8;
}

/* --- CONTENEDORES --- */
.app-container {
  width: 100%;
  max-width: 480px; /* Tamaño móvil ideal */
  margin: 0 auto;
  padding: 16px;
  padding-bottom: calc(var(--bottom-bar-height) + 24px);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.desktop-wide {
  max-width: 1200px; /* Permite ensanchar para administradores en desktop */
}

/* --- ESTILOS DE CABECERA --- */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 8px 0;
}

.app-logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-logo span {
  font-weight: 300;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
}

/* --- TARJETAS PREMIUM (GLASSMORPHISM) --- */
.card {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:active {
  transform: scale(0.99);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- BOTONES PREMIUM --- */
.btn {
  font-family: var(--font-family);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.btn-primary:active {
  background: #0284c7;
  transform: translateY(1px);
}

.btn-success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-success:active {
  background: #059669;
  transform: translateY(1px);
}

.btn-danger {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

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

.btn-sm {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 8px;
  width: auto;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 15px;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
  background: rgba(0, 0, 0, 0.3);
}

select.form-control {
  background-color: #111827; /* Fondo oscuro sólido para evitar el gris nativo de Windows */
  color: var(--text-primary);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

select.form-control option {
  background-color: #1f2937; /* Fondo oscuro para los items de la lista */
  color: var(--text-primary);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* --- PANTALLAS DE LOGIN / REGISTRO --- */
.auth-wrapper {
  max-width: 420px;
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: var(--panel-bg-solid);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* --- BARRA DE NAVEGACIÓN INFERIOR (BOTTOM NAV) --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--bottom-bar-height);
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
  height: 100%;
  gap: 4px;
  transition: all 0.2s ease;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 2;
  transition: all 0.2s ease;
}

.nav-item.active {
  color: var(--accent-cyan);
}

.nav-item.active svg {
  stroke: var(--accent-cyan);
  filter: drop-shadow(0 0 6px rgba(14, 165, 233, 0.4));
}

/* --- PESTAÑAS (PAGES) DE LA APLICACIÓN --- */
.app-page {
  display: none;
  animation: pageFadeIn 0.3s ease;
}

.app-page.active {
  display: flex;
  flex-direction: column;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- COMPONENTES DEL DASHBOARD --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-trial {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-paused {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-coral);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-box {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.stat-val {
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px;
}

/* --- LISTAS DE ELEMENTOS (HISTORIAL/CLIENTES) --- */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  transition: background 0.2s ease;
}

.list-item:active {
  background: rgba(255, 255, 255, 0.05);
}

.list-item-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.list-item-title {
  font-weight: 600;
  font-size: 15px;
}

.list-item-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

.list-item-right {
  text-align: right;
}

.list-item-price {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

/* --- MODALES Y BOTTOM SHEETS --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: block;
  opacity: 1;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 480px;
  background: var(--panel-bg-solid);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-top: 1px solid var(--border-color);
  padding: 24px;
  z-index: 1001;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 85vh;
  overflow-y: auto;
}

.bottom-sheet.active {
  transform: translate(-50%, 0);
}

.bottom-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.bottom-sheet-title {
  font-size: 18px;
  font-weight: 700;
}

.bottom-sheet-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
}

/* --- FORMULARIO DE FACTURA DINÁMICA --- */
.items-list {
  margin-bottom: 16px;
}

.item-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-card-details {
  flex-grow: 1;
}

.item-card-title {
  font-size: 14px;
  font-weight: 600;
}

.item-card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.item-card-remove {
  background: none;
  border: none;
  color: var(--accent-coral);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
}

/* --- PANTALLA DE BLOQUEO DE SOPORTE --- */
.lock-wrapper {
  margin: auto 0;
  text-align: center;
  padding: 20px;
}

.lock-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent-coral);
}

.lock-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.lock-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  font-weight: 700;
}

.btn-whatsapp:active {
  background: #128c7e;
}

/* --- ESTILOS DE LA VISTA ADMINISTRADOR (ESCRITORIO ADAPTABLE) --- */
@media (min-width: 768px) {
  body {
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px; /* Espacio para la barra de navegación superior en escritorio */
    padding-bottom: 30px;
  }
  
  .app-container {
    max-width: 1000px;
    padding-bottom: 24px;
  }

  .app-container.desktop-wide {
    max-width: 1100px;
    padding: 30px;
  }

  /* Transformar barra inferior en barra de navegación superior en escritorio */
  .bottom-nav {
    top: 0;
    bottom: auto;
    border-top: none;
    border-bottom: 1px solid var(--border-color);
    background: rgba(17, 24, 39, 0.95);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    max-width: 1000px;
  }

  .nav-item {
    flex-direction: row;
    font-size: 13px;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    height: 48px;
    width: auto;
  }

  .nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-item.active {
    background: rgba(14, 165, 233, 0.08);
  }

  /* Distribución de la Facturación en dos columnas para escritorio */
  .invoice-grid-desktop {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    align-items: start;
  }

  /* Distribución de la Configuración en dos columnas en escritorio */
  #settings-page.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .admin-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
  }

  .admin-table-wrapper {
    overflow-x: auto;
  }

  table.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
  }

  table.admin-table th, table.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
  }

  table.admin-table th {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
  }

  table.admin-table td {
    font-size: 14px;
  }
}

/* --- ESTILOS DE IMPRESIÓN --- */
@media print {
  body {
    background: white !important;
    color: black !important;
    font-size: 12px;
  }

  .app-container, .bottom-nav, .btn, .modal-overlay, .bottom-sheet, .app-header {
    display: none !important;
  }

  #invoice-print-container {
    display: block !important;
  }
}

/* --- CUSTOM ALERT MODALS --- */
.custom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.custom-alert-overlay.active {
  opacity: 1;
}

.custom-alert-box {
  background: var(--panel-bg-solid);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  width: 88%;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.85);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-alert-overlay.active .custom-alert-box {
  transform: scale(1);
}

.custom-alert-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-alert-icon svg {
  width: 24px;
  height: 24px;
}

/* Tipos de Alerta */
.custom-alert-box.success .custom-alert-icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
}
.custom-alert-box.success {
  border-color: rgba(16, 185, 129, 0.25);
}

.custom-alert-box.error .custom-alert-icon {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-coral);
}
.custom-alert-box.error {
  border-color: rgba(244, 63, 94, 0.25);
}

.custom-alert-box.info .custom-alert-icon {
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-cyan);
}
.custom-alert-box.info {
  border-color: rgba(14, 165, 233, 0.25);
}

.custom-alert-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.custom-alert-message {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.custom-alert-btn {
  padding: 10px 24px;
  font-size: 14px;
  width: auto;
  border-radius: 10px;
}

/* ================================================================
   LANDING PAGE - DISEÑO FULLSCREEN PROFESIONAL
   ================================================================ */

/* Reset de body para la landing */
body:has(#landing-container[style*="block"]),
body:has(#landing-container:not([style*="none"])) {
  display: block;
  overflow-x: hidden;
}

#landing-container {
  display: block;
  width: 100%;
  min-height: 100vh;
  background: #060a14;
  color: #f8fafc;
  font-family: 'Outfit', sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* Fondo animado con partículas/gradiente */
#landing-container::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(14, 165, 233, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 60%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#landing-container > * {
  position: relative;
  z-index: 1;
}

/* ---- NAVBAR ---- */
.land-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 64px;
  background: rgba(6, 10, 20, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}

.land-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: -0.3px;
}

.land-nav-logo svg {
  width: 26px;
  height: 26px;
}

.land-nav-logo .logo-dot {
  color: #0ea5e9;
}

.land-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.land-nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
}

.land-nav-link:hover {
  color: #fff;
}

.land-nav-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
}

.land-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Outfit', sans-serif;
}
.land-btn-ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.25);
}

.land-btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border: none;
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 4px 14px rgba(14,165,233,0.3);
}
.land-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14,165,233,0.4);
}

@media (max-width: 768px) {
  .land-nav {
    padding: 0 20px;
  }
  .land-nav-links {
    display: none;
  }
}

/* ---- HERO ---- */
.land-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
}

.land-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.3px;
  animation: fadeInDown 0.6s ease both;
}

.land-hero-badge svg {
  width: 13px;
  height: 13px;
}

.land-hero-title {
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  color: #fff;
  max-width: 900px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s 0.1s ease both;
}

.land-hero-title .gradient-text {
  background: linear-gradient(135deg, #0ea5e9 0%, #10b981 60%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.land-hero-subtitle {
  font-size: clamp(15px, 2vw, 19px);
  color: #94a3b8;
  max-width: 600px;
  line-height: 1.65;
  margin-bottom: 44px;
  font-weight: 400;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.land-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.land-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 8px 32px rgba(14,165,233,0.35);
  transition: all 0.25s;
  text-decoration: none;
}
.land-cta-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(14,165,233,0.45);
  color: #fff;
}
.land-cta-main svg {
  width: 16px;
  height: 16px;
}

.land-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all 0.25s;
  text-decoration: none;
}
.land-cta-secondary:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

/* Mockup flotante */
.land-hero-visual {
  margin-top: 70px;
  position: relative;
  animation: fadeInUp 0.8s 0.4s ease both;
}

.land-mockup {
  width: 280px;
  background: linear-gradient(145deg, #111827, #0f172a);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 1px rgba(14,165,233,0.1),
    0 32px 80px rgba(0,0,0,0.6),
    0 0 80px rgba(14,165,233,0.08);
  padding: 20px;
  text-align: left;
  animation: float 4s ease-in-out infinite;
}

.land-mockup-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.land-mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.land-mockup-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
}

.land-mockup-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}

.land-mockup-label {
  height: 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 8px;
}

.land-mockup-value {
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(14,165,233,0.3), rgba(16,185,129,0.2));
}

.land-mockup-badge {
  display: inline-block;
  background: rgba(16,185,129,0.15);
  color: #34d399;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  margin-top: 8px;
}

/* ---- LOGOS / TRUST BAR ---- */
.land-trust {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.land-trust p {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.land-trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.land-trust-logo {
  font-size: 14px;
  font-weight: 800;
  color: #374151;
  letter-spacing: -0.5px;
}

/* ---- FEATURES ---- */
.land-features {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.land-section-header {
  text-align: center;
  margin-bottom: 64px;
}

.land-section-badge {
  display: inline-block;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.land-section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.land-section-sub {
  font-size: 16px;
  color: #64748b;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

.land-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.land-feature-card {
  background: linear-gradient(145deg, #111827, #0d1424);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.land-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.land-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14,165,233,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(14,165,233,0.05);
}

.land-feature-card:hover::before {
  opacity: 1;
}

.land-feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.land-feature-icon-wrap.cyan { background: rgba(14,165,233,0.12); color: #0ea5e9; }
.land-feature-icon-wrap.green { background: rgba(16,185,129,0.12); color: #10b981; }
.land-feature-icon-wrap.amber { background: rgba(245,158,11,0.12); color: #f59e0b; }
.land-feature-icon-wrap.violet { background: rgba(139,92,246,0.12); color: #8b5cf6; }

.land-feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.land-feature-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* ---- PRICING ---- */
.land-pricing {
  padding: 100px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.land-pricing-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 0;
}

.land-pricing-card {
  background: linear-gradient(145deg, #111827, #0d1424);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  transition: all 0.3s ease;
}

.land-pricing-card.featured {
  border-color: rgba(14,165,233,0.3);
  box-shadow:
    0 0 0 1px rgba(14,165,233,0.1),
    0 32px 80px rgba(0,0,0,0.4),
    0 0 60px rgba(14,165,233,0.06);
}

.land-pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 18px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.land-pricing-name {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.land-pricing-price {
  font-size: 52px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 6px;
}

.land-pricing-price sup {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: top;
  margin-top: 10px;
  display: inline-block;
  color: #94a3b8;
}

.land-pricing-desc {
  font-size: 13px;
  color: #475569;
  margin-bottom: 32px;
  line-height: 1.5;
}

.land-pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.land-pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
}

.land-pricing-features li .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.land-pricing-features li .check svg {
  width: 11px;
  height: 11px;
  stroke-width: 3;
}

.land-cta-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 8px 28px rgba(14,165,233,0.3);
  transition: all 0.25s;
}

.land-cta-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(14,165,233,0.42);
}

/* ---- FOOTER ---- */
.land-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 48px 40px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.land-footer-logo {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.land-footer-logo span {
  color: #0ea5e9;
}

.land-footer-links {
  display: flex;
  gap: 24px;
}

.land-footer-link {
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.land-footer-link:hover {
  color: #94a3b8;
}

.land-footer-copy {
  font-size: 12px;
  color: #374151;
}

@media (max-width: 640px) {
  .land-footer {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  .land-pricing-card {
    padding: 40px 28px;
  }
  .land-hero {
    padding: 90px 20px 50px;
  }
}

/* ---- ANIMACIONES ---- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* Auth container - pantalla completa limpia sin herencia de app-container */
#auth-container {
  width: 100%;
  min-height: 100vh;
  max-width: 100% !important;     /* anula el max-width:480px de .app-container */
  padding: 0 !important;           /* anula el padding de .app-container */
  padding-bottom: 0 !important;
  background: var(--bg-color);
  background-image: var(--bg-gradient);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


