/**
 * RARX NETWORK - Tebex Custom Theme
 * Diseño exacto de rarxnetwork.com
 * Colores: #ed6ea0 (rosa) y #ec8c69 (naranja)
 */

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #ed6ea0;
  --color-secondary: #ec8c69;
  --color-bg-primary: #000000;
  --color-bg-secondary: #0f0f0f;
  --color-bg-tertiary: #1a1a1a;
  --color-text-primary: #ffffff;
  --color-text-secondary: #a0a0a0;
  --color-border: #2a2a2a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: linear-gradient(to bottom, transparent, rgb(0, 0, 0)) rgb(0, 0, 0);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ========== SCROLLBAR ESTILO TSTUDIO ========== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ed6ea0, #ec8c69);
  border-radius: 6px;
  border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f491ba, #f0a584);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #ed6ea0 #0a0a0a;
}

/* ========== NAVIGATION ========== */
.navbar {
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ed6ea0, #ec8c69);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.navbar-menu a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.navbar-menu a:hover {
  color: var(--color-primary);
}

/* ========== HERO SECTION ========== */
.hero {
  padding: 12rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(237, 110, 160, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ed6ea0, #ec8c69);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== PRODUCTS GRID ========== */
.products-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.products-header {
  text-align: center;
  margin-bottom: 4rem;
}

.products-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ed6ea0, #ec8c69);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* ========== PRODUCT CARD ESTILO TSTUDIO ========== */
.product-card {
  background: #1a1a1a;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid transparent;
  background-image: linear-gradient(#1a1a1a, #1a1a1a), linear-gradient(135deg, #ed6ea0, #ec8c69);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(237, 110, 160, 0.2);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #ed6ea0, #ec8c69);
}

.product-body {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

.product-description {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.product-price {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ed6ea0, #ec8c69);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

/* ========== BUTTONS ESTILO TSTUDIO ========== */
.btn-primary {
  background: linear-gradient(135deg, #ed6ea0, #ec8c69);
  color: white;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(237, 110, 160, 0.5);
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-secondary {
  background: var(--color-bg-tertiary);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--color-bg-secondary);
}

/* ========== CHECKOUT STYLES ========== */
.checkout-container {
  max-width: 800px;
  margin: 8rem auto 4rem;
  padding: 2rem;
}

.checkout-card {
  background: var(--color-bg-tertiary);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--color-border);
}

.checkout-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #ed6ea0, #ec8c69);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  color: var(--color-text-primary);
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(237, 110, 160, 0.1);
}

/* ========== BASKET/CART ========== */
.basket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--color-bg-secondary);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.basket-item-name {
  font-weight: 600;
}

.basket-item-price {
  color: var(--color-primary);
  font-weight: 700;
}

.basket-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: var(--color-bg-secondary);
  border-radius: 0.5rem;
  margin-top: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.basket-total-amount {
  background: linear-gradient(135deg, #ed6ea0, #ec8c69);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 3rem 2rem;
  margin-top: 6rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ed6ea0, #ec8c69);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-section p,
.footer-section a {
  color: var(--color-text-secondary);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

/* ========== LOADING SPINNER ========== */
.spinner {
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #ed6ea0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .navbar-menu {
    display: none;
  }

  .checkout-container {
    padding: 1rem;
  }
}

/* ========== UTILITIES ========== */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 2rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========== NAVBAR CART ========== */
.navbar-cart {
  display: flex;
  align-items: center;
}

.cart-button {
  position: relative;
  padding: 0.5rem;
  color: var(--color-text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  border-radius: 0.5rem;
}

.cart-button:hover {
  background: var(--color-bg-tertiary);
}

.cart-icon {
  width: 24px;
  height: 24px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ed6ea0, #ec8c69);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== USER DROPDOWN ========== */
.user-dropdown {
  position: relative;
}

.user-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(237, 110, 160, 0.3);
  border-radius: 0.5rem;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-weight: 500;
}

.user-button:hover {
  background: rgba(26, 26, 26, 1);
  border-color: rgba(237, 110, 160, 0.5);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(237, 110, 160, 0.3);
  border-radius: 0.75rem;
  padding: 0.5rem;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.user-dropdown:hover .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text-primary);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.dropdown-item:hover {
  background: rgba(237, 110, 160, 0.1);
  color: var(--color-primary);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.3), rgba(0,0,0,0.8));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.hero-text {
  max-width: 768px;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero-badge span {
  padding: 0.5rem 1rem;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(237, 110, 160, 0.3);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #a7a7af;
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.8;
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid #ed6ea0;
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  padding: 0.5rem;
  animation: bounce 1.5s infinite;
}

.scroll-wheel {
  width: 4px;
  height: 12px;
  background: linear-gradient(to bottom, #ed6ea0, #ec8c69);
  border-radius: 9999px;
  animation: scroll 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

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

/* ========== DOTS PATTERN ========== */
.dots-corner {
  position: absolute;
  width: 150px;
  height: 150px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
  background-size: 15px 15px;
  opacity: 0.5;
  z-index: 10;
}

/* ========== GRADIENT TEXT ========== */
.gradient-text {
  background: linear-gradient(135deg, #ed6ea0, #ec8c69);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== RECENT CUSTOMERS SECTION ========== */
.recent-customers-section {
  padding: 6rem 1rem;
  background: linear-gradient(to bottom, #000000, var(--color-bg-secondary));
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: #a7a7af;
  font-size: 1.125rem;
}

.customers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.customer-card {
  background: #1a1a1a;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  border: 1px solid transparent;
  background-image: linear-gradient(#1a1a1a, #1a1a1a), linear-gradient(135deg, #ed6ea0, #ec8c69);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
}

.customer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(237, 110, 160, 0.2);
}

.online-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.customer-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ed6ea0, #ec8c69);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(237, 110, 160, 0.5);
}

.customer-avatar span {
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.customer-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.customer-product {
  color: #a7a7af;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-price {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ed6ea0, #ec8c69);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.customer-time {
  color: #a7a7af;
  font-size: 0.75rem;
}

/* ========== BASKET DRAWER ========== */
.basket-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.basket-drawer.active {
  opacity: 1;
  pointer-events: all;
}

.basket-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.basket-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 500px;
  background: #0f0f0f;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.basket-drawer.active .basket-content {
  transform: translateX(0);
}

.basket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  border-bottom: 1px solid #2a2a2a;
}

.basket-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.basket-close:hover {
  background: rgba(237, 110, 160, 0.1);
  color: #ed6ea0;
}

.basket-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.basket-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: #1a1a1a;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #2a2a2a;
}

.basket-item-info {
  flex: 1;
}

.basket-item-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.basket-item-quantity {
  color: #a0a0a0;
  font-size: 0.9rem;
}

.basket-item-price {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ed6ea0, #ec8c69);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.basket-total {
  padding: 1.5rem;
  margin: 1rem 0;
  background: rgba(237, 110, 160, 0.1);
  border-radius: 0.75rem;
  border: 1px solid rgba(237, 110, 160, 0.3);
}

.basket-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.basket-total-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.basket-total-amount {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ed6ea0, #ec8c69);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.basket-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.basket-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.basket-empty-text {
  color: #a0a0a0;
  margin-bottom: 1.5rem;
}
