/* ============================================================
   Tarjeta — Javier Hernández (Opción 1 · Claro / Índigo)
   Base del sistema de diseño. Las demás tarjetas reutilizan
   esta estructura cambiando las variables de :root.
   ============================================================ */

:root {
  --accent: #6c5ce7;
  --accent-2: #4834d4;
  --accent-soft: #efedfd;
  --bg: #f4f3f7;
  --surface: #ffffff;
  --ink: #1d2030;
  --muted: #6b7186;
  --line: #ececf2;
  --footer: #161827;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(28, 30, 60, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  padding: 24px 16px 48px;
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ---------- Header ---------- */
.hero { padding: 26px 24px 22px; }
.hero-top { display: flex; gap: 16px; align-items: center; }
.photo {
  width: 86px; height: 86px; border-radius: 18px; object-fit: cover; flex-shrink: 0;
  background: var(--accent-soft);
}
.hero-id { min-width: 0; }
.name { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.role {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-top: 3px;
}
.tagline { font-size: 14px; color: var(--muted); margin-top: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; border-radius: 12px; padding: 12px 16px; text-decoration: none;
  transition: transform .12s ease, opacity .12s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: #fff; width: 100%; margin-top: 18px; }
.btn-primary:hover { background: var(--accent-2); }
.btn-row { display: flex; gap: 10px; margin-top: 18px; }
.btn-row .btn { flex: 1; }
.btn-ghost { background: var(--accent-soft); color: var(--accent); }

/* ---------- Acciones rápidas ---------- */
.quick {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.quick a {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 16px 6px; text-decoration: none; color: var(--ink);
  font-size: 12px; font-weight: 500; transition: background .15s ease;
}
.quick a:hover { background: var(--accent-soft); }
.quick .ico {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.quick .ico svg { width: 19px; height: 19px; }

/* ---------- Secciones ---------- */
.section { padding: 22px 24px; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: none; }
.section-title {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}

/* Contacto */
.contact { padding: 20px 24px; }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 9px 0; text-decoration: none; color: var(--ink); }
.contact-row + .contact-row { border-top: 1px solid var(--line); }
.contact-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.contact-ico svg { width: 18px; height: 18px; }
.contact-row span { font-size: 14.5px; }
.contact-row small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* Sobre mí */
.about p { color: #41465c; font-size: 14.5px; }

/* Servicios */
.service { display: flex; gap: 14px; padding: 13px 0; }
.service + .service { border-top: 1px solid var(--line); }
.service-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.service-ico svg { width: 19px; height: 19px; }
.service h3 { font-size: 15px; font-weight: 700; }
.service p { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Galería / portafolio */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery .tile {
  aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center;
  color: rgba(255,255,255,.85); position: relative; overflow: hidden;
}
.gallery .tile svg { width: 26px; height: 26px; opacity: .9; }

/* Clientes / logos */
.clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: center; }
.client-logo {
  height: 46px; border-radius: 12px; background: var(--bg);
  display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--muted);
  letter-spacing: .02em;
}

/* Ubicación */
.map {
  border-radius: 14px; overflow: hidden; height: 150px; position: relative;
  background:
    linear-gradient(0deg, rgba(0,0,0,.05), rgba(0,0,0,.05)),
    repeating-linear-gradient(0deg, #e9ebf2 0 22px, #eef0f6 22px 23px),
    repeating-linear-gradient(90deg, #e9ebf2 0 22px, #eef0f6 22px 23px);
}
.map .pin {
  position: absolute; top: 46%; left: 50%; transform: translate(-50%, -100%);
  color: var(--accent);
}
.map .pin svg { width: 34px; height: 34px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-addr { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* Horarios */
.hours-row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; }
.hours-row + .hours-row { border-top: 1px solid var(--line); }
.hours-row span:last-child { color: var(--muted); font-weight: 600; }

/* Footer / redes */
.foot { background: var(--footer); color: #cfd2e3; padding: 26px 24px 30px; text-align: center; }
.social { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; transition: background .15s ease, transform .12s ease;
}
.social a:hover { background: var(--accent); transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; }
.foot-name { font-weight: 700; color: #fff; font-size: 15px; }
.foot small { display: block; color: #8b90a8; font-size: 12px; margin-top: 4px; }

/* ---------- QR modal + toast ---------- */
.qr-modal {
  position: fixed; inset: 0; background: rgba(15,17,23,.6); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 24px; z-index: 50;
}
.qr-modal.open { display: flex; }
.qr-box { background: #fff; border-radius: 20px; padding: 26px; text-align: center; max-width: 280px; }
.qr-box h4 { font-size: 16px; margin-bottom: 4px; color: var(--ink); }
.qr-box p { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.qr-box #qr { display: grid; place-items: center; min-height: 180px; }
.qr-box #qr img, .qr-box #qr canvas { border-radius: 10px; }
.qr-close { margin-top: 18px; background: var(--accent-soft); color: var(--accent); }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 60;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 380px) {
  .quick a { font-size: 11px; }
  .name { font-size: 20px; }
}
/* ---------- Powered by Boren Studio ---------- */
.powered-by {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, .08);
  font-size: 11.5px; font-weight: 500; letter-spacing: .05em; text-decoration: none;
  color: #8b90a8; transition: transform .15s ease, opacity .15s ease;
}
.powered-by:hover { transform: translateY(-1px); opacity: .85; }
.powered-by .pb-ig {
  display: grid; place-items: center; width: 20px; height: 20px;
  border-radius: 6px; flex-shrink: 0;
  background: linear-gradient(135deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}
.powered-by .pb-ig svg { width: 12px; height: 12px; }
.powered-by b {
  font-weight: 700;
  background: linear-gradient(90deg, #a855f7, #ec4899, #f59e0b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.powered-by.on-dark { color: rgba(255, 255, 255, .5); border-top-color: rgba(255, 255, 255, .14); }
