/* 
 * Alora Studio - Catálogo Comercial Interactivo 2026
 * Hoja de estilos con la paleta oficial y experiencia táctil fluida
 */

:root {
  --color-crimson: #8D151F;
  --color-wine: #6E1D2C;
  --color-linen: #EDE8D9;
  --color-linen-light: #F7F5EE;
  --color-forest: #32493A;
  --color-forest-dark: #24352A;
  --color-blush: #E4B2AE;
  --color-peach: #E8AC99;
  --color-gold: #A1895A;
  --color-white: #FFFFFF;
  --color-body: #2B382F;
  --color-muted: #5A695E;
  --color-border: rgba(141, 21, 31, 0.12);
  --color-border-forest: rgba(50, 73, 58, 0.15);
  
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Mont', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset y base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-linen);
  color: var(--color-body);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--color-linen);
  background-image: radial-gradient(rgba(141, 21, 31, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Tipografía */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* Botones principales de marca */
.btn-alora-crimson {
  background-color: var(--color-crimson);
  color: var(--color-white);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(141, 21, 31, 0.22);
  min-height: 44px;
}

.btn-alora-crimson:hover {
  background-color: var(--color-wine);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(110, 29, 44, 0.3);
}

.btn-alora-crimson:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(110, 29, 44, 0.2);
}

.btn-alora-forest {
  background-color: var(--color-forest);
  color: var(--color-white);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(50, 73, 58, 0.2);
  min-height: 44px;
}

.btn-alora-forest:hover {
  background-color: var(--color-forest-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(36, 53, 42, 0.3);
}

.btn-alora-outline {
  border: 1.5px solid var(--color-forest);
  color: var(--color-forest);
  background-color: transparent;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 9999px;
  min-height: 44px;
}

.btn-alora-outline:hover {
  background-color: rgba(50, 73, 58, 0.08);
  border-color: var(--color-forest-dark);
  color: var(--color-forest-dark);
}

.btn-alora-subtle {
  background-color: rgba(141, 21, 31, 0.08);
  color: var(--color-crimson);
  transition: all 0.2s ease;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-alora-subtle:hover {
  background-color: rgba(141, 21, 31, 0.15);
  color: var(--color-wine);
}

/* Botones de acción táctiles para cantidades */
.qty-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.15s ease;
  border: 1px solid rgba(50, 73, 58, 0.25);
  background: var(--color-white);
  color: var(--color-forest);
}

.qty-btn:hover:not(:disabled) {
  background: var(--color-forest);
  color: var(--color-white);
  border-color: var(--color-forest);
}

.qty-btn:active:not(:disabled) {
  transform: scale(0.92);
}

.qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Tarjetas y superficies */
.card-alora {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px -2px rgba(50, 73, 58, 0.05);
  transition: all 0.25s ease;
}

.card-alora:hover {
  border-color: rgba(141, 21, 31, 0.25);
  box-shadow: 0 10px 30px -5px rgba(110, 29, 44, 0.08);
}

.card-popular {
  border: 2px solid var(--color-crimson) !important;
  box-shadow: 0 12px 35px -5px rgba(141, 21, 31, 0.18) !important;
  position: relative;
}

/* Badges */
.badge-alora-gold {
  background: rgba(161, 137, 90, 0.15);
  color: #7D6433;
  border: 1px solid rgba(161, 137, 90, 0.3);
}

.badge-alora-crimson {
  background: rgba(141, 21, 31, 0.1);
  color: var(--color-crimson);
  border: 1px solid rgba(141, 21, 31, 0.2);
}

.badge-alora-forest {
  background: rgba(50, 73, 58, 0.1);
  color: var(--color-forest);
  border: 1px solid rgba(50, 73, 58, 0.2);
}

.badge-alora-peach {
  background: rgba(232, 172, 153, 0.25);
  color: #9E452E;
  border: 1px solid rgba(232, 172, 153, 0.45);
}

/* Navegación por pestañas */
.tab-pill {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
}

@media (min-width: 640px) {
  .tab-pill {
    border-radius: 9999px;
    padding: 0.65rem 1.4rem;
    font-size: 0.875rem;
    white-space: nowrap;
    width: auto;
    min-height: auto;
  }
}

.tab-pill.active {
  background-color: var(--color-crimson);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(141, 21, 31, 0.25);
}

.tab-pill:not(.active) {
  color: var(--color-forest);
  background-color: transparent;
}

.tab-pill:not(.active):hover {
  background-color: rgba(50, 73, 58, 0.06);
}

/* Drawer / Panel lateral deslizable para "Mi Selección" */
.selection-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: var(--color-linen-light);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.18);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.selection-drawer.open {
  transform: translateX(0);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 56, 47, 0.45);
  backdrop-filter: blur(3px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modales */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 56, 47, 0.55);
  backdrop-filter: blur(4px);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--color-white);
  border-radius: 1.5rem;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--color-border);
}

.modal-backdrop.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Barra flotante inferior para móvil */
.sticky-bottom-summary {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(237, 232, 217, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(141, 21, 31, 0.15);
  padding: 0.75rem 1.25rem;
  z-index: 80;
  box-shadow: 0 -4px 20px rgba(50, 73, 58, 0.08);
}

/* Toast de notificación */
#toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background-color: var(--color-forest);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Acordeones */
.accordion-header {
  cursor: pointer;
  user-select: none;
}

.accordion-chevron {
  transition: transform 0.25s ease;
}

.accordion-open .accordion-chevron {
  transform: rotate(180deg);
}

/* Animación sutil al interactuar */
@keyframes pulseSubtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.pulse-badge {
  animation: pulseSubtle 3s infinite ease-in-out;
}

/* Estilo para los scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: rgba(237, 232, 217, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(141, 21, 31, 0.25);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(141, 21, 31, 0.45);
}
