/* cofradia/style.css */
:root {
  /* TEMA OSCURO (Por defecto para Landing Page y Login) */
  --bg-dark: #0e0a08;
  --bg-warm: #13100d;
  --bg-card: rgba(25, 18, 14, 0.75);
  --text-cream: #f5efe6;
  --text-muted: rgba(245, 239, 230, 0.5);
  --burgundy: #7a1e2e;
  --burgundy-light: #9b2d3f;
  --burgundy-deep: #5c1522;
  --gold: #c4a265;
  --gold-light: #d4b87a;
  --gold-dark: #8b7240;
  --glass-border: rgba(196, 162, 101, 0.08);
  --glow-burgundy: rgba(122, 30, 46, 0.2);
  --glow-gold: rgba(196, 162, 101, 0.12);
  --radius: 24px;
}

body.light-mode {
  /* TEMA CLARO (Exclusivo para el Dashboard Operativo) */
  --bg-dark: #fcfbf9;
  --bg-warm: #f4efe9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --text-cream: #1a1514;
  --text-muted: #6b6460;
  --glass-border: rgba(196, 162, 101, 0.3);
  --glow-burgundy: rgba(122, 30, 46, 0.08);
  --glow-gold: rgba(196, 162, 101, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--burgundy) var(--bg-dark);
}

body {
  background: var(--bg-dark);
  color: var(--text-cream);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  transition:
    background 0.4s ease,
    color 0.4s ease;
}

/* EFECTOS DE FONDO */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.25;
  animation: orbFloat 22s ease-in-out infinite alternate;
  transition: opacity 0.4s ease;
}

body.light-mode .ambient-bg .orb {
  opacity: 0.12; /* Más sutil en tema claro */
}

.orb--burgundy {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--burgundy), transparent 70%);
  top: -12%;
  left: -8%;
}

.orb--gold {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--gold-dark), transparent 65%);
  bottom: 5%;
  right: -10%;
  animation-delay: -8s;
  animation-duration: 28s;
}

.orb--warm {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(156, 100, 60, 0.4), transparent 65%);
  top: 45%;
  left: 35%;
  animation-delay: -14s;
  animation-duration: 32s;
}

@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -35px) scale(1.08);
  }
  66% {
    transform: translate(-25px, 45px) scale(0.94);
  }
  100% {
    transform: translate(15px, -15px) scale(1.03);
  }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

body.light-mode .grain {
  opacity: 0.02;
}

.deco-ring {
  position: fixed;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  pointer-events: none;
  z-index: 1;
}

.deco-ring--1 {
  width: 800px;
  height: 800px;
  top: -200px;
  right: -300px;
  animation: ringRotate 60s linear infinite;
}

.deco-ring--2 {
  width: 600px;
  height: 600px;
  top: -150px;
  right: -250px;
  border-color: rgba(122, 30, 46, 0.06);
  animation: ringRotate 45s linear infinite reverse;
}

.deco-ring--3 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  left: -200px;
  border-color: rgba(196, 162, 101, 0.03);
  animation: ringRotate 55s linear infinite;
}

@keyframes ringRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* NAVEGACIÓN (LANDING) */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: transparent;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}

nav.scrolled {
  padding: 0.7rem 3rem;
  background: var(--bg-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-logo {
  height: 50px;
  width: auto;
  transition: height 0.4s ease;
}

nav.scrolled .nav-logo {
  height: 40px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.3rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--gold);
  background: rgba(196, 162, 101, 0.08);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-intranet {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  background: var(--burgundy);
  padding: 0.6rem 1.6rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--glow-burgundy);
  border: 1px solid rgba(155, 45, 63, 0.3);
}

.btn-intranet:hover {
  transform: translateY(-2px);
  background: var(--burgundy-light);
  box-shadow: 0 8px 30px rgba(122, 30, 46, 0.35);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-cream);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* HERO (LANDING) */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(196, 162, 101, 0.08);
  border: 1px solid rgba(196, 162, 101, 0.15);
  padding: 0.5rem 1.3rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  width: fit-content;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards 0.2s;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.6);
  }
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 850px;
  opacity: 0;
  animation: fadeSlideUp 1s ease forwards 0.4s;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 0.08em;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-top: 1.5rem;
  line-height: 1.75;
  font-weight: 300;
  opacity: 0;
  animation: fadeSlideUp 1s ease forwards 0.6s;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeSlideUp 1s ease forwards 0.8s;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  padding: 1rem 2.4rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.02em;
}

.btn-hero--primary {
  background: linear-gradient(135deg, var(--burgundy-light), var(--burgundy));
  color: #fff;
  box-shadow: 0 4px 30px var(--glow-burgundy);
  border: 1px solid rgba(155, 45, 63, 0.3);
}

.btn-hero--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(122, 30, 46, 0.4);
  background: linear-gradient(135deg, var(--burgundy-light), var(--burgundy-light));
}

.btn-hero--secondary {
  background: rgba(196, 162, 101, 0.06);
  color: var(--gold-light);
  border: 1px solid rgba(196, 162, 101, 0.15);
}

.btn-hero--secondary:hover {
  background: rgba(196, 162, 101, 0.12);
  transform: translateY(-2px);
}

.hero-metrics {
  display: flex;
  gap: 3rem;
  margin-top: 5rem;
  opacity: 0;
  animation: fadeSlideUp 1s ease forwards 1s;
}

.metric {
  position: relative;
}

.metric::after {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

.metric:last-child::after {
  display: none;
}

.metric-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 400;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MARQUEE */
.marquee-section {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 1.8rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg-card);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 3rem;
  white-space: nowrap;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-muted);
}

.marquee-item .dot {
  width: 6px;
  height: 6px;
  background: var(--burgundy);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* SECTIONS */
.section {
  position: relative;
  z-index: 2;
  padding: 7rem 4rem;
}

.section-header {
  margin-bottom: 4rem;
}

.section-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text-cream);
}

.section-desc {
  color: var(--text-muted);
  max-width: 480px;
  margin-top: 1rem;
  line-height: 1.7;
  font-weight: 300;
}

/* PRODUCTS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: default;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--glow-burgundy), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(122, 30, 46, 0.15);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 0 40px var(--glow-burgundy);
}

.product-card:hover::before {
  opacity: 1;
}

.product-icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  background: rgba(196, 162, 101, 0.08);
  border: 1px solid rgba(196, 162, 101, 0.1);
}

.product-card h3 {
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-cream);
}

.product-card p {
  position: relative;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.92rem;
  font-weight: 300;
}

.product-card .card-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(196, 162, 101, 0.06);
  margin-top: 1.5rem;
  transition: all 0.3s ease;
  color: var(--gold);
  font-size: 1.1rem;
}

.product-card:hover .card-arrow {
  background: var(--burgundy);
  color: #fff;
  transform: rotate(-45deg);
}

/* DIVIDER */
.section-divider {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.divider-icon {
  padding: 0 2rem;
  color: var(--gold-dark);
  font-size: 1.2rem;
  opacity: 0.4;
}

/* ORDER */
.order-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.order-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.order-visual-card::after {
  content: '';
  position: absolute;
  top: -60%;
  right: -40%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--glow-burgundy), transparent 60%);
  pointer-events: none;
}

.order-step {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 2rem;
  position: relative;
}

.order-step:last-child {
  margin-bottom: 0;
}

.step-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(122, 30, 46, 0.15);
  color: var(--burgundy-light);
  border: 1px solid rgba(122, 30, 46, 0.2);
  font-family: 'Cormorant Garamond', serif;
}

.step-content h4 {
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 300;
}

.order-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 3rem;
}

.order-form-wrap h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.order-form-wrap .form-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.92rem;
  font-weight: 300;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--bg-warm);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--text-cream);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-dark);
  color: var(--text-cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px var(--glow-burgundy);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  width: 100%;
  padding: 1.05rem;
  background: linear-gradient(135deg, var(--burgundy-light), var(--burgundy));
  color: #fff;
  border: 1px solid rgba(155, 45, 63, 0.3);
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--glow-burgundy);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(122, 30, 46, 0.35);
  background: linear-gradient(135deg, var(--burgundy-light), var(--burgundy-light));
}

/* FOOTER */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--glass-border);
  padding: 4rem;
  background: var(--bg-card);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo {
  height: 55px;
  width: auto;
  margin-bottom: 1.2rem;
  opacity: 0.85;
}

.footer-desc {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.9rem;
  max-width: 300px;
  font-weight: 300;
}

.footer-col h4 {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1.2rem;
}

.footer-col p,
.footer-col a {
  display: block;
  color: var(--text-cream);
  text-decoration: none;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  font-weight: 300;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 300;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ---------- LOGIN ---------- */
.login-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px var(--glow-burgundy);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.text-center {
  text-align: center;
}
.login-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1.5rem;
}

.login-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--gold);
}

.login-error {
  background: rgba(122, 30, 46, 0.2);
  border: 1px solid var(--burgundy);
  color: #ffb3b3;
  padding: 0.8rem;
  border-radius: 14px;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.login-footer {
  margin-top: 2rem;
  text-align: center;
}
.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.back-link:hover {
  color: var(--gold);
}

/* ---------- DASHBOARD BENTO GRID ---------- */
.dashboard-body {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dashboard-sidebar {
  width: 260px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 1.5rem;
  z-index: 100;
  border-radius: 0;
  border-right: 1px solid var(--glass-border);
  border-top: none;
  border-bottom: none;
  border-left: none;
}

.sidebar-logo {
  text-align: center;
  margin-bottom: 3.5rem;
}

.sidebar-menu {
  list-style: none;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sidebar-menu a {
  display: block;
  padding: 0.8rem 1.2rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.sidebar-menu li.active a,
.sidebar-menu a:hover {
  background: var(--glow-gold);
  color: var(--burgundy);
  transform: translateX(5px);
}

.sidebar-footer {
  margin-top: auto;
}

.btn-logout {
  display: block;
  text-align: center;
  background: var(--bg-warm);
  color: var(--burgundy);
  text-decoration: none;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-logout:hover {
  background: var(--glow-burgundy);
  color: var(--burgundy-deep);
}

.dashboard-main {
  flex-grow: 1;
  margin-left: 260px;
  padding: 3rem 4rem;
  position: relative;
  z-index: 2;
  width: calc(100% - 260px);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.dash-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  color: var(--text-cream);
  line-height: 1.2;
  font-weight: 700;
}

.dash-subtitle {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.dash-user .user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--burgundy-light), var(--burgundy));
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.2rem;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 15px var(--glow-burgundy);
}

.bento-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  grid-auto-rows: minmax(150px, auto);
}

.dash-card {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
}

.dash-card h3 {
  font-size: 0.85rem;
  color: var(--burgundy);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.stat-card {
  justify-content: space-between;
}

.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-cream);
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.stat-value .trend {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-weight: 600;
}

.trend.up {
  background: rgba(0, 143, 57, 0.15);
  color: #008f39;
}
.trend.down {
  background: rgba(213, 0, 0, 0.15);
  color: #b71c1c;
}
.trend.eq {
  background: var(--glass-border);
  color: var(--text-muted);
}
.text-gold {
  color: var(--gold-dark);
}

.stat-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.chart-span-main {
  grid-column: span 3;
  min-height: 380px;
}

.chart-span-side {
  grid-column: span 1;
  min-height: 380px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .bento-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
  .chart-span-main {
    grid-column: span 2;
  }
  .chart-span-side {
    grid-column: span 2;
  }
}

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .order-section {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 7rem 1.5rem 3rem;
  }
  .section {
    padding: 4rem 1.5rem;
  }
  .footer {
    padding: 3rem 1.5rem;
  }
  .section-divider {
    padding: 0 1.5rem;
  }
  nav {
    padding: 0.8rem 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .hero-metrics {
    flex-direction: column;
    gap: 1.5rem;
  }
  .metric::after {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn-hero {
    justify-content: center;
  }
  .nav-logo {
    height: 38px;
  }
  nav.scrolled .nav-logo {
    height: 34px;
  }

  /* Responsive Menu Dashboard */
  .dashboard-sidebar {
    width: 100%;
    height: auto;
    top: auto;
    bottom: 0;
    flex-direction: row;
    padding: 0.8rem 1rem;
    justify-content: space-between;
    align-items: center;
    border-right: none;
    border-top: 1px solid var(--glass-border);
    border-radius: 20px 20px 0 0;
  }
  .sidebar-logo,
  .sidebar-footer {
    display: none;
  }
  .sidebar-menu {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    gap: 0;
  }
  .sidebar-menu a {
    padding: 0.5rem;
    font-size: 0;
  }
  .sidebar-menu a::first-letter {
    font-size: 1.5rem;
  }
  .dashboard-main {
    margin-left: 0;
    width: 100%;
    padding: 1.5rem 1.5rem 100px;
  }
  .bento-dashboard {
    grid-template-columns: 1fr;
  }
  .chart-span-main,
  .chart-span-side {
    grid-column: span 1;
  }
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
