/* ============================================================
   Don Montañez Winery — Design System CSS
   Replica exacta del diseño React/TailwindCSS original
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ---- Variables de color (modo oscuro premium) ---- */
:root {
  --background: hsl(0, 0%, 5%);
  --foreground: hsl(45, 30%, 96%);
  --card: hsl(0, 0%, 8%);
  --card-foreground: hsl(45, 30%, 96%);
  --primary: hsl(43, 72%, 52%);
  --primary-fg: hsl(0, 0%, 5%);
  --secondary: hsl(0, 0%, 14%);
  --muted: hsl(0, 0%, 12%);
  --muted-foreground: hsl(40, 10%, 55%);
  --border: hsl(43, 30%, 20%);
  --destructive: hsl(0, 84%, 60%);
  --radius: 0.375rem;

  --gold: hsl(43, 72%, 52%);
  --gold-light: hsl(43, 80%, 65%);
  --gold-dark: hsl(43, 60%, 38%);

  --gold-gradient: linear-gradient(135deg, hsl(43, 80%, 65%), hsl(43, 72%, 52%), hsl(43, 60%, 38%));

  --font-display: 'Playfair Display', serif;
  --font-body: 'Raleway', sans-serif;
}

/* ---- Reset base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
}

/* ---- Contenedor ---- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Utilidades gradient dorado ---- */
.text-gradient-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gold-gradient {
  background: var(--gold-gradient);
}

.glass-dark {
  background: hsla(0, 0%, 5%, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  transition: opacity 0.2s;
}

.navbar-logo:hover {
  opacity: 0.85;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* Carrito badge */
.cart-btn {
  position: relative;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
  padding: 0.25rem;
}

.cart-btn:hover {
  color: var(--primary);
}

.cart-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--primary-fg);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.cart-badge.visible {
  display: flex;
}

/* Menú móvil */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: 0.3s;
}

@media (max-width: 767px) {
  .mobile-menu-btn {
    display: flex;
  }

  .navbar-links {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links li {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem 1.5rem;
}

.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary);
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--primary-fg);
}

.btn-gold:hover {
  box-shadow: 0 0 25px -3px hsla(43, 72%, 52%, 0.5);
  transform: scale(1.02);
}

.btn-gold:active {
  transform: scale(0.97);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-whatsapp {
  background: hsl(142, 70%, 45%);
  color: #fff;
}

.btn-whatsapp:hover {
  box-shadow: 0 0 25px -3px hsla(142, 70%, 45%, 0.5);
  transform: scale(1.02);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

/* ============================================================
   WINE CARD
   ============================================================ */
.wines-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .wines-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .wines-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .wines-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.wine-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  transition: all 0.5s;
}

.wine-card:hover {
  border-color: hsla(43, 72%, 52%, 0.5);
  box-shadow: 0 0 30px -5px hsla(43, 72%, 52%, 0.18);
}

.wine-card-img {
  position: relative;
  height: 256px;
  overflow: hidden;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wine-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.wine-card:hover .wine-card-img img {
  transform: scale(1.05);
}

.wine-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--card), transparent);
}

.wine-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}

.wine-fruit {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
}

.wine-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.wine-desc {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wine-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wine-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

/* ============================================================
   WINE DETAIL PAGE
   ============================================================ */
.wine-detail-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .wine-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.wine-detail-img-wrap {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--secondary);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wine-detail-img-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.wine-detail-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(0, 0%, 8%, 0.5), transparent);
}

.wine-specs {
  border: 1px solid var(--border);
  background: hsla(0, 0%, 14%, 0.3);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.wine-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.wine-spec-row:last-child {
  border-bottom: none;
}

.wine-spec-label {
  color: var(--muted-foreground);
}

.wine-spec-value {
  font-weight: 600;
  color: var(--foreground);
}

.wine-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .wine-actions {
    flex-direction: row;
  }
}

.wine-actions .btn {
  flex: 1;
}

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: hsla(0, 0%, 0%, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  z-index: 50;
  background: var(--card);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.cart-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.cart-close {
  background: none;
  border: none;
  color: var(--muted-foreground);
  transition: color 0.2s;
  padding: 4px;
}

.cart-close:hover {
  color: var(--foreground);
}

.cart-close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--muted-foreground);
  text-align: center;
  gap: 0.75rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  margin-bottom: 0.75rem;
}

.cart-item img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--foreground);
}

.cart-item-price {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-top: 0.2rem;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-foreground);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.qty-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.qty-num {
  min-width: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--foreground);
}

.cart-remove {
  background: none;
  border: none;
  color: var(--muted-foreground);
  transition: color 0.2s;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.cart-remove:hover {
  color: var(--destructive);
}

.cart-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cart-total-label {
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.cart-total-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}

.btn-clear {
  background: none;
  border: none;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  width: 100%;
  padding: 0.75rem;
  transition: color 0.2s;
  margin-top: 0.5rem;
}

.btn-clear:hover {
  color: var(--foreground);
  text-decoration: underline;
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: hsl(142, 70%, 45%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px -3px hsla(142, 70%, 45%, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: hsla(0, 0%, 14%, 0.3);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--primary);
}

.footer-col ul li:not(:has(a)) {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.pt-nav {
  padding-top: 6rem;
}

.section {
  padding: 4rem 0;
}

.section-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

/* ============================================================
   FEATURE CARDS (Home)
   ============================================================ */
.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: hsl(0, 0%, 5%);
  border: 1px solid hsla(43, 72%, 52%, 0.4);
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  transform: translateY(-5px);
}

.feature-icon {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-icon svg {
  width: 40px;
  height: 40px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.feature-card p {
  font-size: 0.95rem;
  color: hsl(0, 0%, 65%);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--primary);
}

/* Badge stock */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-available {
  background: hsla(142, 70%, 45%, 0.15);
  color: hsl(142, 70%, 55%);
}

.badge-out {
  background: hsla(0, 84%, 60%, 0.15);
  color: hsl(0, 84%, 65%);
}

.badge-soon {
  background: hsla(43, 72%, 52%, 0.15);
  color: var(--primary);
}

/* ============================================================
   NOSOTROS PAGE
   ============================================================ */
.nosotros-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 0.75rem;
  margin-bottom: 3rem;
}

.nosotros-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.nosotros-hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.valores-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .valores-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.valor-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s;
}

.valor-card:hover {
  border-color: hsla(43, 72%, 52%, 0.5);
}

.valor-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.valor-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.valor-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--background);
}

.admin-sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--card);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 20;
  flex-shrink: 0;
}

.admin-sidebar-logo {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.admin-nav {
  padding: 1rem 0;
  flex: 1;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.admin-nav a:hover {
  color: var(--foreground);
  background: var(--secondary);
}

.admin-nav a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: hsla(43, 72%, 52%, 0.08);
}

.admin-content {
  margin-left: 240px;
  flex: 1;
  padding: 2rem;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-topbar h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.stat-sub {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Tabla admin */
.admin-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: var(--secondary);
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  text-align: left;
  font-weight: 600;
}

.admin-table td {
  padding: 0.875rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: hsla(0, 0%, 14%, 0.5);
}

.admin-table img.thumb {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.action-link {
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  text-decoration: none;
}

.action-link:hover {
  color: var(--foreground);
  border-color: var(--foreground);
}

.action-link.danger:hover {
  color: var(--destructive);
  border-color: var(--destructive);
}

.action-link.primary {
  background: var(--gold-gradient);
  color: var(--primary-fg);
  border-color: transparent;
}

/* Formularios admin */
.admin-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--foreground);
}

.form-label small {
  font-weight: 400;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.875rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.form-control::placeholder {
  color: var(--muted-foreground);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Login page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.login-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.login-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: hsla(0, 84%, 60%, 0.12);
  border: 1px solid hsla(0, 84%, 60%, 0.3);
  color: hsl(0, 84%, 70%);
}

.alert-success {
  background: hsla(142, 70%, 45%, 0.12);
  border: 1px solid hsla(142, 70%, 45%, 0.3);
  color: hsl(142, 70%, 55%);
}

/* Pagination, filters */
.filters-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Select en admin */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px;
  padding-right: 2.5rem;
}

/* Responsive admin */
@media (max-width: 767px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-content {
    margin-left: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}