/* Landing View */

.landing {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #1a1f3c 100%);
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: center;
}

.landing-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.landing-logo-icon {
  font-size: 4rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
  user-select: none;
  cursor: pointer;
}

.landing-logo-text {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.landing-tagline {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.landing-tagline h1 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.landing-tagline p {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.landing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.landing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: var(--radius-lg);
}

.landing-feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  flex-shrink: 0;
}

.landing-feature-text {
  flex: 1;
}

.landing-feature-text strong {
  display: block;
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.landing-feature-text span {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.landing-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.landing-skip {
  margin-top: var(--space-md);
  text-align: center;
}

.landing-skip a {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Larger screens - restore bigger sizes */
@media (min-height: 800px) {
  .landing-logo {
    margin-bottom: var(--space-xl);
  }

  .landing-logo-icon {
    font-size: 5rem;
    margin-bottom: var(--space-md);
  }

  .landing-logo-text {
    font-size: var(--text-3xl);
  }

  .landing-tagline {
    margin-bottom: var(--space-2xl);
  }

  .landing-tagline h1 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
  }

  .landing-tagline p {
    font-size: var(--text-base);
  }

  .landing-features {
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
  }

  .landing-feature {
    padding: var(--space-md);
  }

  .landing-feature-icon {
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
  }

  .landing-feature-text strong {
    font-size: var(--text-base);
    margin-bottom: var(--space-xs);
  }

  .landing-feature-text span {
    font-size: var(--text-sm);
  }

  .landing-actions {
    gap: var(--space-md);
  }

  .landing-skip {
    margin-top: var(--space-lg);
  }

  .landing-skip a {
    font-size: var(--text-sm);
  }
}

/* Bienvenida View - Chat Bubbles */

.chat-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.chat-bubble {
  max-width: 85%;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-xl);
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.chat-bubble--eva {
  background: var(--bg-card);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: var(--radius-sm);
}

.chat-bubble--user {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: var(--radius-sm);
}

.chat-bubble p {
  color: inherit;
  margin-bottom: var(--space-sm);
}

.chat-bubble p:last-child {
  margin-bottom: 0;
}

.chat-bubble strong {
  color: var(--primary-light);
}

.chat-bubble--eva strong {
  color: var(--primary);
}

.chat-typing {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-md);
}

.chat-typing span {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

.eva-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: white;
  margin-bottom: var(--space-md);
}

/* Registro View */

.registro-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.registro-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.registro-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.registro-step-dot.active {
  background: var(--primary);
}

.tyc-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.tyc-box h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

/* Menu View */

.menu-welcome {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.menu-welcome-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  font-size: var(--text-2xl);
}

.menu-welcome h2 {
  margin-bottom: var(--space-xs);
}

.menu-welcome p {
  color: var(--text-muted);
}

.menu-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.menu-option {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.menu-option:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.menu-option-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg);
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

.menu-option-content {
  flex: 1;
}

.menu-option-title {
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-xs);
}

.menu-option-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.menu-option-arrow {
  color: var(--text-muted);
  font-size: var(--text-lg);
}

/* Star Badge Component */

.star-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

.star-badge--princesa {
  background: var(--star-princesa-light);
  color: var(--star-princesa);
}

.star-badge--reina {
  background: var(--star-reina-light);
  color: #92400e;
}

.star-badge-icon {
  font-size: var(--text-base);
}

/* Balance Card Component */

.balance-card {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  color: white;
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '★';
  position: absolute;
  right: -20px;
  top: -20px;
  font-size: 150px;
  opacity: 0.1;
}

.balance-card-label {
  font-size: var(--text-sm);
  opacity: 0.9;
  margin-bottom: var(--space-xs);
}

.balance-card-value {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-xs);
}

.balance-card-total {
  font-size: var(--text-sm);
  opacity: 0.8;
  margin-bottom: var(--space-md);
}

.balance-card-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.balance-card-progress-bar {
  height: 100%;
  background: white;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.balance-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  opacity: 0.8;
}

/* Compradora Card Component */

.compradora-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.compradora-card:hover {
  border-color: var(--primary);
}

.compradora-card.selected {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
}

.compradora-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  color: white;
  flex-shrink: 0;
}

.compradora-info {
  flex: 1;
  min-width: 0;
}

.compradora-name {
  font-weight: var(--font-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compradora-phone {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.compradora-status {
  flex-shrink: 0;
}

/* Asignar View - Star Type Selection */

.star-type-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.star-type-option {
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.star-type-option:hover {
  border-color: var(--border-light);
}

.star-type-option.selected {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
}

.star-type-option--princesa.selected {
  border-color: var(--star-princesa);
  background: rgba(236, 72, 153, 0.1);
}

.star-type-option--reina.selected {
  border-color: var(--star-reina);
  background: rgba(245, 158, 11, 0.1);
}

.star-type-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.star-type-icon {
  font-size: var(--text-3xl);
}

.star-type-option--princesa .star-type-icon {
  color: var(--star-princesa);
}

.star-type-option--reina .star-type-icon {
  color: var(--star-reina);
}

.star-type-name {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

.star-type-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding-left: calc(var(--text-3xl) + var(--space-md));
}

/* Dashboard View */

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.dashboard-greeting {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.dashboard-name {
  font-weight: var(--font-semibold);
}

.dashboard-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-action:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.quick-action-icon {
  font-size: var(--text-2xl);
}

.quick-action-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  text-align: center;
}

/* Payment View */

.payment-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.payment-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.payment-row:last-child {
  margin-bottom: 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
}

.payment-methods {
  margin-bottom: var(--space-xl);
}

.payment-method {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-method.selected {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
}

.payment-method-icon {
  font-size: var(--text-2xl);
}

.payment-method-name {
  font-weight: var(--font-medium);
}

/* Success View */

.success-container {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.success-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--success), #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto var(--space-xl);
  animation: successPop 0.5s ease;
}

.success-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.success-message {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/* Historial View */

.historial-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
}

.historial-star {
  font-size: var(--text-2xl);
}

.historial-star--princesa {
  color: var(--star-princesa);
}

.historial-star--reina {
  color: var(--star-reina);
}

.historial-info {
  flex: 1;
}

.historial-name {
  font-weight: var(--font-medium);
}

.historial-date {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Paquetes View */

.paquete-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  margin-bottom: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.paquete-card:hover {
  border-color: var(--primary);
}

.paquete-card.selected {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
}

.paquete-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
}

.paquete-stars {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-xs);
}

.paquete-stars span {
  font-size: var(--text-lg);
  color: var(--text-muted);
  font-weight: var(--font-normal);
}

.paquete-price {
  font-size: var(--text-xl);
  color: var(--primary);
  font-weight: var(--font-bold);
}

.paquete-per {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Renovacion View */

.renovacion-alert {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--warning);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.renovacion-alert-icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.renovacion-alert-title {
  color: var(--warning);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-sm);
}

.renovacion-alert-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.renovacion-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.renovacion-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.renovacion-row:last-child {
  border-bottom: none;
}

/* Tutorial View */

.tutorial-step {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.tutorial-number {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  color: white;
  flex-shrink: 0;
}

.tutorial-content h3 {
  margin-bottom: var(--space-sm);
}

.tutorial-content p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Demo Preview */

.demo-preview {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--secondary-rgb), 0.2));
  border: 2px dashed var(--primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.demo-preview-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
}

.demo-preview-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.demo-preview-text {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* ===== COMPACT MODE - Small height screens (< 800px) ===== */

@media (max-height: 799px) {
  /* Chat bubbles */
  .chat-container {
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
  }

  .chat-bubble {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
  }

  .eva-avatar {
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
  }

  /* Registration */
  .registro-header {
    margin-bottom: var(--space-lg);
  }

  .tyc-box {
    max-height: 150px;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
  }

  /* Menu */
  .menu-welcome {
    margin-bottom: var(--space-lg);
  }

  .menu-welcome-avatar {
    width: 60px;
    height: 60px;
    font-size: var(--text-xl);
  }

  .menu-options {
    gap: var(--space-sm);
  }

  .menu-option {
    padding: var(--space-md);
    gap: var(--space-md);
  }

  .menu-option-icon {
    width: 44px;
    height: 44px;
    font-size: var(--text-xl);
  }

  .menu-option-title {
    font-size: var(--text-sm);
  }

  .menu-option-desc {
    font-size: var(--text-xs);
  }

  /* Balance card */
  .balance-card {
    padding: var(--space-lg);
  }

  .balance-card-value {
    font-size: var(--text-3xl);
  }

  /* Dashboard */
  .dashboard-quick-actions {
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
  }

  .quick-action {
    padding: var(--space-md);
    gap: var(--space-xs);
  }

  .quick-action-icon {
    font-size: var(--text-xl);
  }

  .quick-action-label {
    font-size: var(--text-xs);
  }

  /* Star type options */
  .star-type-option {
    padding: var(--space-md);
  }

  .star-type-icon {
    font-size: var(--text-2xl);
  }

  .star-type-name {
    font-size: var(--text-base);
  }

  .star-type-desc {
    font-size: var(--text-xs);
    padding-left: calc(var(--text-2xl) + var(--space-md));
  }

  /* Payment */
  .payment-summary {
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
  }

  .payment-methods {
    margin-bottom: var(--space-lg);
  }

  .payment-method {
    padding: var(--space-sm) var(--space-md);
  }

  /* Success */
  .success-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

  .success-title {
    font-size: var(--text-xl);
  }

  /* Demo preview */
  .demo-preview {
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
  }

  .demo-preview-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
  }

  .demo-preview-title {
    font-size: var(--text-lg);
  }

  /* Tutorial */
  .tutorial-step {
    margin-bottom: var(--space-lg);
    gap: var(--space-md);
  }

  .tutorial-number {
    width: 32px;
    height: 32px;
    font-size: var(--text-sm);
  }

  .tutorial-content h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-xs);
  }

  .tutorial-content p {
    font-size: var(--text-xs);
  }

  /* Paquetes */
  .paquete-card {
    padding: var(--space-lg);
    margin-bottom: var(--space-sm);
  }

  .paquete-stars {
    font-size: var(--text-2xl);
  }

  /* Renovacion */
  .renovacion-alert {
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
  }

  .renovacion-alert-icon {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
  }

  .renovacion-summary {
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
  }

  /* Historial */
  .historial-item {
    padding: var(--space-sm) var(--space-md);
  }

  .historial-star {
    font-size: var(--text-xl);
  }

  /* Compradora card */
  .compradora-card {
    padding: var(--space-sm) var(--space-md);
  }

  .compradora-avatar {
    width: 40px;
    height: 40px;
    font-size: var(--text-base);
  }

  .compradora-name {
    font-size: var(--text-sm);
  }

  .compradora-phone {
    font-size: var(--text-xs);
  }
}
