/* ==========================================================================
   SBUFA-RHO 2.0 — GLASSMORPHISM MOBILE-FIRST DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Colors */
  --bg-dark: #080b11;
  --bg-card: rgba(18, 26, 38, 0.65);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  --cyan: #00ffff;
  --cyan-glow: rgba(0, 255, 255, 0.4);
  --cyan-dim: rgba(0, 255, 255, 0.08);
  --cyan-border: rgba(0, 255, 255, 0.22);
  
  --magenta: #ff007f;
  --purple: #8a2be2;
  --gold: #ffb703;
  --green: #00c896;
  --red: #ff4d4d;
  
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-dim: rgba(255, 255, 255, 0.35);
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --shadow-glass: 0 12px 40px rgba(0, 0, 0, 0.6);
  
  /* Fonts */
  --font-title: 'Orbitron', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  
  /* Layout */
  --nav-height: 70px;
  --bottom-nav-height: 65px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 255, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 0, 127, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
  font-family: var(--font-body);
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + 20px);
  overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, .font-title {
  font-family: var(--font-title);
  letter-spacing: 0.02em;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 20%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-neon {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- GLASS CONTAINER COMPONENTS --- */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover, .glass-card:active {
  border-color: var(--cyan-border);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1);
  transform: translateY(-4px);
}

/* --- TOP HEADER (DESKTOP / MOBILE STICKY) --- */
.header-top {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 1100px;
  height: 60px;
  z-index: 1000;
  background: rgba(8, 11, 17, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.logo-brand {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  text-shadow: 0 0 12px var(--cyan-glow);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-badge {
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-item-link:hover, .nav-item-link.active {
  color: var(--cyan);
  background: var(--cyan-dim);
}

/* --- MOBILE BOTTOM NAVBAR (NATIVE APP FEEL) --- */
.bottom-nav {
  display: none; /* Visible on mobile */
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 480px;
  height: var(--bottom-nav-height);
  z-index: 1000;
  background: rgba(12, 17, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 35px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 255, 0.1);
  padding: 0 12px;
  justify-content: space-around;
  align-items: center;
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  width: 25%;
  height: 100%;
  border-radius: 20px;
  transition: color 0.25s ease, transform 0.2s ease;
}

.bnav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: stroke 0.25s ease, transform 0.25s ease;
}

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

.bnav-item.active svg {
  stroke: var(--cyan);
  filter: drop-shadow(0 0 8px var(--cyan));
  transform: translateY(-2px);
}

/* --- MAIN CONTAINER --- */
.main-wrapper {
  max-width: 1100px;
  margin: 90px auto 0;
  padding: 0 16px;
}

/* --- HERO SECTION --- */
.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px 40px;
  margin-bottom: 24px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #00c896 0%, var(--cyan) 100%);
  color: #080b11;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(0, 255, 255, 0.35);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 36px rgba(0, 255, 255, 0.6);
  filter: brightness(1.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cyan-border);
  color: var(--cyan);
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(131, 58, 180, 0.4);
  transition: all 0.25s ease;
}

.btn-instagram:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 36px rgba(131, 58, 180, 0.6);
  filter: brightness(1.15);
}

/* --- HERO IMAGE 3D FLOAT --- */
.hero-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

.hero-img {
  width: clamp(180px, 30vw, 290px);
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 35px rgba(0, 255, 255, 0.3));
  animation: float3D 4s ease-in-out infinite;
}

@keyframes float3D {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

/* --- STATS GRID --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-box {
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-num {
  font-family: var(--font-title);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 16px var(--cyan-glow);
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- FEATURES LIST --- */
.features-section {
  padding: 40px;
  margin-bottom: 32px;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

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

.feature-card {
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  font-size: 28px;
  line-height: 1;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  padding: 12px;
  border-radius: 16px;
  flex-shrink: 0;
}

.feature-h {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
}

.feature-p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- FLAVORS / CATALOG GRID --- */
.gusti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.gusto-card {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.gusto-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gusto-nombre {
  font-size: 16px;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
}

.badge-prossimamente {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(255, 183, 3, 0.1);
  border: 1px solid rgba(255, 183, 3, 0.3);
  color: var(--gold);
}

.sabores-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sabores-lista li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.sabor-emoji {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

/* --- WHOLESALE / MAYORISTA SPECIAL STYLES --- */
.wholesale-banner {
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.12) 0%, rgba(138, 43, 226, 0.15) 100%);
  border: 1px solid rgba(255, 0, 127, 0.3);
  border-radius: 28px;
  padding: 44px 36px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}

.calc-box {
  background: rgba(8, 11, 17, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-label {
  font-size: 12px;
  color: var(--text-muted);
}

.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: rgba(255,255,255,0.1);
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  cursor: pointer;
}

.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.calc-res-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.calc-res-val {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.calc-res-val.profit {
  color: var(--green);
  text-shadow: 0 0 10px rgba(0,200,150,0.4);
}

.calc-res-lbl {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 2px;
}

/* --- FOOTER --- */
.footer {
  text-align: center;
  padding: 32px 16px;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
}

.footer-accent {
  color: var(--cyan);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .bottom-nav { display: flex; }
  
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 20px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .wholesale-banner {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  
  .main-wrapper {
    margin-top: 80px;
  }
}
