/* =====================================================================
   DIGITAL BUSINESS CARD — Father and Son Moving Service
   Helmut AI IT Consulting · Componente #36
   Desplegado desde: 04_INFRASTRUCTURE/helmutdock/ (Astillero)
   ===================================================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --fns-orange: #fc7610;
  --fns-orange-hover: #e56a0a;
  --fns-bg-deep: #06181B;
  --fns-bg-card: #123940;
  --fns-bg-main: #0A2429;
  --fns-glass-bg: rgba(255, 255, 255, 0.06);
  --fns-glass-border: rgba(255, 255, 255, 0.10);
  --fns-text-primary: #ffffff;
  --fns-text-secondary: #94a3b8;
  --fns-radius: 16px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--fns-bg-deep);
  color: var(--fns-text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* ===== CARD CONTAINER ===== */
.fns-card-page { width: 100%; }
.fns-card-section { width: 100%; display: flex; justify-content: center; }
.fns-card-container {
  max-width: 400px;
  width: 100%;
  background: var(--fns-bg-main);
  border-radius: var(--fns-radius);
  padding: 28px 20px 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* ===== ID BLOCK (Company Name) ===== */
.fns-card-id-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.fns-card-logo-id {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.fns-card-text-id {
  display: flex;
  flex-direction: column;
}

.fns-main-company {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.fns-sub-company {
  font-size: 0.7rem;
  color: var(--fns-text-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ===== PROFILE (Avatar + Name/Role) ===== */
.fns-card-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.fns-card-avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--fns-orange);
  margin-bottom: 14px;
}

.fns-card-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fallback inline SVG avatar (generado por script.js) */
.fns-card-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fns-bg-card);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--fns-orange);
}

.fns-card-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.fns-card-role {
  font-size: 0.8rem;
  color: var(--fns-orange);
  font-weight: 500;
  text-align: center;
}

/* ===== CONTACT BUTTONS ===== */
.fns-card-contact-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.fns-glass-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--fns-glass-bg);
  border: 1px solid var(--fns-glass-border);
  border-radius: 12px;
  padding: 12px 4px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.fns-glass-item:hover,
.fns-glass-item:active {
  background: rgba(252, 118, 16, 0.12);
  border-color: var(--fns-orange);
}

.fns-glass-icon {
  width: 22px;
  height: 22px;
  color: var(--fns-orange);
}

.fns-glass-text {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--fns-text-secondary);
  text-align: center;
}

/* ===== SMS BUTTON ===== */
.fns-btn-sms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--fns-glass-bg);
  border: 1px solid var(--fns-glass-border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  margin-bottom: 18px;
  font-family: inherit;
}

.fns-btn-sms:hover {
  background: rgba(252, 118, 16, 0.10);
  border-color: var(--fns-orange);
}

/* ===== QR ZONE ===== */
.fns-card-qr-zone {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.fns-card-qr-box {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fns-card-qr-box img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

/* ===== FOOTER / SAVE CONTACT ===== */
.fns-card-footer {
  text-align: center;
}

.fns-btn-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--fns-orange);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}

.fns-btn-save:hover {
  background: var(--fns-orange-hover);
  transform: translateY(-1px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fns-card-container > * {
  animation: fadeInUp 0.4s ease both;
}
.fns-card-id-block   { animation-delay: 0.05s; }
.fns-card-profile    { animation-delay: 0.10s; }
.fns-card-contact-info { animation-delay: 0.15s; }
.fns-btn-sms         { animation-delay: 0.20s; }
.fns-card-qr-zone    { animation-delay: 0.25s; }
.fns-card-footer     { animation-delay: 0.30s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .fns-card-container { padding: 20px 14px 18px; }
  .fns-card-contact-info { gap: 6px; }
  .fns-glass-item { padding: 10px 2px; }
  .fns-glass-icon { width: 20px; height: 20px; }
  .fns-card-qr-box { width: 110px; height: 110px; }
}
