/* ============================================================
   Tarjeta — Mario Alvarez (Opción 2 · Header oscuro / Teal)
   ============================================================ */

:root {
  --accent: #14b8a6;
  --accent-2: #0f766e;
  --accent-soft: #e2f5f2;
  --bg: #eceff0;
  --surface: #ffffff;
  --ink: #182b2a;
  --muted: #6a7877;
  --line: #e9edec;
  --hero: linear-gradient(160deg, #115e59 0%, #0b3d3a 100%);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(16, 40, 38, .14);
}

* { 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 oscuro ---------- */
.hero { background: var(--hero); color: #fff; padding: 30px 24px 24px; }
.hero-top { display: flex; gap: 16px; align-items: center; }
.photo {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.18);
}
.name { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.role {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #5eead4; margin-top: 4px;
}
.tagline { font-size: 13.5px; color: rgba(255,255,255,.78); margin-top: 16px; font-style: italic; }

.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, background .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; }
.btn-row { display: flex; gap: 10px; margin-top: 20px; }
.btn-row .btn { flex: 1; }
.btn-primary { background: var(--accent); color: #04312d; }
.btn-primary:hover { background: #2dd4bf; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-ghost { background: var(--accent-soft); color: var(--accent-2); }

/* Contacto dentro del header */
.contact-dark { margin-top: 22px; }
.contact-dark a, .contact-dark div.row {
  display: flex; align-items: center; gap: 14px; padding: 9px 0; text-decoration: none; color: #fff;
}
.contact-dark a + a, .contact-dark a + .row, .contact-dark .row + a { border-top: 1px solid rgba(255,255,255,.1); }
.contact-dark .ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(94,234,212,.16); color: #5eead4; display: grid; place-items: center; flex-shrink: 0; }
.contact-dark .ico svg { width: 17px; height: 17px; }
.contact-dark span { font-size: 14px; }
.contact-dark small { display: block; color: rgba(255,255,255,.55); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.social-dark { display: flex; gap: 12px; margin-top: 22px; }
.social-dark a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff; transition: background .15s ease, transform .12s ease;
}
.social-dark a:hover { background: var(--accent); color: #04312d; transform: translateY(-2px); }
.social-dark svg { width: 18px; height: 18px; }

/* ---------- Secciones (blancas) ---------- */
.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;
}
.about p { color: #3a4948; 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; }

/* Galería de proyectos */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery .tile { aspect-ratio: 1; border-radius: 12px; object-fit: cover; width: 100%; display: block; }
.gallery .tile svg { width: 24px; height: 24px; }
.dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); display: block; }
.dots i.on { background: var(--accent); width: 18px; border-radius: 99px; }

.map { border-radius: 14px; overflow: hidden; height: 150px; position: relative; display: block;
  background: repeating-linear-gradient(0deg,#e6ebeb 0 22px,#eef2f1 22px 23px), repeating-linear-gradient(90deg,#e6ebeb 0 22px,#eef2f1 22px 23px); }
.map .pin { position: absolute; top: 46%; left: 50%; transform: translate(-50%,-100%); color: var(--accent-2); }
.map .pin svg { width: 34px; height: 34px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); }
.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; }

.foot { padding: 24px; text-align: center; }
.foot .btn-row { max-width: 300px; margin: 0 auto; }
.foot-name { font-weight: 700; font-size: 15px; margin-top: 18px; }
.foot small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }

/* QR modal + toast */
.qr-modal { position: fixed; inset: 0; background: rgba(11,40,38,.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: 20px; padding: 26px; text-align: center; max-width: 280px; }
.qr-box h4 { font-size: 16px; margin-bottom: 4px; }
.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-2); width: 100%; }
.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); }
