/* ============================================================
   Tarjeta — Diego Morales (Opción 3 · Editorial / Elegante)
   ============================================================ */

:root {
  --accent: #a07d57;
  --accent-2: #7f5e3c;
  --accent-soft: #efe7da;
  --bg: #ece6db;
  --surface: #f7f3ec;
  --ink: #2e2a24;
  --muted: #877f70;
  --line: #e4dccd;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(60, 48, 30, .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.6;
  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 con foto panorámica ---------- */
.cover { position: relative; height: 210px; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.35)); }

.hero { padding: 24px 26px 18px; text-align: center; }
.name {
  font-family: 'Dancing Script', cursive; font-size: 42px; font-weight: 700;
  line-height: 1; color: var(--ink);
}
.role {
  font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); margin-top: 8px;
}
.tagline {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 19px; font-style: italic;
  color: var(--muted); margin-top: 14px;
}

/* Acciones rápidas */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px 14px 18px; }
.quick a {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 10px 6px; text-decoration: none; color: var(--ink); font-size: 12px; font-weight: 500;
}
.quick .ico {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--accent);
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.quick a:hover .ico { background: var(--accent); color: #fff; transform: translateY(-2px); }
.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: 10px; 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-outline { background: transparent; color: var(--accent-2); border: 1.5px solid var(--accent); width: 100%; }
.btn-outline:hover { background: var(--accent-soft); }
.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 26px; border-top: 1px solid var(--line); }
.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 700;
  color: var(--ink); margin-bottom: 14px; letter-spacing: .01em;
}
.about p { color: #4a4338; font-size: 15px; }

/* Servicios en grid 2x2 */
.serv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.serv-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 14px; text-align: center;
}
.serv-card .ico { width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; }
.serv-card .ico svg { width: 19px; height: 19px; }
.serv-card h3 { font-size: 14px; font-weight: 700; }

/* Portafolio */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery .tile { aspect-ratio: 4/3; border-radius: 12px; object-fit: cover; width: 100%; display: block; }
.gallery .tile svg { width: 24px; height: 24px; }

/* Ubicación */
.map { display: block; border-radius: 14px; overflow: hidden; height: 150px; position: relative;
  background: repeating-linear-gradient(0deg,#e3dccd 0 22px,#ebe5d8 22px 23px), repeating-linear-gradient(90deg,#e3dccd 0 22px,#ebe5d8 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: 14px; 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 */
.foot { padding: 24px 26px 30px; text-align: center; border-top: 1px solid var(--line); }
.foot .btn-row { margin-bottom: 18px; }
.foot-name { font-family: 'Dancing Script', cursive; font-size: 26px; font-weight: 700; }
.foot small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }

/* QR + toast */
.qr-modal { position: fixed; inset: 0; background: rgba(46,42,36,.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: var(--surface); border-radius: 18px; padding: 26px; text-align: center; max-width: 280px; }
.qr-box h4 { font-family: 'Cormorant Garamond', serif; font-size: 22px; 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; 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); }
