/* ==========================================================================
   Tarjeta digital (/tarjeta/) — enlace tipo "link in bio" para compartir.
   Usa los tokens de assets/css/styles.css (turquesa, rosa, noche).
   ========================================================================== */
.card-page {
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(60rem 30rem at 50% -10%, rgba(14, 111, 143, .55), transparent 70%),
    radial-gradient(30rem 20rem at 110% 30%, rgba(242, 154, 198, .18), transparent 70%),
    var(--night);
  background-attachment: fixed;
  padding: 0 16px env(safe-area-inset-bottom);
}

.vcard { width: 100%; max-width: 480px; margin: 0 auto; padding: 16px 0 28px; }
.vcard__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.vcard__lang { display: inline-flex; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; overflow: hidden; }
.vcard__lang button { border: 0; background: transparent; color: rgba(255,255,255,.7); font-size: .78rem; font-weight: 700; padding: 6px 12px; letter-spacing: .06em; }
.vcard__lang button[aria-pressed="true"] { background: var(--white); color: var(--night); }
.vcard__share {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--white);
}
.vcard__share:hover, .vcard__lang:hover { border-color: var(--pink); }

/* Encabezado */
.vcard__hero { text-align: center; padding: 6px 0 20px; }
.vcard__photo {
  width: 132px; height: 132px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--night); box-shadow: 0 0 0 3px var(--pink), 0 14px 40px rgba(0,0,0,.45);
}
.vcard__hero h1 { font-size: 1.9rem; font-weight: 800; margin: 0 0 4px; color: var(--white); }
.vcard__hero h1 span { color: var(--pink); }
.vcard__role { margin: 0 0 14px; color: rgba(255,255,255,.78); font-size: 1rem; }
.vcard__tags { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.vcard__tags li {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); font-size: .8rem; font-weight: 500;
}
.vcard__tags .icon { width: 1em; height: 1em; color: var(--pink); }

/* Botón principal: agendar */
.vcard__cta {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin-bottom: 12px;
  border-radius: 14px; background: var(--pink); color: var(--night); text-decoration: none;
  box-shadow: 0 10px 30px rgba(242, 154, 198, .28);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.vcard__cta:hover { background: var(--pink-600); transform: translateY(-2px); }
.vcard__cta > .icon { width: 28px; height: 28px; }
.vcard__cta strong { display: block; font-size: 1.1rem; font-weight: 800; }
.vcard__cta small { display: block; font-size: .85rem; opacity: .8; }

/* Botones de enlace */
.vcard__links { display: grid; gap: 10px; }
.vlink {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px;
  background: var(--white); color: var(--ink); text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.vlink:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.vlink__icon {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px;
  background: var(--teal-50); color: var(--teal);
}
.vlink__icon .icon { width: 22px; height: 22px; }
.vlink__icon--wa { background: #e5f7ec; color: #1f9d55; }
.vlink__txt { flex: 1; min-width: 0; }
.vlink__txt strong { display: block; font-size: 1rem; font-weight: 700; line-height: 1.25; }
.vlink__txt small { display: block; color: var(--gray-500); font-size: .82rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.vlink__go { width: 18px; height: 18px; color: var(--gray-300); }
.vlink--soft { background: rgba(255,255,255,.07); color: var(--white); border: 1px solid rgba(255,255,255,.1); }
.vlink--soft .vlink__icon { background: rgba(14, 111, 143, .35); color: var(--white); }
.vlink--soft .vlink__txt small { color: rgba(255,255,255,.6); }
.vlink--soft .vlink__go { color: rgba(255,255,255,.4); }
.vlink--soft:hover { border-color: var(--pink); }

.vcard__label {
  margin: 26px 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.55); text-align: center;
}

.vcard__social { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.vcard__social a {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.08); color: var(--white); transition: background .2s var(--ease), color .2s var(--ease);
}
.vcard__social a:hover { background: var(--pink); color: var(--night); }
.vcard__social .icon { width: 22px; height: 22px; }

/* Agenda (se abre debajo de la tarjeta, más ancha para el calendario) */
.vcard-agenda { max-width: 1040px; margin: 0 auto 24px; }
.vcard-agenda__inner { background: var(--white); color: var(--ink); border-radius: 16px; padding: 20px 16px; scroll-margin-top: 12px; }
.vcard-agenda__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.vcard-agenda__head h2 { margin: 0; font-size: 1.35rem; color: var(--night); }
.vcard-agenda__close { border: 0; background: var(--gray-50); width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; line-height: 1; color: var(--gray-500); }
.vcard-agenda .lead { color: var(--gray-500); margin: 6px 0 16px; font-size: .95rem; }

.vcard__foot { max-width: 480px; margin: 0 auto; padding: 8px 0 28px; text-align: center; font-size: .78rem; color: rgba(255,255,255,.5); }
.vcard__foot p { margin: 0 0 4px; }
.vcard__foot a { color: rgba(255,255,255,.75); }

.vcard__toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 8px; background: var(--white); color: var(--night); font-size: .9rem; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

@media (min-width: 640px) {
  .vcard { padding-top: 28px; }
  .vcard-agenda__inner { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .vcard__cta, .vlink { transition: none; }
}
