/* TuHeyMundo · diseños de tarjeta (usados en la página pública y en la vista previa) */
.thm-card {
  --c-fondo: #0E7C7B; --c-acento: #FF6B3D; --c-texto: #12312B;
  position: relative; width: 100%; max-width: 420px; margin: 0 auto; overflow: hidden;
  background: #fff; color: var(--c-texto); border-radius: 24px;
  box-shadow: 0 2px 4px rgba(18,49,43,.06), 0 18px 40px rgba(18,49,43,.14);
  font-family: var(--fuente, Inter, system-ui, sans-serif); text-align: left;
}
.thm-cabecera { position: relative; height: 128px; background: var(--c-fondo); }
.thm-logo { position: absolute; top: 16px; right: 16px; max-width: 96px; max-height: 44px; object-fit: contain; background: rgba(255,255,255,.92); padding: 6px 8px; border-radius: 10px; }
.thm-onda { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 40px; fill: #fff; }
.thm-cuerpo { padding: 0 22px 24px; }
.thm-foto { display: block; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin-top: -64px; border: 5px solid #fff; background: var(--c-acento); position: relative; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.thm-foto-vacia { display: grid; place-items: center; color: #fff; font: 800 2.2rem var(--fuente-titulo, system-ui); }
.thm-nombre { font: 800 1.65rem/1.15 var(--fuente-titulo, system-ui); margin: 14px 0 4px; color: var(--c-texto); letter-spacing: -.01em; }
.thm-cargo { font-weight: 600; margin: 0; color: var(--c-fondo); }
.thm-empresa { margin: 2px 0 0; opacity: .75; font-weight: 500; }
.thm-mensaje { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--c-acento) 12%, #fff); font-weight: 600; font-size: .95rem; }
.thm-bio { margin: 14px 0 0; font-size: .95rem; line-height: 1.55; opacity: .9; white-space: pre-line; }
.thm-filas { display: grid; gap: 2px; margin-top: 18px; }
.thm-fila { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 12px; color: inherit; text-decoration: none; }
a.thm-fila:hover { background: color-mix(in srgb, var(--c-fondo) 8%, #fff); }
.thm-fila .thm-ico { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--c-fondo); stroke: #fff; }
.thm-fila-txt { display: grid; min-width: 0; }
.thm-fila-txt small { font-size: .74rem; opacity: .65; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.thm-fila-txt span { overflow-wrap: anywhere; }
.thm-enlaces { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.thm-boton-enlace { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--c-fondo) 9%, #fff); color: var(--c-texto); text-decoration: none; font-weight: 600; font-size: .9rem; min-width: 0; }
.thm-boton-enlace span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thm-boton-enlace:hover { background: color-mix(in srgb, var(--c-fondo) 16%, #fff); }
.thm-boton-enlace .thm-ico { flex: none; width: 20px; height: 20px; stroke: var(--c-fondo); }
.thm-ico { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Clásico: foto grande arriba con franja de color */
.thm-clasico .thm-cabecera { height: auto; min-height: 10px; background: none; }
.thm-clasico .thm-cuerpo { padding-top: 0; }
.thm-clasico .thm-foto { width: calc(100% + 44px); height: 280px; margin: 0 -22px; border-radius: 0; border: 0; border-bottom: 8px solid var(--c-fondo); box-shadow: none; }
.thm-clasico .thm-foto-vacia { font-size: 4rem; background: var(--c-fondo); }
.thm-clasico .thm-logo { z-index: 2; }

/* Mínimo: blanco con línea de acento */
.thm-minimal { border-top: 8px solid var(--c-acento); }
.thm-minimal .thm-cabecera { height: 24px; background: none; }
.thm-minimal .thm-foto { margin-top: 0; width: 92px; height: 92px; border-radius: 22px; border: 0; }
.thm-minimal .thm-logo { top: 12px; background: none; padding: 0; }
.thm-minimal .thm-fila .thm-ico { background: none; stroke: var(--c-fondo); padding: 7px; border: 1.5px solid color-mix(in srgb, var(--c-fondo) 30%, #fff); }

/* Bloque: todo en color */
.thm-bloque { background: var(--c-fondo); color: #fff; }
.thm-bloque .thm-cabecera { height: 40px; background: none; }
.thm-bloque .thm-foto { margin-top: 0; border-color: rgba(255,255,255,.25); }
.thm-bloque .thm-nombre { color: #fff; }
.thm-bloque .thm-cargo { color: var(--c-acento); filter: brightness(1.25); }
.thm-bloque .thm-mensaje { background: rgba(255,255,255,.14); }
.thm-bloque a.thm-fila:hover { background: rgba(255,255,255,.1); }
.thm-bloque .thm-fila .thm-ico { background: rgba(255,255,255,.16); }
.thm-bloque .thm-boton-enlace { background: rgba(255,255,255,.14); color: #fff; }
.thm-bloque .thm-boton-enlace .thm-ico { stroke: #fff; }

/* Página pública */
.pagina-tarjeta { min-height: 100vh; background: radial-gradient(1200px 500px at 50% -10%, color-mix(in srgb, var(--principal) 18%, transparent), transparent), var(--fondo); }
.tp-envoltorio { max-width: 460px; margin: 0 auto; padding: 24px 16px 40px; }
.tp-acciones { display: grid; gap: 10px; margin-top: 18px; }
.tp-fila { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-fila > .btn { flex: 1 1 0; min-width: 0; padding-left: .6em; padding-right: .6em; }
.btn-wallet { background: #111; color: #fff; font-size: .85rem; }
.tp-pie { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 24px; font-size: .85rem; }
.tp-pie a { color: var(--texto-suave); text-decoration: none; }
.tp-tema { border: 0; background: var(--superficie-2); color: var(--texto); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.dialogo img { display: block; margin: 0 auto 8px; background: #fff; border-radius: 12px; padding: 8px; }
.dialogo form > .tp-fila { margin-top: 8px; }
details summary { cursor: pointer; color: var(--principal); font-weight: 600; margin-bottom: .8em; }
.actualizada { animation: brillo .9s ease-out; }
@keyframes brillo { from { box-shadow: 0 0 0 6px var(--sol); } }
@media (max-width: 380px) { .thm-enlaces { grid-template-columns: 1fr; } }
