/* =======================================================
   Bohío Boutique y Bazar — Paleta Caribeña Vibrante & Tipografía
   Diseño Moderno y Colorido | Inspirado en el Caribe
   ======================================================= */

/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Dancing+Script:wght@700&family=Montserrat:wght@400;600;700&display=swap');

/* ==================== VARIABLES GLOBALES ==================== */
:root {
  /* Paleta de colores principal - Inspirada en el Caribe */
  --color-primary: #00c9c9;        /* Turquesa vibrante */
  --color-primary-light: #5ce0e0;   /* Turquesa claro brillante */
  --color-primary-dark: #009d9d;    /* Turquesa profunda */
  
  /* Colores secundarios */
  --color-secondary: #ff7e5f;      /* Coral anaranjado */
  --color-secondary-light: #ffb8a2; /* Coral claro */
  --color-tertiary: #6a4c93;       /* Púrpura intenso */
  --color-quaternary: #f9c74f;     /* Amarillo dorado */
  
  /* Colores de estado */
  --color-success: #38b000;        /* Verde esmeralda */
  --color-warning: #ff9f1c;        /* Naranja brillante */
  --color-danger: #ef476f;         /* Rojo coral */
  --color-info: #4cc9f0;           /* Azul cielo */
  
  /* Colores neutros mejorados */
  --color-light: #fff9f0;          /* Arena cálida */
  --color-gray-100: #f8f9ff;
  --color-gray-200: #e9f0ff;
  --color-gray-300: #d9e4ff;
  --color-gray-400: #c6d4f0;
  --color-gray-500: #a8b4cc;
  --color-gray-600: #7a8499;
  --color-gray-700: #4e5766;
  --color-gray-800: #2a3038;
  --color-gray-900: #1a1e24;
  --color-dark: #0a2342;           /* Azul noche */
  
  /* Fondos y superficies mejorados */
  --bg-top: #f0f9ff;              /* Azul cielo muy claro */
  --bg-bottom: #e6f7ff;           /* Azul cielo claro */
  --bg-card: rgba(255, 255, 255, 0.95); /* Fondo de tarjetas más opaco */
  
  /* Variables tipográficas mejoradas */
  --font-primary: 'Poppins', 'Montserrat', -apple-system, sans-serif;
  --font-accent: 'Dancing Script', 'Satisfy', cursive, sans-serif;
  --font-heading: 'Montserrat', 'Poppins', sans-serif;
  
  /* Espaciados */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 0.75rem;   /* 12px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  
  /* Radios de borde */
  --radius-sm: 0.5rem;   /* 8px */
  --radius-md: 0.75rem;  /* 12px */
  --radius-lg: 1.25rem;  /* 20px */
  --radius-full: 9999px; /* Para botones redondeados */
  
  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transiciones */
  --transition-base: all 0.3s ease-in-out;
  --transition-transform: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-colors: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  
  /* Z-index */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-modal: 30;
  --z-toast: 40;
  --z-tooltip: 50;
}

/* ==================== RESET Y ESTILOS BASE ==================== */
*, 
*::before, 
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Configuración de reducción de movimiento para accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.bg-degrade {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 25%, var(--color-primary-dark) 50%, var(--color-secondary) 75%, var(--color-secondary-light) 100%);
/* Estilos base del documento */


body {
  font-family: var(--font-primary);
  color: var(--color-light);
  line-height: 1.7;
  background: linear-gradient(135deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mejoras de accesibilidad para enlaces y botones */
a {
  color: var(--turquoise);
  text-decoration: none;
  transition: color var(--transition-base);
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: inherit;
  touch-action: manipulation;
}

/* Mejoras de legibilidad */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

/* Imágenes responsivas */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==================== ESTRUCTURA PRINCIPAL ==================== */
.card {
  --card-padding: 2.5rem; /* 40px */
  
  width: 100%;
  max-width: min(90%, 50rem); /* 800px */
  margin: 2rem auto;
  background: linear-gradient(135deg, var(--bg-card), rgba(255, 255, 255, 0.95));
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 5vw, var(--card-padding));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: var(--transition-base);
  animation: fadeIn 0.6s ease-out;
  will-change: transform, opacity, box-shadow;
}
.bg-caribbean { 
  color: var(--color-light);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Reducir movimiento para accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
    transition: none;
  }
  
  .card:hover {
    transform: none;
  }
}

/* ==================== ENCABEZADO ==================== */
header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  justify-content: center;
  flex-direction: column;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.logo {
  --logo-size: 5.375rem; /* 86px */
  
  width: var(--logo-size);
  height: var(--logo-size);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--turquoise), var(--palm));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.375rem; /* 22px */
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 50, 48, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .logo {
    transition: none;
  }
}

.title h1 {
  font-family: var(--font-accent);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.title p {
  margin-top: var(--space-xs);
  font-size: 1rem;
  color: hsl(184, 40%, 25%);
  opacity: 0.9;
}

/* ==================== CUENTA REGRESIVA ==================== */
.countdown {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  margin: var(--space-xl) 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: fadeIn 0.8s ease-out;
  will-change: transform, opacity;
  transition: var(--transition-base);
}

.countdown:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (prefers-reduced-motion: reduce) {
  .countdown {
    animation: none;
    transition: none;
  }
  
  .countdown:hover {
    transform: none;
  }
}

.timebox {
  --timebox-min-width: 5.375rem; /* 86px */
  
  min-width: var(--timebox-min-width);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.timebox::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.timebox:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: white;
}

.timebox:hover::before {
  opacity: 1;
}

.timebox .num {
  display: block;
  font-size: 1.875rem; /* 30px */
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}

.timebox:hover .num {
  color: white;
  animation: pulse 2s infinite;
}

.timebox .lbl {
  display: block;
  font-size: 0.75rem; /* 12px */
  color: var(--color-gray-600);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}

.timebox:hover .lbl {
  color: rgba(255, 255, 255, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .timebox {
    transition: none;
  }
  
  .timebox:hover {
    transform: none;
  }
  
  .timebox .num {
    animation: none !important;
  }
}

/* ==================== TEXTO INFORMATIVO ==================== */
.info {
  text-align: center;
  max-width: 37.5rem; /* 600px */
  margin: 0 auto var(--space-xl);
}

.info h2 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem; /* 20px */
  color: var(--text-dark);
  font-weight: 600;
}

.info p {
  line-height: 1.6;
  color: hsl(180, 25%, 25%);
  font-size: 0.9375rem; /* 15px */
  margin-left: auto;
  margin-right: auto;
}

.info p:not(:last-child) {
  margin-bottom: var(--space-md);
}

/* Mejora para lectores de pantalla */
[role="alert"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==================== PIE DE PÁGINA ==================== */
footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.8125rem; /* 13px */
  color: hsl(180, 25%, 30%);
  text-align: center;
  opacity: 0.8;
}

footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

footer a:hover,
footer a:focus {
  color: var(--turquoise);
  text-decoration: none;
}

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

@keyframes slideIn {
  from { 
    opacity: 0; 
    transform: translateY(10px) scale(0.98); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Efecto de carga para elementos */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Clase para elementos que se cargan */
.is-loading {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--color-gray-100) 25%, var(--color-gray-200) 50%, var(--color-gray-100) 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
  color: transparent !important;
  user-select: none;
  pointer-events: none;
}

.is-loading * {
  visibility: hidden;
}

/* Efectos de hover y focus */
.hover-scale {
  transition: var(--transition-transform);
}

.hover-scale:hover {
  transform: scale(1.02);
}

.hover-lift {
  transition: var(--transition-transform), var(--transition-colors);
  box-shadow: var(--shadow-md);
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Transiciones */
.transition-all {
  transition: var(--transition-base);
}

.transition-colors {
  transition: var(--transition-colors);
}

.transition-transform {
  transition: var(--transition-transform);
}

/* Utilidades de animación */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Efecto de aparición */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
  transform: translateY(10px);
}

/* Efecto de zoom */
.zoom-enter-active,
.zoom-leave-active {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.zoom-enter-from,
.zoom-leave-to {
  opacity: 0;
  transform: scale(0.95);
}

/* ==================== MEDIA QUERIES ==================== */
/* Pequeños dispositivos (móviles en vertical) */
@media (max-width: 36rem) { /* 576px */
  :root {
    --card-padding: 1.5rem;
  }
  
  .countdown {
    gap: 0.5rem;
    padding: 1rem;
  }
  
  .timebox {
    min-width: 4.25rem; /* 68px */
    padding: 0.5rem;
  }
  
  .timebox .num {
    font-size: 1.375rem; /* 22px */
  }
  
  .timebox .lbl {
    font-size: 0.6875rem; /* 11px */
  }
  
  .title h1 {
    font-size: 1.875rem; /* 30px */
  }
}

/* Dispositivos muy pequeños (menos de 360px) */
@media (max-width: 22.5rem) { /* 360px */
  .timebox {
    min-width: 3.5rem;
  }
  
  .timebox .num {
    font-size: 1.25rem;
  }
  
  .timebox .lbl {
    font-size: 0.625rem;
  }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #00cccc;
    --color-primary-light: #00ffff;
    --color-primary-dark: #009999;
    --color-secondary: #ff8585;
    --color-secondary-light: #ffb3b3;
    --color-success: #3cb371;
    --color-warning: #ffb74d;
    --color-danger: #f44336;
    --color-info: #29b6f6;
    
    --color-light: #2d2d2d;
    --color-gray-100: #1a1a1a;
    --color-gray-200: #2d2d2d;
    --color-gray-300: #404040;
    --color-gray-400: #595959;
    --color-gray-500: #737373;
    --color-gray-600: #8c8c8c;
    --color-gray-700: #a6a6a6;
    --color-gray-800: #bfbfbf;
    --color-gray-900: #d9d9d9;
    --color-dark: #e0f2f1;
    
    --bg-top: #1f2a2a;
    --bg-bottom: #0d1a1a;
    --bg-card: rgba(30, 40, 40, 0.9);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    
    --text-dark: #e0f2f1;
    --sand: #1a1a1a;
    --bg-top: #1f2a2a;
    --bg-bottom: #1a3333;
  }
  
  .card {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.8), rgba(30, 30, 30, 0.9));
    color: #e0e0e0;
  }
  
  .timebox,
  .countdown {
    background: linear-gradient(180deg, rgba(60, 60, 60, 0.55), rgba(40, 40, 40, 0.3));
  }
  
  .timebox .num {
    color: #ffffff;
  }
  
  .timebox .lbl {
    color: #a0c0c0;
  }
  
  .info p {
    color: #b0c0c0;
  }
  
  footer {
    color: #a0b0b0;
    border-top-color: rgba(255, 255, 255, 0.1);
  }
}

/* Impresión */
@media print {
  .card {
    box-shadow: none;
    padding: 0;
    max-width: 100%;
  }
  
  .countdown {
    display: none;
  }
  
  @page {
    margin: 1.5cm;
  }
}
