/* ============================================================
   Tarjeta — Alejandro López (Opción 4 · Corporativo Navy/Naranja)
   ============================================================ */

:root {
  --accent: #f97316;
  --accent-2: #c2410c;
  --accent-soft: #fdecdf;
  --bg: #eef1f5;
  --surface: #ffffff;
  --ink: #14233b;
  --muted: #677288;
  --line: #e7ebf1;
  --navy: linear-gradient(155deg, #16335f 0%, #0d1f3c 100%);
  --footer: #0d1f3c;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(13, 31, 60, .16);
}

* { 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: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ---------- Header navy ---------- */
.hero { background: var(--navy); color: #fff; padding: 22px 24px 26px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -40px; right: -40px; width: 150px; height: 150px; background: var(--accent); opacity: .9; transform: rotate(45deg); border-radius: 26px; }
.hero::after { content: ""; position: absolute; top: 60px; right: -70px; width: 120px; height: 120px; background: #14b8a6; opacity: .35; transform: rotate(45deg); border-radius: 22px; }
.hero > * { position: relative; z-index: 1; }

.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: #fff; }
.brand .mark svg { width: 17px; height: 17px; }
.brand b { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.hero-top { display: flex; gap: 16px; align-items: center; }
.photo { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid rgba(255,255,255,.2); }
.name { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.role { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fb923c; margin-top: 4px; }

/* Acciones rápidas */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); 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: 12px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; }
.quick .ico svg { width: 19px; height: 19px; }

/* Botón */
.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: 11px; padding: 12px 16px; text-decoration: none; transition: transform .12s ease, background .15s ease; }
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: var(--accent-soft); color: var(--accent-2); }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

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

.contact { padding: 18px 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-2); display: grid; place-items: center; flex-shrink: 0; }
.contact-ico svg { width: 18px; height: 18px; }
.contact-row span { font-size: 14px; }
.contact-row small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.about p { color: #3a4861; font-size: 14.5px; }

.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-2); 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; }

/* Clientes / logos */
.clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.client-logo { height: 50px; border-radius: 11px; background: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #51607a; letter-spacing: .01em; text-align: center; padding: 0 6px; }

/* Ubicación */
.map { display: block; border-radius: 14px; overflow: hidden; height: 150px; position: relative;
  background: repeating-linear-gradient(0deg,#e3e8ef 0 22px,#eef1f6 22px 23px), repeating-linear-gradient(90deg,#e3e8ef 0 22px,#eef1f6 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); }

.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 */
.foot { background: var(--footer); color: #c3cde0; 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: 12px; 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 .btn-row { max-width: 300px; margin: 0 auto 0; }
.foot-name { font-weight: 700; color: #fff; font-size: 15px; margin-top: 18px; }
.foot small { display: block; color: #8493ad; font-size: 12px; margin-top: 4px; }

/* QR + toast */
.qr-modal { position: fixed; inset: 0; background: rgba(13,31,60,.65); 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: 18px; 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; width: 100%; background: var(--accent-soft); color: var(--accent-2); }
.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); }
/* ---------- 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); }
