/* 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: 28px;
  box-shadow: 0 2px 4px rgba(18,49,43,.06), 0 24px 60px rgba(18,49,43,.16);
  font-family: var(--fuente, Inter, system-ui, sans-serif); text-align: left;
}
.thm-cabecera { position: relative; height: 140px;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c-acento) 70%, transparent) 0%, transparent 55%),
    radial-gradient(70% 80% at 0% 100%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, var(--c-fondo), color-mix(in srgb, var(--c-fondo) 70%, #000));
}
.thm-cabecera::after { content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.4px); background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(120deg, transparent 35%, #000); mask-image: linear-gradient(120deg, transparent 35%, #000); }
.thm-logo { position: absolute; z-index: 2; top: 16px; right: 16px; max-width: 96px; max-height: 44px; object-fit: contain; background: rgba(255,255,255,.94); padding: 6px 8px; border-radius: 12px; }
.thm-onda { position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; width: 100%; height: 40px; fill: #fff; }
.thm-cuerpo { padding: 0 22px 24px; }
.thm-foto { display: block; width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin-top: -66px; border: 5px solid #fff; background: var(--c-acento); position: relative; z-index: 2; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.thm-foto-vacia { display: grid; place-items: center; color: #fff; font: 800 2.2rem var(--fuente-titulo, system-ui);
  background: linear-gradient(135deg, var(--c-acento), color-mix(in srgb, var(--c-acento) 55%, var(--c-fondo))); }
.thm-nombre { font: 800 1.7rem/1.12 var(--fuente-titulo, system-ui); margin: 14px 0 4px; color: var(--c-texto); letter-spacing: -.02em; }
.thm-cargo { font-weight: 600; margin: 0; color: var(--c-fondo); }
.thm-empresa { margin: 2px 0 0; opacity: .72; font-weight: 500; }

.thm-rapidos { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.thm-rapido { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: inherit; font-size: .74rem; font-weight: 600; opacity: .92; }
.thm-rapido-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 18px; background: var(--c-fondo); color: #fff;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--c-fondo) 35%, transparent); transition: transform .15s; }
.thm-rapido:hover .thm-rapido-ico { transform: translateY(-2px); }
.thm-rapido .thm-ico { width: 22px; height: 22px; stroke: #fff; }
.thm-rapido .thm-glifo { fill: #fff; stroke: none; }
.thm-r-whatsapp .thm-rapido-ico { background: #25D366; box-shadow: 0 6px 14px rgba(37,211,102,.35); }

.thm-mensaje { margin: 16px 0 0; padding: 11px 14px; border-radius: 14px; background: color-mix(in srgb, var(--c-acento) 12%, #fff); font-weight: 600; font-size: .95rem; border-left: 4px solid var(--c-acento); }
.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: 16px; }
.thm-fila { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-radius: 14px; color: inherit; text-decoration: none; }
a.thm-fila:hover { background: color-mix(in srgb, var(--c-fondo) 8%, #fff); }
.thm-fila-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: color-mix(in srgb, var(--c-fondo) 12%, #fff); }
.thm-fila .thm-ico { width: 20px; height: 20px; stroke: var(--c-fondo); }
.thm-fila .thm-glifo { fill: var(--c-fondo); stroke: none; }
.thm-f-whatsapp { background: color-mix(in srgb, #25D366 16%, #fff); }
.thm-f-whatsapp .thm-glifo { fill: #1DA851; }
.thm-fila-txt { display: grid; min-width: 0; }
.thm-fila-txt small { font-size: .72rem; opacity: .6; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.thm-fila-txt span { overflow-wrap: anywhere; font-weight: 500; }
.thm-enlaces { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.thm-boton-enlace { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 14px; background: color-mix(in srgb, var(--c-fondo) 8%, #fff); color: var(--c-texto); text-decoration: none; font-weight: 600; font-size: .88rem; min-width: 0; transition: transform .15s, background .15s; }
.thm-boton-enlace:hover { background: color-mix(in srgb, var(--c-fondo) 15%, #fff); transform: translateY(-1px); }
.thm-enlace-ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--c-fondo); }
.thm-red .thm-enlace-ico { background: var(--c-red); }
.thm-boton-enlace .thm-ico { width: 17px; height: 17px; stroke: #fff; }
.thm-boton-enlace .thm-glifo { fill: #fff; stroke: none; }
.thm-enlace-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thm-ico { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.thm-glifo { fill: currentColor; stroke: none; }

/* 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); max-width: none; 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-ico { background: none; border: 1.5px solid color-mix(in srgb, var(--c-fondo) 30%, #fff); }
.thm-minimal .thm-rapido-ico { border-radius: 50%; }

/* Bloque: todo en color */
.thm-bloque { background: var(--c-fondo); color: #fff; }
.thm-bloque .thm-cabecera { height: 40px; background: none; }
.thm-bloque .thm-cabecera::after, .thm-minimal .thm-cabecera::after, .thm-clasico .thm-cabecera::after { display: 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-ico { background: rgba(255,255,255,.16); }
.thm-bloque .thm-fila .thm-ico { stroke: #fff; }
.thm-bloque .thm-fila .thm-glifo { fill: #fff; }
.thm-bloque .thm-rapido-ico { background: rgba(255,255,255,.18); box-shadow: none; }
.thm-bloque .thm-r-whatsapp .thm-rapido-ico { background: #25D366; }
.thm-bloque .thm-enlace-ico { background: rgba(255,255,255,.2); }
.thm-bloque .thm-red .thm-enlace-ico { background: var(--c-red); }
.thm-bloque .thm-mensaje { border-left-color: var(--c-acento); }
.thm-bloque .thm-boton-enlace { background: rgba(255,255,255,.14); color: #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; gap: .55em; }
.btn-wallet:hover { background: #000; }
.btn-wallet svg { width: 1.3em; height: 1.3em; }
.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; } }
