/* Estilos personalizados para Muebles Argot */

/* Variables CSS */
:root {
  --primary-red: #991b1b;
  --primary-red-hover: #7f1d1d;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
}

/* Estilos generales */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--stone-800);
}

/* Botones personalizados */
.btn-primary {
  background-color: var(--primary-red);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.3);
}

/* Animaciones suaves */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

/* Efectos hover para tarjetas */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Estilos para el catálogo */
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

/* Badge de nuevo */
.badge-new {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Badge de descuento */
.badge-discount {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Precios */
.price-original {
  text-decoration: line-through;
  color: var(--stone-400);
  font-size: 0.9rem;
}

.price-current {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Estrellas de calificación */
.stars {
  color: #fbbf24;
}

/* Filtros del catálogo */
.filter-button {
  padding: 0.5rem 1rem;
  border: 2px solid var(--stone-200);
  background: white;
  color: var(--stone-600);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-button:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.filter-button.active {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: white;
}

/* Loader */
.loader {
  border: 3px solid var(--stone-200);
  border-top: 3px solid var(--primary-red);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .product-image {
    height: 200px;
  }

  .price-current {
    font-size: 1.1rem;
  }
}

/* Estilos para formularios */
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--stone-200);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.1);
}

/* Estilos para el modal de administración */
.modal-overlay {
  background: rgba(027, 27, 0.1);
}

/* Estilos para el modal de administración */
.modal-overlay {
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Estilos para notificaciones */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  color: white;
  font-weight: 600;
  z-index: 1001;
  animation: slideIn 0.3s ease;
}

.notification.success {
  background: #16a34a;
}

.notification.error {
  background: #dc2626;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Estilos para FAQ */
.faq-item {
  border: 1px solid var(--stone-200);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1rem 1.5rem;
  background: white;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 600;
  color: var(--stone-800);
}

.faq-question:hover {
  background: var(--stone-50);
}

.faq-answer {
  padding: 0 1.5rem 1rem;
  color: var(--stone-600);
  line-height: 1.6;
}

/* Utilidades */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-red), #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-custom {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Animaciones adicionales */
.bounce-in {
  animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Estilos para dispositivos móviles */
@media (max-width: 640px) {
  .modal-content {
    margin: 1rem;
    padding: 1.5rem;
  }

  .notification {
    right: 10px;
    left: 10px;
    width: auto;
  }
}

/* ========================================
   CAPSLOCK WARNING
   ======================================== */
.capslock-warning {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 10px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #92400e;
  animation: fadeInCaps 0.2s ease;
}

.capslock-warning.visible {
  display: flex;
}

.capslock-warning i {
  color: #d97706;
  font-size: 0.85rem;
}

@keyframes fadeInCaps {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   CUSTOM MODAL / POPUP SYSTEM
   ======================================== */
.argot-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 25, 23, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 16px;
  opacity: 0;
  animation: argotOverlayIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes argotOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.argot-modal-overlay.closing {
  animation: argotOverlayOut 0.25s ease forwards;
}

@keyframes argotOverlayOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.argot-modal-box {
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 8px 30px rgba(0, 0, 0, 0.12),
    0 30px 60px rgba(0, 0, 0, 0.14);
  max-width: 430px;
  width: 100%;
  overflow: hidden;
  margin-top: 60px;
  transform: translateY(-40px) scale(0.97);
  opacity: 0;
  animation: argotBoxIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

@keyframes argotBoxIn {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.argot-modal-overlay.closing .argot-modal-box {
  animation: argotBoxOut 0.2s ease forwards;
}

@keyframes argotBoxOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-30px) scale(0.97);
  }
}

/* Top accent bar per type */
.argot-modal-box::before {
  content: '';
  display: block;
  height: 4px;
  width: 100%;
  background: var(--primary-red);
  border-radius: 16px 16px 0 0;
}

.argot-modal-box.type-success::before { background: #16a34a; }
.argot-modal-box.type-error::before { background: #dc2626; }
.argot-modal-box.type-warning::before { background: #d97706; }
.argot-modal-box.type-info::before { background: #2563eb; }
.argot-modal-box.type-confirm::before { background: var(--primary-red); }
.argot-modal-box.type-danger::before { background: #dc2626; }

.argot-modal-header {
  padding: 24px 28px 8px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.argot-modal-header .argot-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.argot-modal-icon.icon-success { background: #dcfce7; color: #16a34a; }
.argot-modal-icon.icon-error { background: #fee2e2; color: #dc2626; }
.argot-modal-icon.icon-warning { background: #fef3c7; color: #d97706; }
.argot-modal-icon.icon-info { background: #dbeafe; color: #2563eb; }
.argot-modal-icon.icon-confirm { background: #fef3c7; color: #d97706; }
.argot-modal-icon.icon-danger { background: #fee2e2; color: #dc2626; }

.argot-modal-header .argot-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1c1917;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.argot-modal-body {
  padding: 8px 28px 24px;
  font-size: 0.92rem;
  color: #57534e;
  line-height: 1.65;
}

.argot-modal-footer {
  padding: 0 28px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.argot-modal-btn {
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 100px;
  text-align: center;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.argot-modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.argot-modal-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.argot-modal-btn.btn-primary-modal {
  background: var(--primary-red);
  color: #fff;
}
.argot-modal-btn.btn-primary-modal:hover {
  background: var(--primary-red-hover);
  box-shadow: 0 4px 14px rgba(153, 27, 27, 0.3);
}

.argot-modal-btn.btn-cancel-modal {
  background: #f5f5f4;
  color: #44403c;
  border: 1px solid #e7e5e4;
}
.argot-modal-btn.btn-cancel-modal:hover {
  background: #e7e5e4;
  border-color: #d6d3d1;
}

.argot-modal-btn.btn-danger-modal {
  background: #dc2626;
  color: #fff;
}
.argot-modal-btn.btn-danger-modal:hover {
  background: #b91c1c;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.argot-modal-btn.btn-success-modal {
  background: #16a34a;
  color: #fff;
}
.argot-modal-btn.btn-success-modal:hover {
  background: #15803d;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

@media (max-width: 480px) {
  .argot-modal-box {
    max-width: 100%;
    margin-top: 24px;
    border-radius: 14px;
  }
  .argot-modal-header { padding: 20px 20px 6px; }
  .argot-modal-body { padding: 6px 20px 20px; }
  .argot-modal-footer {
    padding: 0 20px 20px;
    flex-direction: column-reverse;
  }
  .argot-modal-btn {
    width: 100%;
  }
}

/* ========================================
   FOOTER: Titulos principales y nombres de sedes en rojo corporativo
   ======================================== */
footer .sede-name,
footer h4.font-medium.sede-name,
footer h4.font-medium {
  color: #CC0000 !important;
}

/* Titulos de columnas del footer en rojo */
footer .text-2xl.font-bold.text-white,
footer .text-2xl.font-bold,
footer h3.text-white.font-semibold,
footer h3.text-white,
footer h3.text-lg.font-semibold,
footer h3.font-semibold {
  color: #CC0000 !important;
}

/* ========================================
   ADMIN PANEL: Hover rojo en menú de sede
   ======================================== */
nav.bg-stone-800 button:hover {
  color: #CC0000 !important;
}
nav.bg-stone-800 button:hover {
  border-bottom-color: #CC0000 !important;
}
nav.bg-stone-800 button.text-red-500,
nav.bg-stone-800 button.text-red-400 {
  color: #CC0000 !important;
  border-bottom-color: #CC0000 !important;
}
