/**
 * vCard Pro - Sistema de Diseño Profesional
 * Paleta: Industrial Modern (Amarillo + Grises)
 */

/* ===========================
   PALETA DE COLORES BASE
   =========================== */
:root {
  /* Colores principales */
  --timberwolf: #d6d6d6;
  --aureolin: #ffee32;
  --jonquil: #ffd100;
  --eerie-black: #202020;
  --jet: #333533;
  
  /* Variaciones de grises expandidas */
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  
  /* Variaciones de amarillo para diferentes contextos */
  --yellow-50: #fefce8;
  --yellow-100: #fef9c3;
  --yellow-200: #fef08a;
  --yellow-300: #fde047;
  --yellow-400: var(--aureolin);
  --yellow-500: var(--jonquil);
  --yellow-600: #ca8a04;
  --yellow-700: #a16207;
  
  /* Estados semánticos */
  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-danger: #ef4444;
  --color-danger-light: #fee2e2;
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-info: #3b82f6;
  --color-info-light: #dbeafe;
  
  /* Sistema de colores UI */
  --ui-bg: #fafafa;
  --ui-surface: #ffffff;
  --ui-border: #e5e5e5;
  --ui-border-dark: #d4d4d4;
  --ui-text: var(--eerie-black);
  --ui-text-light: var(--jet);
  --ui-text-muted: var(--gray-500);
  --ui-accent: var(--jonquil);
  --ui-accent-hover: var(--yellow-600);
  --ui-accent-light: var(--yellow-50);
  
  /* Tipografía */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  
  /* Sombras modernas */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Sombras con color amarillo (para efectos hover) */
  --shadow-yellow: 0 4px 14px 0 rgba(255, 209, 0, 0.25);
  --shadow-yellow-lg: 0 10px 25px -5px rgba(255, 209, 0, 0.3);
  
  /* Bordes redondeados */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transiciones */
  --transition-fast: all 0.15s ease;
  --transition: all 0.2s ease;
  --transition-slow: all 0.3s ease;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ui-text);
  background: var(--ui-bg);
  min-height: 100vh;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ui-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--ui-accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--ui-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ===========================
   LAYOUT
   =========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-md {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-lg {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === FLEX === */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1; }
.flex-auto { flex: 1 1 auto; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* === GRID === */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.gap-grid { gap: 1.5rem; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===========================
   TIPOGRAFÍA
   =========================== */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* Colores de texto */
.text-black { color: var(--eerie-black); }
.text-jet { color: var(--jet); }
.text-gray { color: var(--gray-500); }
.text-gray-light { color: var(--gray-400); }
.text-gray-dark { color: var(--gray-700); }
.text-yellow { color: var(--jonquil); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }
.text-info { color: var(--color-info); }

/* ===========================
   BOTONES MODERNOS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn:focus-visible {
  outline: 2px solid var(--ui-accent);
  outline-offset: 2px;
}

/* Botón amarillo principal */
.btn-primary, .btn-yellow {
  background: var(--jonquil);
  color: var(--eerie-black);
  border-color: var(--jonquil);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover, .btn-yellow:hover {
  background: var(--yellow-600);
  border-color: var(--yellow-600);
  box-shadow: var(--shadow-yellow);
  transform: translateY(-1px);
}

.btn-primary:active, .btn-yellow:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

/* Botón outline amarillo */
.btn-outline, .btn-yellow-outline {
  background: var(--ui-surface);
  color: var(--jonquil);
  border: 2px solid var(--jonquil);
  font-weight: 700;
}

.btn-outline:hover, .btn-yellow-outline:hover {
  background: var(--yellow-50);
  border-color: var(--yellow-600);
  color: var(--yellow-700);
}

/* Botón oscuro (jet) */
.btn-dark {
  background: var(--jet);
  color: white;
  border-color: var(--jet);
  font-weight: 600;
}

.btn-dark:hover {
  background: var(--eerie-black);
  border-color: var(--eerie-black);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Botón negro (eerie-black) */
.btn-black {
  background: var(--eerie-black);
  color: white;
  border-color: var(--eerie-black);
  font-weight: 600;
}

.btn-black:hover {
  background: #000000;
  border-color: #000000;
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

/* Botón ghost/light */
.btn-light, .btn-ghost {
  background: var(--gray-50);
  color: var(--jet);
  border-color: var(--ui-border);
  font-weight: 600;
}

.btn-light:hover, .btn-ghost:hover {
  background: var(--ui-surface);
  border-color: var(--ui-border-dark);
  box-shadow: var(--shadow-sm);
}

/* Botones de estado */
.btn-success {
  background: var(--color-success);
  color: white;
  border-color: var(--color-success);
}

.btn-success:hover {
  background: #059669;
  border-color: #059669;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.25);
}

.btn-danger {
  background: var(--color-danger);
  color: white;
  border-color: var(--color-danger);
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.25);
}

/* Tamaños de botones */
.btn-sm {
  padding: 0.4375rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-xl);
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ===========================
   FORMULARIOS MODERNOS
   =========================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--jet);
  letter-spacing: -0.01em;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.5;
  color: var(--ui-text);
  background: var(--ui-surface);
  border: 2px solid var(--ui-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  appearance: none;
}

.form-control::placeholder {
  color: var(--gray-400);
}

.form-control:hover {
  border-color: var(--ui-border-dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--jonquil);
  box-shadow: 0 0 0 4px rgba(255, 209, 0, 0.1);
  background: var(--ui-surface);
}

.form-control.error {
  border-color: var(--color-danger);
}

.form-control.error:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-size: 1.25rem 1.25rem;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
  border: 2px solid var(--ui-border-dark);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: var(--jonquil);
  border-color: var(--jonquil);
}

input[type="radio"] {
  border-radius: var(--radius-full);
}

.form-help {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.form-error {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-danger);
  font-weight: 500;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================
   CARDS MODERNAS
   =========================== */
.card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-100);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--eerie-black);
  letter-spacing: -0.02em;
}

.card-subtitle {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.card-body {
  line-height: 1.6;
}

.card-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 2px solid var(--gray-100);
}

/* Card interactiva con hover effect */
.card-interactive {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card-interactive::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--jonquil), var(--aureolin));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--ui-border-dark);
}

.card-interactive:hover::before {
  transform: scaleX(1);
}

/* Card con borde amarillo */
.card-featured {
  border: 2px solid var(--jonquil);
  box-shadow: var(--shadow-yellow);
  position: relative;
}

.card-featured::after {
  content: 'Destacado';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--jonquil);
  color: var(--eerie-black);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===========================
   ALERTS / MENSAJES
   =========================== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}

.alert-success {
  background: var(--color-success-light);
  color: #065f46;
  border-left-color: var(--color-success);
}

.alert-error, .alert-danger {
  background: var(--color-danger-light);
  color: #991b1b;
  border-left-color: var(--color-danger);
}

.alert-warning {
  background: var(--color-warning-light);
  color: #92400e;
  border-left-color: var(--color-warning);
}

.alert-info {
  background: var(--color-info-light);
  color: #1e40af;
  border-left-color: var(--color-info);
}

/* ===========================
   BADGES
   =========================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-yellow {
  background: var(--jonquil);
  color: var(--eerie-black);
}

.badge-gray {
  background: var(--gray-200);
  color: var(--gray-700);
}

.badge-success {
  background: var(--color-success);
  color: white;
}

.badge-danger {
  background: var(--color-danger);
  color: white;
}

.badge-warning {
  background: var(--color-warning);
  color: white;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
  background: var(--ui-surface);
  border-bottom: 1px solid var(--ui-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--eerie-black);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand:hover {
  color: var(--jet);
}

.navbar-brand-accent {
  color: var(--jonquil);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.navbar-link {
  padding: 0.625rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--jet);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.navbar-link:hover {
  color: var(--eerie-black);
  background: var(--gray-50);
}

.navbar-link.active {
  color: var(--jonquil);
  background: var(--yellow-50);
}

/* ===========================
   TABLES
   =========================== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ui-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table thead {
  background: var(--gray-50);
  border-bottom: 2px solid var(--ui-border);
}

.table th {
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--jet);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table td {
  padding: 1rem 0.75rem;
  font-size: 0.9375rem;
  color: var(--ui-text);
  border-top: 1px solid var(--ui-border);
}

.table tbody tr {
  transition: var(--transition);
}

.table tbody tr:hover {
  background: var(--gray-50);
}

/* ===========================
   SPACING UTILITIES
   =========================== */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-5 { margin: 1.25rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

/* ===========================
   UTILIDADES GENERALES
   =========================== */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none !important; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }
.shadow-none { box-shadow: none; }

.bg-white { background-color: var(--ui-surface); }
.bg-gray { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-yellow { background-color: var(--jonquil); }
.bg-black { background-color: var(--eerie-black); }
.bg-jet { background-color: var(--jet); }

.border { border: 1px solid var(--ui-border); }
.border-2 { border: 2px solid var(--ui-border); }
.border-yellow { border-color: var(--jonquil); }
.border-gray { border-color: var(--ui-border); }

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

.select-none { user-select: none; }

.transition { transition: var(--transition); }
.transition-fast { transition: var(--transition-fast); }
.transition-slow { transition: var(--transition-slow); }

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--eerie-black);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-accent {
  color: var(--jonquil);
}

@media (max-width: 767px) {
  .hero {
    padding: 3rem 0 2rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

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

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

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

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

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

/* Loading spinner */
.loading {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
}

.loading-dark {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--jonquil);
}

/* ===========================
   EMPTY STATE
   =========================== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-500);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state-text {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.empty-state-subtext {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

/* ===========================
   VCARD ESPECÍFICO
   =========================== */
.vcard-preview {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--jet) 0%, var(--eerie-black) 100%);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
}

.vcard-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.vcard-info {
  padding: 1rem;
}

.vcard-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--eerie-black);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.vcard-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--jonquil);
  margin-bottom: 0.5rem;
}

.vcard-location {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.vcard-bio {
  font-size: 0.9375rem;
  color: var(--ui-text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 767px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg {
    padding: 0 1rem;
  }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .navbar-nav {
    flex-wrap: wrap;
  }

  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
  }

  .table {
    font-size: 0.875rem;
  }

  .table th,
  .table td {
    padding: 0.75rem 0.5rem;
  }
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
  .navbar,
  .btn,
  .form-control {
    display: none !important;
  }

  body {
    background: white;
  }

  .card {
    box-shadow: none;
    border: 1px solid #e5e5e5;
  }
}
/**
 * Theme 4 - Tarjeta Compacta
 * Archivo: theme4-styles.css
 * 
 * INSTRUCCIONES:
 * 1. Agregar este contenido al final de: public_html/assets/css/app.css
 * 2. O crear un archivo separado e incluirlo en el layout
 */

/* ===========================
   THEME 4: VARIABLES
   =========================== */
:root {
  /* Colores Theme 4 - Azul */
  --theme4-primary: #3b82f6;
  --theme4-secondary: #60a5fa;
  --theme4-light: #93c5fd;
  --theme4-dark: #2563eb;
  --theme4-cyan: #06b6d4;
  
  /* Fondos */
  --theme4-bg-from: #a1c4fd;
  --theme4-bg-via: #3b82f6;
  --theme4-bg-to: #c2e9fb;
  
  /* Grises */
  --theme4-gray-50: #f9fafb;
  --theme4-gray-100: #f3f4f6;
  --theme4-gray-500: #6b7280;
  --theme4-gray-700: #374151;
  --theme4-gray-900: #111827;
  
  /* Sombras especiales */
  --theme4-shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --theme4-shadow-avatar: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
  --theme4-shadow-item: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ===========================
   FONDO DEGRADADO
   =========================== */
.bg-theme4-gradient {
  background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
  min-height: 100vh;
}

/* Alternativa con más movimiento */
.bg-theme4-animated {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 25%, #2563eb 50%, #06b6d4 75%, #0891b2 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===========================
   TARJETA PRINCIPAL
   =========================== */
.card-theme4 {
  max-width: 28rem;
  background: white;
  border-radius: 1.5rem;
  box-shadow: var(--theme4-shadow-card);
  overflow: hidden;
}

/* Efecto hover sutil */
.card-theme4:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   AVATAR Y BADGE
   =========================== */
.avatar-theme4 {
  width: 6.6rem;
  height: 6.6rem;
  border-radius: 50%;
  border: 4px solid var(--theme4-secondary);
  box-shadow: var(--theme4-shadow-avatar);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.avatar-theme4:hover {
  transform: scale(1.05);
}

/* Badge verificado */
.verified-badge-theme4 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--theme4-primary);
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--theme4-shadow-item);
}

/* ===========================
   ITEMS DE CONTACTO
   =========================== */
.contact-item-theme4 {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: #ccc;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.contact-item-theme4:hover {
  background: var(--theme4-gray-100);
  transform: translateY(-2px);
  box-shadow: var(--theme4-shadow-item);
}

/* Icono del item de contacto */
.contact-icon-theme4 {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   REDES SOCIALES
   =========================== */
.social-icon-theme4 {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: var(--theme4-shadow-item);
}

.social-icon-theme4:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

/* Colores específicos para cada red social */
.social-instagram {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

.social-facebook {
  background: #1877f2;
}

.social-linkedin {
  background: #0077b5;
}

.social-twitter {
  background: #1da1f2;
}

.social-tiktok {
  background: #000000;
}

.social-whatsapp {
  background: #25d366;
}

/* ===========================
   PRODUCTOS
   =========================== */
.product-card-theme4 {
  background: #ccc;
  border-radius: 0.75rem;
  padding: 0.75rem;
  transition: all 0.2s ease;
}

.product-card-theme4:hover {
  background: var(--theme4-gray-100);
  transform: translateY(-2px);
  box-shadow: var(--theme4-shadow-item);
}

.product-title-theme4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme4-gray-900);
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-description-theme4 {
  font-size: 0.75rem;
  color: var(--theme4-gray-500);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-theme4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--theme4-primary);
}

/* ===========================
   QR CODE
   =========================== */
.qr-container-theme4 {
  width: 10rem;
  height: 10rem;
  margin: 0 auto;
  border-radius: 0.75rem;
  box-shadow: var(--theme4-shadow-item);
  overflow: hidden;
}

.qr-container-theme4:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* ===========================
   BOTONES DE ACCIÓN
   =========================== */
.btn-theme4-primary {
  width: 100%;
  padding: 0.75rem;
  background: var(--theme4-primary);
  color: white;
  font-weight: 500;
  border-radius: 0.75rem;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-theme4-primary:hover {
  background: var(--theme4-dark);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.btn-theme4-secondary {
  width: 100%;
  padding: 0.75rem;
  background: white;
  border: 2px solid var(--theme4-primary);
  color: var(--theme4-primary);
  font-weight: 500;
  border-radius: 0.75rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-theme4-secondary:hover {
  background: #eff6ff;
  transform: translateY(-2px);
}

/* ===========================
   SECCIONES
   =========================== */
.section-theme4 {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.section-title-theme4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme4-gray-900);
  margin-bottom: 0.75rem;
  text-align: center;
}

/* ===========================
   UTILIDADES
   =========================== */
.truncate-theme4 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2-theme4 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 640px) {
  .card-theme4 {
    max-width: 100%;
    margin: 0.5rem;
  }
  
  .avatar-theme4 {
    width: 5rem;
    height: 5rem;
  }
  
  .section-theme4 {
    padding: 0.75rem 1rem;
  }
}

/* ===========================
   ANIMACIONES ADICIONALES
   =========================== */

/* Fade in al cargar */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-theme4 {
  animation: fadeInUp 0.6s ease-out;
}

/* Pulse suave para el badge */
@keyframes pulse-theme4 {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.verified-badge-theme4 {
  animation: pulse-theme4 2s ease-in-out infinite;
}

/* Shimmer para loading states */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading-shimmer {
  animation: shimmer 2s infinite;
  background: linear-gradient(to right, #f3f4f6 0%, #e5e7eb 20%, #f3f4f6 40%, #f3f4f6 100%);
  background-size: 1000px 100%;
}

/* ===========================
   DARK MODE (Opcional)
   =========================== */
@media (prefers-color-scheme: dark) {
  :root {
    --theme4-gray-50: #1f2937;
    --theme4-gray-100: #374151;
    --theme4-gray-900: #f9fafb;
  }
  
  .card-theme4 {
    background: #1f2937;
  }
  
  .contact-item-theme4 {
    background: #374151;
  }
  
  .contact-item-theme4:hover {
    background: #4b5563;
  }
  
  .product-card-theme4 {
    background: #374151;
  }
  
  .product-card-theme4:hover {
    background: #4b5563;
  }
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
  .bg-theme4-gradient {
    background: white !important;
  }
  
  .card-theme4 {
    box-shadow: none !important;
    border: 1px solid #e5e7eb;
  }
  
  .btn-theme4-primary,
  .btn-theme4-secondary {
    display: none !important;
  }
}