/* ==============================================================================
   vCard Themes & Mobile Styling
   vCard-Biz by Elevation Creative
   ============================================================================== */

/* Contenedor Base Móvil */
.vcard-app-shell {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

/* ==========================================
   TEMA 1: Executive Dark Gold
   ========================================== */
.theme-dark_gold {
  background: radial-gradient(circle at 50% 0%, #1E293B 0%, #0F172A 70%, #080D1A 100%);
  color: #F8FAFC;
}
.theme-dark_gold .vcard-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.theme-dark_gold .btn-primary-action {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #0F172A;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);
}
.theme-dark_gold .btn-primary-action:hover {
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
}
.theme-dark_gold .accent-text {
  color: #F59E0B;
}
.theme-dark_gold .action-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #F1F5F9;
}
.theme-dark_gold .action-pill:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #F59E0B;
  color: #F59E0B;
}

/* ==========================================
   TEMA 2: Corporate Modern Blue
   ========================================== */
.theme-modern_blue {
  background: radial-gradient(circle at 50% 0%, #172554 0%, #0A192F 70%, #030712 100%);
  color: #F8FAFC;
}
.theme-modern_blue .vcard-card {
  background: rgba(17, 34, 64, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.theme-modern_blue .btn-primary-action {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: #FFFFFF;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}
.theme-modern_blue .accent-text {
  color: #60A5FA;
}
.theme-modern_blue .action-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #F1F5F9;
}
.theme-modern_blue .action-pill:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3B82F6;
  color: #60A5FA;
}

/* ==========================================
   TEMA 3: Minimal Clean White
   ========================================== */
.theme-clean_white {
  background: #F8FAFC;
  color: #0F172A;
}
.theme-clean_white .vcard-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}
.theme-clean_white .btn-primary-action {
  background: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
}
.theme-clean_white .btn-primary-action:hover {
  background: #1E293B;
}
.theme-clean_white .accent-text {
  color: #2563EB;
}
.theme-clean_white .action-pill {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
}
.theme-clean_white .action-pill:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* ==========================================
   TEMA 4: Cyber Titanium Glass
   ========================================== */
.theme-cyber_titanium {
  background: radial-gradient(circle at 50% 0%, #1E1E2E 0%, #12121A 70%, #08080C 100%);
  color: #FFFFFF;
}
.theme-cyber_titanium .vcard-card {
  background: rgba(25, 25, 36, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.theme-cyber_titanium .btn-primary-action {
  background: linear-gradient(135deg, #06B6D4, #0891B2);
  color: #0F172A;
  font-weight: 800;
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.4);
}
.theme-cyber_titanium .accent-text {
  color: #22D3EE;
}
.theme-cyber_titanium .action-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: #E2E8F0;
}
.theme-cyber_titanium .action-pill:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: #06B6D4;
  color: #22D3EE;
}

/* ==============================================================================
   ESTRUCTURA DE APLICACIÓN DE NEGOCIOS: TABS, ACCORDIONS & BOTTOM APP BAR
   ============================================================================== */

/* Barra de Pestañas (Tabs) Segmentada en 4 Columnas */
.vcard-tabs-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  backdrop-filter: blur(12px);
}
.theme-clean_white .vcard-tabs-nav {
  background: #F1F5F9;
  border-color: #E2E8F0;
}
.vcard-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.55rem 0.2rem;
  border-radius: 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border: 1px solid transparent;
  color: #94A3B8;
  cursor: pointer;
  user-select: none;
  width: 100%;
}
.vcard-tab-btn:hover {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.06);
}
.theme-dark_gold .vcard-tab-btn.active {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #0F172A;
  border-color: #F59E0B;
  box-shadow: 0 4px 15px -3px rgba(245, 158, 11, 0.4);
}
.theme-modern_blue .vcard-tab-btn.active {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: #FFFFFF;
  border-color: #3B82F6;
  box-shadow: 0 4px 15px -3px rgba(59, 130, 246, 0.4);
}
.theme-clean_white .vcard-tab-btn.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.25);
}
.theme-cyber_titanium .vcard-tab-btn.active {
  background: linear-gradient(135deg, #06B6D4, #0891B2);
  color: #0F172A;
  border-color: #06B6D4;
  box-shadow: 0 4px 15px -3px rgba(6, 182, 212, 0.4);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.25);
}

/* Paneles de Contenido con Animación Fade In */
.tab-content {
  display: none;
  animation: tabFadeIn 0.3s ease-out;
}
.tab-content.active {
  display: block;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Botonera Rápida de Acciones (Quick Actions) */
.quick-action-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.5rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: #E2E8F0;
  cursor: pointer;
}
.quick-action-box:active {
  transform: scale(0.94);
}
.quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}
.quick-action-box:hover .quick-action-icon {
  transform: translateY(-2px);
}
.theme-dark_gold .quick-action-icon { color: #F59E0B; }
.theme-modern_blue .quick-action-icon { color: #60A5FA; }
.theme-clean_white .quick-action-icon { color: #2563EB; background: #F1F5F9; border-color: #E2E8F0; }
.theme-clean_white .quick-action-box { background: #FFFFFF; border-color: #E2E8F0; color: #1E293B; }
.theme-cyber_titanium .quick-action-icon { color: #22D3EE; }

/* Acordeón Interactivo de Servicios */
.service-accordion-item {
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all 0.25s ease;
}
.theme-clean_white .service-accordion-item {
  background: #FFFFFF;
  border-color: #E2E8F0;
}
.service-accordion-header {
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}
.service-accordion-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.3s ease;
  padding: 0 1.15rem;
}
.service-accordion-item.open .service-accordion-body {
  max-height: 400px;
  opacity: 1;
  padding-bottom: 1.15rem;
}
.service-accordion-arrow {
  transition: transform 0.3s ease;
}
.service-accordion-item.open .service-accordion-arrow {
  transform: rotate(180deg);
}

/* Barra de Navegación Inferior Fija (Sticky Bottom Bar) */
.vcard-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem max(0.6rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 40;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
}
.theme-clean_white .vcard-bottom-nav {
  background: rgba(255, 255, 255, 0.92);
  border-top-color: #E2E8F0;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.08);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
  flex: 1;
  max-width: 80px;
}
.bottom-nav-item:hover, .bottom-nav-item.active {
  color: #F8FAFC;
}
.theme-clean_white .bottom-nav-item { color: #64748B; }
.theme-clean_white .bottom-nav-item:hover, .theme-clean_white .bottom-nav-item.active { color: #0F172A; }
.bottom-nav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bottom-nav-save-btn {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #0F172A !important;
  border-radius: 9999px;
  padding: 0.4rem 0.85rem;
  box-shadow: 0 4px 15px -3px rgba(245, 158, 11, 0.4);
  transform: translateY(-4px);
}
.theme-modern_blue .bottom-nav-save-btn {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: #FFFFFF !important;
  box-shadow: 0 4px 15px -3px rgba(59, 130, 246, 0.4);
}
.theme-cyber_titanium .bottom-nav-save-btn {
  background: linear-gradient(135deg, #06B6D4, #0891B2);
  color: #0F172A !important;
  box-shadow: 0 4px 15px -3px rgba(6, 182, 212, 0.4);
}
.theme-clean_white .bottom-nav-save-btn {
  background: #0F172A;
  color: #FFFFFF !important;
}
