/* ==========================================================================
   Catálogo Elegante - Estilos Generales (Tipografía Inria Serif Bold)
   Con logo original en alta calidad y fondo flores.png
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inria+Serif:ital,wght@0,700;1,700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  /* Paleta de Colores de Referencia */
  --bg-main: #F7F1EB;
  --bg-card: #FFFFFF;
  
  /* Color Bordó Principal de la Marca */
  --color-burgundy: #4A1521;
  --color-burgundy-hover: #350E17;
  --color-burgundy-light: rgba(74, 21, 33, 0.08);
  
  --color-rose-gold: #C69F99;
  --color-rose-muted: #D8BFBA;
  --color-text-primary: #382B2E;
  --color-text-muted: #736265;
  --color-border: #E6D8D3;
  
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1DA851;
  
  /* Fuentes */
  --font-serif: 'Inria Serif', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Sombras y Bordes */
  --radius-card: 20px;
  --radius-img: 16px;
  --radius-btn: 30px;
  --radius-sm: 8px;
  
  --shadow-soft: 0 12px 32px rgba(74, 21, 33, 0.08);
  --shadow-hover: 0 20px 40px rgba(74, 21, 33, 0.15);
  --shadow-modal: 0 25px 50px rgba(0, 0, 0, 0.45);
  
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset y Bases */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ==========================================================================
   Adornos Florales de Fondo utilizando la imagen flores.png
   ========================================================================== */
.floral-bg-top-left,
.floral-bg-bottom-right {
  position: fixed;
  width: 320px;
  height: 500px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-repeat: no-repeat;
  background-size: contain;
}

.floral-bg-top-left {
  top: 40px;
  left: -20px;
  background-image: url('flores.png');
}

.floral-bg-bottom-right {
  bottom: 40px;
  right: -20px;
  transform: rotate(180deg);
  background-image: url('flores.png');
}

.app-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px 80px;
  box-sizing: border-box;
}

/* ==========================================================================
   CABECERA PRINCIPAL EN COLOR BORDÓ (PORTADA)
   ========================================================================== */
.header-container-bordo {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background-color: var(--color-burgundy);
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
  margin: 0 0 28px 0;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  min-height: 76px;
}

/* Contenedor del Logo alineado a la izquierda */
.header-logo-container {
  margin-bottom: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  max-width: 220px;
  width: auto;
}

.header-logo-img {
  max-width: 100%;
  max-height: 52px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
  transition: var(--transition);
}

.header-logo-img:hover {
  transform: scale(1.04);
}

/* Título de Cabecera en Inria Serif Bold: CATÁLOGO (arriba) y 2026 (abajo) */
.brand-title-header {
  font-family: 'Inria Serif', Georgia, serif;
  font-weight: 700;
  font-size: 3.6rem;
  color: #FFFFFF;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 28px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.brand-title-header .year-tag {
  display: block;
  font-family: 'Inria Serif', Georgia, serif;
  font-weight: 700;
  font-size: 3.1rem;
  letter-spacing: 8px;
  margin-top: 6px;
  color: #FFFFFF;
}

/* Redes sociales en Blanco */
.social-bar-white {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  font-size: 1.25rem;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.social-btn-white:hover {
  background-color: #FFFFFF;
  color: var(--color-burgundy);
  border-color: #FFFFFF;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Controles: Búsqueda Única
   ========================================================================== */
.controls-section-single {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.search-box-single {
  position: relative;
  width: 100%;
  max-width: 650px;
}

.search-box-single input {
  width: 100%;
  padding: 16px 24px 16px 54px;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--color-border);
  background-color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text-primary);
  outline: none;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.search-box-single input:focus {
  border-color: var(--color-burgundy);
  box-shadow: 0 0 0 4px var(--color-burgundy-light);
}

.search-box-single .search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-burgundy);
  font-size: 1.2rem;
}

/* ==========================================================================
   Grid Única de Productos (Tarjetas con 4 esquinas redondeadas)
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.product-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card); /* 4 esquinas redondeadas */
  border: 1px solid var(--color-border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-rose-gold);
}

.card-img-container {
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: var(--radius-img); /* 4 esquinas redondeadas */
  overflow: hidden;
  background-color: var(--bg-main);
  cursor: pointer;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: var(--radius-img);
}

.card-img-container:hover .product-img {
  transform: scale(1.08);
}

.img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(74, 21, 33, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius-img);
}

.card-img-container:hover .img-overlay {
  opacity: 1;
}

.zoom-badge {
  background-color: #FFFFFF;
  color: var(--color-burgundy);
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Botón "+" al lado de la foto */
.btn-add-quick {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-burgundy);
  color: #FFFFFF;
  border: none;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 6px 16px rgba(74, 21, 33, 0.35);
  transition: var(--transition);
}

.btn-add-quick:hover {
  background-color: var(--color-burgundy-hover);
  transform: scale(1.15) rotate(90deg);
}

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 18px;
}

.product-title {
  font-family: 'Inria Serif', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-burgundy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-description {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
}

.product-price {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-burgundy);
}

.btn-add-text {
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  background-color: var(--color-burgundy-light);
  color: var(--color-burgundy);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-text:hover {
  background-color: var(--color-burgundy);
  color: #FFFFFF;
}

/* ==========================================================================
   PIE DE PÁGINA COLOR BORDÓ (FINO Y ELEGANTE)
   ========================================================================== */
.footer-container-bordo {
  width: 100%;
  box-sizing: border-box;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background-color: var(--color-burgundy);
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
  color: #FFFFFF;
  min-height: 64px;
}

.footer-logo-container {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  max-width: 180px;
  max-height: 44px;
  height: auto;
  object-fit: contain;
  margin-bottom: 0;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25));
}

/* Sub-footer Derechos Reservados & Créditos */
.sub-footer-copyright {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin: 18px auto 0 auto;
  padding: 14px 20px 24px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.sub-footer-copyright p {
  margin: 2px 0;
}

.sub-footer-copyright .agency-name {
  font-weight: 700;
  color: var(--color-burgundy);
  letter-spacing: 0.4px;
}

/* ==========================================================================
   MODAL & DRAWER DE CARRITO DE COMPRAS
   ========================================================================== */
.modal-image-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(30, 8, 14, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-image-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-image-overlay.active .modal-image-content {
  transform: scale(1);
}

@media (min-width: 768px) {
  .modal-image-content {
    flex-direction: row;
    max-height: 80vh;
  }
  .modal-img-wrapper {
    flex: 1.2;
  }
  .modal-info-side {
    flex: 1;
  }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-burgundy);
  border: none;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background-color: var(--color-burgundy);
  color: #FFFFFF;
}

.modal-img-wrapper {
  background-color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: 500px;
  position: relative;
}

.modal-full-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 500px;
}

.modal-info-side {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #FFFFFF;
}

.modal-title {
  font-family: 'Inria Serif', Georgia, serif;
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--color-burgundy);
  margin-bottom: 12px;
}

.modal-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-burgundy);
  margin-bottom: 16px;
}

.modal-description {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  gap: 16px;
}

.btn-primary-order {
  flex: 1;
  padding: 16px 24px;
  border-radius: var(--radius-btn);
  background-color: var(--color-burgundy);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(74, 21, 33, 0.25);
}

.btn-primary-order:hover {
  background-color: var(--color-burgundy-hover);
  transform: translateY(-2px);
}

/* Floating Cart Button */
.floating-cart-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  background-color: var(--color-burgundy);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(74, 21, 33, 0.35);
  cursor: pointer;
  z-index: 900;
  transition: var(--transition);
}

.floating-cart-btn:hover {
  transform: translateY(-4px) scale(1.03);
  background-color: var(--color-burgundy-hover);
}

.cart-badge {
  background-color: var(--color-rose-gold);
  color: #FFFFFF;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background-color: #FFFFFF;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
  z-index: 1051;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-drawer-overlay.active .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  padding: 24px;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-title {
  font-family: 'Inria Serif', Georgia, serif;
  font-size: 1.6rem;
  color: var(--color-burgundy);
  font-weight: 700;
}

.cart-close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.cart-close-btn:hover {
  color: var(--color-burgundy);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.cart-empty-icon {
  font-size: 3rem;
  color: var(--color-rose-gold);
  margin-bottom: 12px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: var(--bg-main);
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-family: 'Inria Serif', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-burgundy);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: var(--bg-main);
  color: var(--color-burgundy);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  background-color: var(--color-burgundy);
  color: #FFFFFF;
}

.qty-val {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #D9534F;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}

.cart-item-remove:hover {
  transform: scale(1.2);
}

.cart-footer {
  padding: 24px;
  background-color: var(--bg-main);
  border-top: 1px solid var(--color-border);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-burgundy);
  margin-bottom: 20px;
}

.checkout-form-group {
  margin-bottom: 14px;
}

.checkout-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.checkout-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
}

.checkout-input:focus {
  border-color: var(--color-burgundy);
}

.btn-whatsapp-send {
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius-btn);
  background-color: var(--color-whatsapp);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
}

.btn-whatsapp-send:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-2px);
}

/* Toast */
.toast-notification {
  position: fixed;
  top: 24px;
  right: 24px;
  background-color: var(--color-burgundy);
  color: #FFFFFF;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 2000;
  transform: translateY(-100px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 600px) {
  .brand-title-header {
    font-size: 2.5rem;
  }
  .brand-title-header .year-tag {
    font-size: 2.2rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ESTILOS DEDICADOS PARA EL PANEL DE ADMINISTRACIÓN (admin.html)
   ========================================================================== */

/* Enlace/Botón de Administración en Header */
.admin-header-link {
  position: absolute;
  right: 24px;
  top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.admin-header-link:hover {
  background: #FFFFFF;
  color: var(--color-burgundy);
  transform: translateY(-2px);
}

/* Contenedor Principal del Admin */
.admin-layout {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 28px;
  margin-top: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

/* Tarjetas y Contenedores del Admin */
.admin-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  position: relative;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-burgundy-light);
}

.admin-card-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-burgundy);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Formularios Admin */
.admin-form .form-group {
  margin-bottom: 18px;
}

.admin-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-form .form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--color-border);
  background-color: #FAF6F3;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-primary);
  transition: var(--transition);
}

.admin-form .form-control:focus {
  outline: none;
  border-color: var(--color-burgundy);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(74, 21, 33, 0.1);
}

.admin-form textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

/* Carga de Imagen y Vista Previa */
.image-upload-wrapper {
  background-color: #FAF6F3;
  border: 2px dashed var(--color-rose-muted);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.image-upload-wrapper:hover,
.image-upload-wrapper.dragover {
  border-color: var(--color-burgundy);
  background-color: var(--color-burgundy-light);
}

.image-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  font-size: 2.2rem;
  color: var(--color-rose-gold);
  margin-bottom: 8px;
}

.upload-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.upload-text span {
  color: var(--color-burgundy);
  font-weight: 600;
  text-decoration: underline;
}

.image-preview-box {
  margin-top: 12px;
  position: relative;
  display: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 180px;
  background-color: #000;
}

.image-preview-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.btn-remove-preview {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(74, 21, 33, 0.85);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-remove-preview:hover {
  background-color: #dc3545;
}

/* Botones Formulario */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-admin-primary {
  flex: 1;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  background-color: var(--color-burgundy);
  color: #FFFFFF;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(74, 21, 33, 0.2);
}

.btn-admin-primary:hover {
  background-color: var(--color-burgundy-hover);
  transform: translateY(-2px);
}

.btn-admin-secondary {
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  background-color: #E2D7D4;
  color: var(--color-text-primary);
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

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

/* Estadísticas Admin */
.admin-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-item {
  background-color: var(--bg-card);
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: var(--color-burgundy-light);
  color: var(--color-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-val {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-burgundy);
  line-height: 1.2;
}

.stat-lbl {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

/* Lista y Tabla de Productos en Admin */
.admin-table-wrapper {
  overflow-x: hidden;
  margin-top: 12px;
  width: 100%;
}

.admin-products-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  table-layout: fixed;
  box-sizing: border-box;
}

.admin-products-table th,
.admin-products-table td {
  padding: 12px 6px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.admin-products-table th {
  background-color: #FAF6F3;
  color: var(--color-burgundy);
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--color-border);
}

.admin-products-table th:nth-child(1) { width: 36px; text-align: center; }    /* Checkbox */
.admin-products-table th:nth-child(2) { width: 56px; }                        /* Imagen */
.admin-products-table th:nth-child(3) { width: 28%; }                         /* Producto */
.admin-products-table th:nth-child(4) { width: 16%; }                         /* Categoría */
.admin-products-table th:nth-child(5) { width: 16%; }                         /* Precio */
.admin-products-table th:nth-child(6) { width: 160px; text-align: right; padding-right: 14px; }/* Acciones */

.admin-products-table td:nth-child(1) {
  text-align: center;
}

.admin-products-table td:nth-child(6) {
  text-align: right;
  padding-right: 14px;
}

.product-checkbox,
#select-all-products {
  width: 18px;
  height: 18px;
  accent-color: var(--color-burgundy);
  cursor: pointer;
  vertical-align: middle;
}

.btn-delete-selected {
  background-color: #dc3545;
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  transition: var(--transition);
}

.btn-delete-selected:hover {
  background-color: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

.admin-products-table tbody tr:hover {
  background-color: rgba(247, 241, 235, 0.6);
}

.table-img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.table-product-name {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-product-desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-cat {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background-color: var(--color-burgundy-light);
  color: var(--color-burgundy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.table-price {
  font-weight: 700;
  color: var(--color-burgundy);
  white-space: nowrap;
  font-size: 0.88rem;
}

.table-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.btn-icon-edit {
  background-color: rgba(198, 159, 153, 0.2);
  color: var(--color-burgundy);
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-icon-edit:hover {
  background-color: var(--color-burgundy);
  color: #FFFFFF;
}

.btn-icon-delete {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-icon-delete:hover {
  background-color: #dc3545;
  color: #FFFFFF;
}

/* Herramientas Adicionales Admin (Backup/Restablecer) */
.admin-tools-bar {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
  flex-wrap: wrap;
  gap: 12px;
}

.btn-tool {
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-tool:hover {
  border-color: var(--color-burgundy);
  color: var(--color-burgundy);
  background-color: #FFFFFF;
}

/* ==========================================================================
   HOVER PHOTO ZOOM (VER FOTO COMPLETA EN ADMIN AL POSICIONAR CURSOR)
   ========================================================================== */
.table-img-cell {
  position: relative;
}

.table-img-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.table-img-hover-preview {
  position: absolute;
  top: 50%;
  left: 65px;
  transform: translateY(-50%) scale(0.85);
  width: 230px;
  height: 230px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(74, 21, 33, 0.4);
  border: 4px solid #FFFFFF;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.25s ease;
  background-color: #FFFFFF;
}

.table-img-wrapper:hover .table-img-hover-preview {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

/* ==========================================================================
   MODAL / PANTALLA DE INICIO DE SESIÓN ADMIN (ESTILO INS PIRADO EN LA IMAGEN)
   ========================================================================== */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(198, 159, 153, 0.45), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(74, 21, 33, 0.55), transparent 50%),
              rgba(247, 241, 235, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

/* Ocultar inmediatamente si la sesión ya fue iniciada previamente */
html.admin-logged-in #login-modal-overlay {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.login-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 32px;
  padding: 44px 34px 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 30px 60px rgba(74, 21, 33, 0.22);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  position: relative;
  text-align: center;
  animation: loginCardPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes loginCardPop {
  0% {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Círculo de Avatar Superior con Logo de la Empresa */
.login-avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: var(--color-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -70px auto 16px auto;
  box-shadow: 0 12px 28px rgba(74, 21, 33, 0.38);
  border: 4px solid #FFFFFF;
  overflow: hidden;
  padding: 10px;
}

.login-avatar-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Convierte el logo a blanco brillante para resaltar sobre el fondo bordó */
}

.login-title {
  font-family: var(--font-sans);
  color: var(--color-burgundy);
  font-size: 1.85rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* Campos de entrada con icono a la izquierda */
.login-input-box {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 4px 18px;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: var(--transition);
}

.login-input-box:focus-within {
  border-color: var(--color-burgundy);
  box-shadow: 0 0 0 4px rgba(74, 21, 33, 0.1);
  background: #FFFFFF;
}

.login-input-icon {
  color: #8E7B7D;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.login-field {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  padding: 13px 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-primary);
}

.login-field::placeholder {
  color: #A08F92;
  font-weight: 400;
}

/* Botón de Inicio de Sesión estilo Pill */
.btn-login-submit {
  width: 100%;
  padding: 15px 20px;
  border-radius: 16px;
  background-color: var(--color-burgundy);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(74, 21, 33, 0.3);
  margin-top: 8px;
}

.btn-login-submit:hover {
  background-color: var(--color-burgundy-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(74, 21, 33, 0.4);
}

.btn-login-submit:active {
  transform: translateY(0);
}

/* Fila de opciones inferior */
.login-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.login-remember-lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 0.82rem;
}

.login-remember-lbl input[type="checkbox"] {
  accent-color: var(--color-burgundy);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.login-brand-tag {
  color: var(--color-burgundy);
  font-weight: 600;
  opacity: 0.75;
}

.login-error-msg {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   MODAL DE CONFIRMACIÓN PERSONALIZADO (BORRAR / ACCIONES)
   ========================================================================== */
.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(45, 12, 20, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.confirm-card {
  background: #FFFFFF;
  border-radius: 28px;
  padding: 36px 30px 28px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  border: 1.5px solid var(--color-border);
  animation: confirmPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes confirmPop {
  0% { transform: scale(0.85) translateY(15px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.confirm-icon-box {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: rgba(220, 53, 69, 0.12);
  color: #dc3545;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin: 0 auto 18px auto;
  box-shadow: 0 6px 16px rgba(220, 53, 69, 0.15);
}

.confirm-title {
  font-family: var(--font-serif);
  color: var(--color-burgundy);
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.confirm-message {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.confirm-message strong {
  color: var(--color-burgundy);
  font-weight: 700;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-confirm-cancel {
  flex: 1;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  background-color: #E2D7D4;
  color: var(--color-text-primary);
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-confirm-cancel:hover {
  background-color: var(--color-border);
}

.btn-confirm-accept {
  flex: 1;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  background-color: #dc3545;
  color: #FFFFFF;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 6px 18px rgba(220, 53, 69, 0.35);
}

.btn-confirm-accept:hover {
  background-color: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(220, 53, 69, 0.45);
}

/* ==========================================================================
   ESTILOS DE CABECERA Y BUSCADOR MODERNO DE ADMIN
   ========================================================================== */
.admin-header-bordo {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  min-height: 76px;
}

.admin-header-right-box {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-header-title-tag {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

.btn-admin-logout {
  position: static !important;
  border: none !important;
  cursor: pointer;
  background: rgba(220, 53, 69, 0.25) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-admin-logout:hover {
  background: #dc3545 !important;
  transform: translateY(-2px);
}

/* Buscador y Filtro Rápido en Admin de Diseño Actual */
.admin-search-bar-modern {
  background: linear-gradient(135deg, #FAF6F3 0%, #FFFFFF 100%);
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  padding: 14px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(74, 21, 33, 0.04);
  flex-wrap: wrap;
}

.admin-search-input-box {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1.5px solid var(--color-border);
  padding: 4px 16px;
  gap: 12px;
  transition: var(--transition);
}

.admin-search-input-box:focus-within {
  border-color: var(--color-burgundy);
  box-shadow: 0 0 0 4px rgba(74, 21, 33, 0.08);
}

.admin-search-icon {
  color: var(--color-rose-gold);
  font-size: 1.1rem;
}

.admin-search-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--color-text-primary);
}

.admin-filter-select-box {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1.5px solid var(--color-border);
  padding: 4px 14px;
  gap: 10px;
  min-width: 180px;
  transition: var(--transition);
}

.admin-filter-select-box:focus-within {
  border-color: var(--color-burgundy);
  box-shadow: 0 0 0 4px rgba(74, 21, 33, 0.08);
}

.admin-filter-icon {
  color: var(--color-rose-gold);
  font-size: 0.95rem;
}

.admin-filter-select {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text-primary);
  cursor: pointer;
}

/* ==========================================================================
   ESTILOS DE CARGA DE IMAGEN MODERNA Y ACTUAL EN ADMIN
   ========================================================================== */
.image-upload-card-modern {
  background: linear-gradient(135deg, #FAF6F3 0%, #FFFFFF 100%);
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(74, 21, 33, 0.03);
}

.upload-label-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-burgundy);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.upload-drop-zone-modern {
  background: #FFFFFF;
  border: 2px dashed var(--color-rose-muted);
  border-radius: 18px;
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.upload-drop-zone-modern input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 20;
}

.upload-drop-zone-modern:hover,
.upload-drop-zone-modern.dragover {
  border-color: var(--color-burgundy);
  background-color: var(--color-burgundy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 21, 33, 0.08);
}

.upload-badge-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-burgundy-light);
  color: var(--color-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 12px auto;
  transition: var(--transition);
  pointer-events: none;
}

.upload-drop-zone-modern:hover .upload-badge-icon {
  background-color: var(--color-burgundy);
  color: #FFFFFF;
  transform: scale(1.1);
}

.upload-primary-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
  pointer-events: none;
}

.upload-secondary-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  pointer-events: none;
}

.upload-secondary-text span {
  color: var(--color-burgundy);
  font-weight: 600;
}

/* Divisor elegante entre archivo y URL */
.upload-divider-modern {
  text-align: center;
  position: relative;
  margin: 18px 0 14px;
}

.upload-divider-modern::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-border);
  z-index: 1;
}

.upload-divider-modern span {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  padding: 4px 14px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  border-radius: 20px;
  border: 1px solid var(--color-border);
}

/* Caja de URL moderna */
.image-url-box-modern {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1.5px solid var(--color-border);
  padding: 2px 14px;
  gap: 10px;
  transition: var(--transition);
}

.image-url-box-modern:focus-within {
  border-color: var(--color-burgundy);
  box-shadow: 0 0 0 4px rgba(74, 21, 33, 0.08);
}

.image-url-icon {
  color: var(--color-rose-gold);
  font-size: 1rem;
}

.image-url-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text-primary);
}

/* Vista Previa */
.image-preview-box-modern {
  margin-top: 16px;
  position: relative;
  display: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border: 3px solid #FFFFFF;
}

.image-preview-box-modern img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.preview-badge-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(74, 21, 33, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   GALERÍA DE FOTOS Y CARRUSEL DESLIZABLE DE KITS
   ========================================================================== */

/* Insignia de Galería en Tarjeta Principal */
.product-badge-gallery {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(74, 21, 33, 0.85);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Flechas de Navegación en Modal */
.modal-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-burgundy);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  z-index: 25;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.modal-arrow-btn:hover {
  background: #350E17;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.modal-arrow-prev {
  left: 18px;
}

.modal-arrow-next {
  right: 18px;
}

/* Contador de Fotos (ej: 1 / 3) */
.modal-gallery-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(74, 21, 33, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Miniaturas / Puntos en Modal */
.modal-gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 20px;
  max-width: 90%;
  overflow-x: auto;
}

.modal-dot-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: var(--transition);
}

.modal-dot-thumb:hover,
.modal-dot-thumb.active {
  opacity: 1;
  border-color: var(--color-rose-gold);
  transform: scale(1.1);
}

/* Galería de Administración para Carga de Fotos */
.admin-gallery-section {
  background: #FFFFFF;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  padding: 14px;
}

.admin-gallery-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-burgundy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 10px;
}

.admin-gallery-item {
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--color-border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.admin-gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-gallery-item .btn-remove-gallery-item {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(220, 53, 69, 0.9);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: var(--transition);
}

.admin-gallery-item .btn-remove-gallery-item:hover {
  background: #c82333;
  transform: scale(1.15);
}

.admin-gallery-item .gallery-item-cover-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(74, 21, 33, 0.85);
  color: #FFFFFF;
  font-size: 0.6rem;
  text-align: center;
  padding: 2px 0;
  font-weight: 700;
}


/* Botón Informativo con la Cantidad de Productos Agregados */
.btn-admin-product-count {
  width: 100%;
  margin-top: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, rgba(74, 21, 33, 0.05) 0%, rgba(198, 159, 153, 0.15) 100%);
  color: var(--color-burgundy);
  border: 1.5px solid var(--color-border);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(74, 21, 33, 0.03);
  transition: var(--transition);
  cursor: default;
}

.btn-admin-product-count strong {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-burgundy);
}

/* Botón de Exportación de products.json para Hosting Netlify */
.btn-export-hosting-json {
  background-color: var(--color-rose-gold);
  color: var(--color-burgundy);
  border: 1px solid var(--color-rose-muted);
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(198, 159, 153, 0.3);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-export-hosting-json:hover {
  background-color: var(--color-burgundy);
  color: #FFFFFF;
  border-color: var(--color-burgundy);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(74, 21, 33, 0.3);
}







