/* Premium Menu & Modals Styles */

:root {
  --sirius-blue: #002b5e;
  --sirius-primary: #0056b3;
  --sirius-accent: #00b5e5;
  --sirius-bg: #f8fafc;
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --text-light: #9ca3af;
  --border-color: #e5e7eb;
  --modal-bg: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', sans-serif;
}

/* --- RESTORE MOBILE HEADER --- */
.btn-nav {
    color: #00b5e5;
    font-size: 30px;
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer;
    padding: 6.5px 15px;
    transition: .2s ease;
    background: transparent;
    z-index: 1000;
}

/* --- OVERLAYS --- */
.premium-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040; /* Just below Bootstrap modals, or higher if we replace them */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(3px);
}

.premium-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- SIDEBAR --- */
.premium-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 350px;
  max-width: 90vw;
  height: 100vh;
  background: var(--modal-bg);
  z-index: 1050;
  box-shadow: var(--shadow-xl);
  transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.premium-sidebar.active {
  left: 0;
}

.sidebar-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background: #fff;
  z-index: 10;
}

.sidebar-header img.logo {
  height: 40px;
  object-fit: contain;
}

.sidebar-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-dark);
  cursor: pointer;
  transition: color 0.2s;
}

.sidebar-close:hover {
  color: var(--sirius-primary);
}

.sidebar-header-back {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-header-back span {
  font-size: 18px;
  font-weight: 600;
  color: var(--sirius-blue);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}

.sidebar-view {
  display: none;
  animation: fadeInRight 0.3s ease forwards;
}

.sidebar-view.active {
  display: block;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Menu Items */
.menu-item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  color: var(--text-dark);
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
}

.menu-item:hover {
  background: #f9fafb;
  text-decoration: none;
  color: var(--text-dark);
}

.menu-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  font-size: 20px;
  background: transparent;
  color: var(--sirius-primary);
}

.menu-item.mi-cuenta .menu-icon-box { border: 1px solid var(--sirius-primary); color: var(--sirius-primary); }
.menu-item.productos .menu-icon-box { background: #f0fdf4; color: #16a34a; }
.menu-item.servicios .menu-icon-box { background: #eff6ff; color: #3b82f6; }

.menu-text {
  flex: 1;
}

.menu-text h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.menu-text p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-gray);
}

.menu-arrow {
  color: var(--text-gray);
  font-size: 14px;
}

/* Vender en Sirius Banner */
.vender-banner {
  margin: 20px 24px;
  padding: 20px;
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
  border-radius: 12px;
  border: 1px solid #e0e7ff;
  display: flex;
  align-items: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.vender-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.vender-icon {
  width: 48px;
  height: 48px;
  margin-right: 16px;
  object-fit: contain;
}

.vender-text h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.vender-text p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-gray);
}

.vender-link {
  margin-left: auto;
  color: #6366f1;
  font-size: 18px;
}

/* Categories List */
.cat-item {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  text-decoration: none;
  color: var(--text-dark);
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
}

.cat-item:hover {
  background: #f9fafb;
}

.cat-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  color: var(--sirius-primary);
  font-size: 18px;
  border-radius: 8px;
  background: #f3f4f6;
}

.cat-text {
  flex: 1;
}

.cat-text h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.cat-text p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-gray);
}

.cat-title-section {
  padding: 16px 24px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cat-title-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
}
.cat-title-section a {
  font-size: 13px;
  color: var(--sirius-primary);
  font-weight: 600;
  text-decoration: none;
}

/* --- PREMIUM MODALS --- */
.premium-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--modal-bg);
  z-index: 1050;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 450px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.premium-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header-nav h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--sirius-blue);
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header-nav h2 i {
  color: var(--text-gray);
  cursor: pointer;
}

.modal-header-nav .btn-close-modal {
  background: #f3f4f6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.2s;
}

.modal-header-nav .btn-close-modal:hover {
  background: #e5e7eb;
}

.modal-body-scroll {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* --- LOGIN MODAL SPECIFIC --- */
.login-modal {
  background: transparent;
  box-shadow: none;
  max-height: 90vh;
  overflow-y: auto;
}

.login-modal .modal-content-wrapper {
  background: #ffffff;
  border-radius: 24px;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.login-modal .modal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background-image: url('../images/earth_bg.jpg'); /* Or similar space bg */
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.login-modal .modal-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent, #ffffff);
}

.login-modal .modal-inner {
  position: relative;
  z-index: 1;
  padding: 24px;
  padding-top: 30px;
}

.login-logo {
  display: block;
  width: 100px;
  margin-bottom: 16px;
}

.login-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--sirius-blue);
  margin: 0 0 10px;
  line-height: 1.2;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.input-group-premium {
  margin-bottom: 16px;
  position: relative;
}

.input-group-premium label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #f4f6f8;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.input-wrapper:focus-within {
  border-color: var(--sirius-primary);
  background: #ffffff;
}

.input-wrapper i {
  position: absolute;
  left: 16px;
  color: var(--sirius-primary);
  font-size: 16px;
}

.input-wrapper .eye-icon {
  left: auto;
  right: 16px;
  cursor: pointer;
  color: var(--text-gray);
}

.input-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 14px 16px 14px 45px;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
}

.login-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
  font-weight: 500;
}

.login-options a {
  color: var(--sirius-primary);
  text-decoration: none;
  font-weight: 600;
}

.btn-primary-premium {
  width: 100%;
  background: linear-gradient(90deg, #0047b3 0%, #002b5e 100%);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 71, 179, 0.3);
}

.btn-secondary-premium {
  width: 100%;
  background: #fff;
  color: var(--sirius-blue);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  transition: background 0.2s;
}

.btn-secondary-premium:hover {
  background: #f9fafb;
}

.social-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: var(--text-gray);
  font-size: 12px;
}
.social-divider::before, .social-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}
.social-divider span {
  padding: 0 10px;
}

.social-buttons {
  display: flex;
  gap: 12px;
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-social:hover {
  background: #f9fafb;
}

.security-text {
  text-align: center;
  font-size: 11px;
  color: var(--text-gray);
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.security-text i {
  color: var(--sirius-primary);
  font-size: 14px;
}

/* --- MI CUENTA MODAL --- */
.user-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.user-avatar-lg {
  width: 70px;
  height: 70px;
  background: #c7d2fe;
  color: #4f46e5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: relative;
}

.user-avatar-lg .camera-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sirius-primary);
  font-size: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.user-info h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.user-info p {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-gray);
}

.badge-verified {
  display: inline-block;
  background: #dcfce7;
  color: #16a34a;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.account-section {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.account-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.account-section-title i {
  color: var(--text-gray);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}
.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-label i {
  color: var(--text-gray);
  width: 20px;
  text-align: center;
}

.info-text p {
  margin: 0;
  font-size: 11px;
  color: var(--text-gray);
}

.info-text h4 {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.btn-edit {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.nav-row:hover {
  border-color: var(--sirius-primary);
}

.nav-row .info-label i {
  color: #10b981; /* Green for address */
}
.nav-row:nth-child(3) .info-label i {
  color: #ef4444; /* Red for security */
}

/* --- DIRECCIONES MODAL --- */
.subtitle-text {
  font-size: 13px;
  color: var(--text-gray);
  margin: -15px 24px 20px;
}

.address-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.address-card:hover {
  border-color: var(--sirius-primary);
}
.address-card.active {
  border-color: #10b981;
  background: #f0fdf4;
}

.address-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #d1fae5;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 16px;
}

.address-card:not(.active) .address-icon {
  background: #eff6ff;
  color: #3b82f6;
}
.address-card:nth-child(3) .address-icon {
  background: #f3e8ff;
  color: #a855f7;
}

.address-info {
  flex: 1;
}

.address-info h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.address-info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.4;
}

.badge-principal {
  display: inline-block;
  background: #10b981;
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  margin-top: 6px;
}

.btn-add-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border: 2px dashed var(--sirius-primary);
  border-radius: 12px;
  background: transparent;
  color: var(--sirius-primary);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-top: 16px;
  transition: background 0.2s;
}
.btn-add-address:hover {
  background: #eff6ff;
}

/* Security Modal */
.security-header-banner {
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.security-icon-box {
  width: 48px;
  height: 48px;
  background: #fee2e2;
  color: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.security-header-banner h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}
.security-header-banner p {
  margin: 0;
  font-size: 12px;
  color: var(--text-gray);
}
