/* ==========================================================================
   MiContactoQR — estilos compartidos (tarjeta digital + landing informativa)
   Marca: Blanco #FFFFFF · Azul #117ADA · Verde oscuro #21353B
   Tipografía: Montserrat
   ========================================================================== */

:root {
  --color-white: #FFFFFF;
  --color-blue: #117ADA;
  --color-blue-dark: #0d5fac;
  --color-dark: #21353B;
  --color-bg: #F2F6FA;
  --color-border: #E3EAF0;
  --color-text: #21353B;
  --color-text-muted: #5B6B70;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 10px 30px rgba(17, 53, 74, 0.10);
  --shadow-btn: 0 2px 6px rgba(17, 53, 74, 0.08);
  --max-width: 460px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Fondo decorativo ---------- */
.page-bg {
  min-height: 100vh;
  width: 100%;
  background:
    radial-gradient(circle at 15% -10%, rgba(17,122,218,0.16), transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(33,53,59,0.10), transparent 40%),
    var(--color-bg);
  padding: 32px 16px 48px;
}

/* ============================== TARJETA ================================ */

.card {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.card__cover {
  height: 84px;
  background: linear-gradient(135deg, var(--color-dark) 0%, #16262b 100%);
  position: relative;
}

.card__photo-wrap {
  display: flex;
  justify-content: center;
  margin-top: -52px;
}

.card__photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-card);
  background: var(--color-white);
}

.card__identity {
  text-align: center;
  padding: 12px 24px 4px;
}

.card__name {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-dark);
}

.card__role {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-blue);
}

.card__company {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* ---- Acciones primarias (Guardar / Compartir) ---- */
.card__actions {
  display: flex;
  gap: 10px;
  padding: 18px 20px 4px;
}

.pill-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 999px;
  border: none;
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s ease, background 0.15s ease;
}

.pill-btn:hover { transform: translateY(-1px); background: #16262b; }

.pill-btn--outline {
  background: var(--color-white);
  color: var(--color-dark);
  border: 1.5px solid var(--color-dark);
}

.pill-btn--outline:hover { background: var(--color-dark); color: var(--color-white); }

.pill-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---- Lista de contacto ---- */
.card__contacts {
  padding: 18px 20px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.contact-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
  border-color: transparent;
}

.contact-row__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.contact-row__icon svg { width: 20px; height: 20px; }

.contact-row__text h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-dark);
}

.contact-row__text p {
  margin: 2px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}

@media (max-width: 380px) {
  .contact-row__text p { font-size: 11.5px; }
}

.icon-bg--call     { background: #2CA85B; }
.icon-bg--whatsapp { background: #25D366; }
.icon-bg--mail     { background: #117ADA; }
.icon-bg--web      { background: #4A8FE0; }
.icon-bg--linkedin { background: #0A66C2; }
.icon-bg--file     { background: #21353B; }

/* ---- QR ---- */
.card__qr {
  padding: 22px 20px 8px;
  text-align: center;
}

.card__qr-box {
  display: inline-flex;
  padding: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-btn);
}

.card__qr-box img, .card__qr-box canvas { border-radius: 4px; }

.card__qr-caption {
  margin: 10px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-dark);
}

/* ---- Footer de la tarjeta ---- */
.card__footer {
  padding: 18px 20px 24px;
  text-align: center;
}

.card__footer-label {
  display: block;
  font-size: 11.5px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.card__footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.card__footer-link img { height: 26px; }

/* toast de confirmación al copiar / guardar */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  background: var(--color-dark);
  color: var(--color-white);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================ LANDING INFO ============================== */

.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  color: var(--color-dark);
}

.brand img { height: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: 0 6px 16px rgba(17,122,218,0.30);
}

.btn--primary:hover { background: var(--color-blue-dark); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--color-dark);
  border: 1.5px solid var(--color-border);
}

.btn--ghost:hover { border-color: var(--color-dark); }

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 20px;
}

.section--tight { padding: 48px 20px; }

.section--dark {
  background: var(--color-dark);
  color: var(--color-white);
  max-width: none;
}

.section--alt {
  background: var(--color-white);
  max-width: none;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-blue);
  background: rgba(17,122,218,0.10);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--color-dark);
}

.hero p.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 28px;
  max-width: 46ch;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

h2.h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-intro {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-intro p {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin-top: 10px;
}

.section--dark .section-intro p { color: rgba(255,255,255,0.75); }

/* pasos */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  position: relative;
}

.step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--color-dark);
}

.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* grid de beneficios / usos */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
}

.feature-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(17,122,218,0.10);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-card__icon svg { width: 24px; height: 24px; }

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* casos de uso (chips) */
.use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.use-case-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

/* comparación tarjeta física vs digital */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compare-card {
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  border: 1px solid var(--color-border);
}

.compare-card--old { background: var(--color-white); opacity: 0.85; }
.compare-card--new { background: var(--color-white); border: 2px solid var(--color-blue); box-shadow: 0 10px 30px rgba(17,122,218,0.14); }

.compare-card h3 { margin: 0 0 14px; font-size: 17px; font-weight: 800; color: var(--color-dark); }

.compare-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }

.compare-card li { display: flex; gap: 10px; font-size: 14px; color: var(--color-text-muted); line-height: 1.5; }

.compare-card li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.compare-card--old li svg { color: #C0392B; }
.compare-card--new li svg { color: #2CA85B; }

/* CTA final */
.cta-box {
  background: linear-gradient(135deg, var(--color-blue) 0%, #0d5fac 100%);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  color: var(--color-white);
}

.cta-box h2 { color: var(--color-white); }

.cta-box p { color: rgba(255,255,255,0.85); max-width: 50ch; margin: 0 auto 24px; font-size: 16px; }

.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
}

.site-footer a { color: var(--color-white); text-decoration: none; font-weight: 600; }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 320px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .site-header__inner .btn span { display: none; }
  .card__actions { flex-direction: row; }
}
