/* Structural templates. All components use the active profile palette. */
.tls-profile-theme:not([data-template="custom"]) { background: var(--profile-surface); }
.tls-profile-theme:not([data-template="custom"]) .profile-img {
    width: 140px;
    height: 140px;
    border: 4px solid var(--profile-accent);
    border-radius: 50%;
    object-fit: cover;
}
.tls-profile-theme:not([data-template="custom"]) .btn-enlace {
    border-radius: 24px;
}
.tls-profile-theme[data-template]:not([data-template="custom"]){color:var(--profile-ink)}
.tls-profile-theme[data-template]:not([data-template="custom"]) .container{max-width:720px;padding:48px 24px}
.tls-profile-theme[data-template]:not([data-template="custom"]) .profile-name{overflow-wrap:anywhere;line-height:1.12}
.tls-profile-theme[data-template]:not([data-template="custom"]) .tls-bio{color:var(--profile-ink)!important}
.tls-profile-theme .btn-enlace {
    background: var(--link-surface, var(--profile-accent));
    color: var(--link-ink, var(--profile-on-accent));
    overflow-wrap: anywhere;
    white-space: normal;
}
.tls-profile-theme .btn-enlace:is(:hover, :focus-visible) {
    background: var(--link-hover-surface, var(--link-surface, var(--profile-accent)));
    color: var(--link-hover-ink, var(--link-ink, var(--profile-on-accent)));
    text-decoration: underline;
    text-underline-offset: .18em;
}
.tls-profile-theme .btn-enlace:focus-visible {
    outline: 2px solid var(--profile-ink);
    outline-offset: 3px;
}
.tls-profile-theme[data-template="custom"] .btn-enlace {
    --link-hover-surface: var(--profile-hover, var(--profile-accent));
    --link-hover-ink: var(--profile-on-hover, var(--profile-on-accent));
}
.tls-profile-theme:is([data-template="editorial"], [data-template="minimal"], [data-template="bold"]) .btn-enlace {
    --link-surface: var(--profile-surface);
    --link-ink: var(--profile-ink);
}
.tls-profile-theme[data-template="night"] .btn-enlace {
    --link-surface: var(--profile-surface);
    --link-ink: var(--profile-accent);
    --link-hover-surface: var(--profile-accent);
    --link-hover-ink: var(--profile-on-accent);
}
/* Studio: aligned left, compact square portrait and rectangular links. */
.tls-profile-theme[data-template="studio"] .container{text-align:left!important}
.tls-profile-theme[data-template="studio"] .profile-img{width:100px;height:100px;border-radius:20px!important}
.tls-profile-theme[data-template="studio"] .profile-name{font-size:2.2rem;letter-spacing:-.06em}
.tls-profile-theme[data-template="studio"] .tls-socials{justify-content:flex-start}
.tls-profile-theme[data-template="studio"] .btn-enlace{border-radius:8px;text-align:left;padding:20px 24px}
.tls-profile-theme[data-template="studio"] .tls-public-card{border-radius:8px}
/* Bloom: expressive serif, oval portrait and soft asymmetric shapes. */
.tls-profile-theme[data-template="bloom"] .profile-name{font-family:Georgia,serif;font-style:italic;font-size:3rem}
.tls-profile-theme[data-template="bloom"] .profile-img{width:130px;height:165px;border-radius:48% 48% 42% 42%!important}
.tls-profile-theme[data-template="bloom"] .btn-enlace{border-radius:32px 10px 32px 10px;padding:22px}
.tls-profile-theme[data-template="bloom"] .tls-public-card{border-radius:32px 10px 32px 10px}
/* Night: technical type, outlined links and luminous portrait ring. */
.tls-profile-theme[data-template="night"] .profile-name{font-family:monospace;text-transform:uppercase;font-size:2rem;letter-spacing:.06em}
.tls-profile-theme[data-template="night"] .profile-img{box-shadow:0 0 0 8px var(--profile-surface),0 0 0 9px var(--profile-accent)}
.tls-profile-theme[data-template="night"] .btn-enlace{border:1px solid var(--profile-accent);border-radius:4px;font-family:monospace;letter-spacing:.03em}
.tls-profile-theme[data-template="night"] .tls-public-card{border-radius:4px}
/* Forest: book-like serif, open space and organic rounded cards. */
.tls-profile-theme[data-template="forest"] .container{max-width:620px}
.tls-profile-theme[data-template="forest"] .profile-name{font-family:Georgia,serif;letter-spacing:0}
.tls-profile-theme[data-template="forest"] .profile-img{border-radius:40% 60% 55% 45%!important}
.tls-profile-theme[data-template="forest"] .btn-enlace{border-radius:8px 28px;padding:23px;margin:16px 0}
.tls-profile-theme[data-template="forest"] .tls-public-card{border-radius:8px 28px;border-style:dashed}
/* Editorial: large masthead, ruled links and no button boxes. */
.tls-profile-theme[data-template="editorial"] .container{text-align:left!important;max-width:780px}
.tls-profile-theme[data-template="editorial"] .profile-img{width:88px;height:88px;border-radius:0!important;filter:grayscale(1)}
.tls-profile-theme[data-template="editorial"] .profile-name{font-family:Georgia,serif;font-size:clamp(2.8rem,8vw,4.5rem);letter-spacing:-.05em;border-bottom:3px solid var(--profile-accent);padding-bottom:20px}
.tls-profile-theme[data-template="editorial"] .tls-bio{max-width:540px;font-family:Georgia,serif;font-size:1.2rem!important}
.tls-profile-theme[data-template="editorial"] .tls-socials{justify-content:flex-start}
.tls-profile-theme[data-template="editorial"] .btn-enlace{border-radius:0;border-bottom:1px solid var(--profile-accent);box-shadow:none;text-align:left;font-family:Georgia,serif;font-size:1.35rem;padding:24px 0;margin:0}
.tls-profile-theme[data-template="editorial"] .btn-enlace:hover{transform:translateX(4px)}
.tls-profile-theme[data-template="editorial"] .tls-public-card{border-width:1px 0;border-radius:0;padding:22px 0}
/* Mosaic: a real two-column card layout, even on most phones. */
.tls-profile-theme[data-template="mosaic"] .container{max-width:880px}
.tls-profile-theme[data-template="mosaic"] .profile-name{font-size:2.5rem;font-weight:800}
.tls-profile-theme[data-template="mosaic"] .enlaces-container{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.tls-profile-theme[data-template="mosaic"] .btn-enlace{display:flex;align-items:center;justify-content:center;min-height:130px;margin:0;border-radius:20px;padding:20px;font-weight:700}
.tls-profile-theme[data-template="mosaic"] .btn-enlace:first-child{grid-column:1/-1;min-height:90px}
.tls-profile-theme[data-template="mosaic"] .tls-public-card{border-radius:20px}
/* Bold: hard offset shadows, chunky borders and loud type. */
.tls-profile-theme[data-template="bold"] .profile-name{font-family:Impact,'Arial Black',sans-serif;text-transform:uppercase;letter-spacing:.015em;font-size:clamp(2.6rem,7vw,4rem)}
.tls-profile-theme[data-template="bold"] .profile-img{border-radius:0!important;box-shadow:7px 7px 0 var(--profile-accent)}
.tls-profile-theme[data-template="bold"] .btn-enlace{border:3px solid var(--profile-accent);border-radius:0;box-shadow:6px 6px 0 var(--profile-accent);font-weight:800;text-transform:uppercase;margin:20px 0}
.tls-profile-theme[data-template="bold"] .btn-enlace:hover{transform:translate(3px,3px);box-shadow:3px 3px 0 var(--profile-accent)}
.tls-profile-theme[data-template="bold"] .tls-public-card{border:3px solid var(--profile-accent);border-radius:0;box-shadow:5px 5px 0 var(--profile-accent)}
/* Business card: bounded profile sheet and restrained spacing. */
.tls-profile-theme[data-template="business"] .container{max-width:560px;width:calc(100% - 40px);margin:40px auto;border:1px solid var(--profile-accent);border-top:8px solid var(--profile-accent);border-radius:16px;box-shadow:0 20px 60px #00000012;padding:32px}
.tls-profile-theme[data-template="business"] .profile-img{width:88px;height:88px}
.tls-profile-theme[data-template="business"] .profile-name{font-size:1.9rem;margin:12px 0}
.tls-profile-theme[data-template="business"] .btn-enlace{border-radius:6px;padding:14px;font-size:1rem;margin:10px 0}
.tls-profile-theme[data-template="business"] .tls-public-card{border-radius:6px;padding:16px}
/* Essential: typography, generous whitespace and hairline separators. */
.tls-profile-theme[data-template="minimal"] .container{max-width:580px;padding-top:64px}
.tls-profile-theme[data-template="minimal"] .profile-img{width:72px;height:72px;border-width:0!important}
.tls-profile-theme[data-template="minimal"] .profile-name{font-weight:400;font-size:1.8rem;letter-spacing:.03em}
.tls-profile-theme[data-template="minimal"] .btn-enlace{box-shadow:none;border-radius:0;border-bottom:1px solid var(--profile-accent);padding:25px 0;font-weight:400;font-size:1rem}
.tls-profile-theme[data-template="minimal"] .btn-enlace:hover{transform:none;text-decoration:underline}
.tls-profile-theme[data-template="minimal"] .tls-public-card{border:0;border-top:1px solid var(--profile-accent);border-radius:0;padding:24px 0}
.tls-profile-theme[data-template="minimal"] .tls-socials a{background:transparent;color:var(--profile-ink);border:0}
@media(max-width:480px){.tls-profile-theme[data-template]:not([data-template="custom"]) .container{padding:32px 20px}.tls-profile-theme[data-template="mosaic"] .enlaces-container{gap:12px}.tls-profile-theme[data-template="mosaic"] .btn-enlace{padding:16px 10px;font-size:1rem;min-height:110px}.tls-profile-theme[data-template="business"] .container{margin:20px auto}.tls-profile-theme[data-template="bold"] .btn-enlace{width:calc(100% - 6px)}}
@media(prefers-reduced-motion:reduce){.tls-profile-theme[data-template] .btn-enlace{transition:none}.tls-profile-theme[data-template] .btn-enlace:hover{transform:none}}

