/* ============================================================
   BIO-LINKS — ESTILOS COMPARTIDOS
   El fondo y color de acento se definen en el <style>
   de cada página HTML. Busca "PERSONALIZABLE" para editar.
   ============================================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

/* ── Capa 1: Imagen de fondo (fija, cubre toda la pantalla) ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--bg-image, linear-gradient(135deg, #1a1a2e 0%, #16213e 100%));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

/* ── Capa 2: Overlay oscuro para contraste con las glass cards ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--overlay, rgba(0, 0, 0, 0.60));
    z-index: -1;
}

/* ── Layout principal ── */
.container {
    width: 90%;
    max-width: 500px;
    padding: 40px 20px 30px;
    text-align: center;
}

/* ── Header / Perfil ── */
header {
    margin-bottom: 30px;
}

.profile-pic {
    width: 100px;
    height: 100px;
    background: #4e4e4e;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid var(--accent, #00d2ff);
    overflow: hidden;
    box-shadow: 0 0 20px var(--accent-glow, rgba(0, 210, 255, 0.35));
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: 1.8rem;
    margin: 10px 0 4px;
    letter-spacing: 0.02em;
}

.subtitle {
    color: var(--accent, #00d2ff);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* ── Enlace "← Inicio" ── */
.back-link {
    display: inline-block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ── Secciones ── */
section {
    margin-bottom: 28px;
}

section h2 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent, #00d2ff);
    margin-bottom: 14px;
    opacity: 0.85;
}

/* ── Glass Cards ── */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-card {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 14px 18px;
    border-radius: 14px;
    text-decoration: none;
    color: white;
    transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.link-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--accent, rgba(255, 255, 255, 0.3));
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.link-card span:first-child {
    font-weight: 600;
    font-size: 1rem;
}

.link-card span:last-child {
    font-size: 0.82rem;
    opacity: 0.72;
    margin-top: 3px;
}

/* ── Footer ── */
footer {
    margin-top: 16px;
    padding: 14px 0;
    font-size: 0.78rem;
    opacity: 0.45;
}

/* ── Landing: grid de perfiles ── */
.landing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 24px 0 30px;
}

@media (max-width: 420px) {
    .landing-grid {
        grid-template-columns: 1fr;
    }
}

.profile-card-link {
    display: block;
    text-decoration: none;
    color: white;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    min-height: 190px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.25s, box-shadow 0.25s;
}

.profile-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.profile-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 0.4s;
}

.profile-card-link:hover .profile-card-bg {
    transform: scale(1.05);
}

.profile-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.profile-card-content {
    position: relative;
    z-index: 2;
    padding: 28px 16px;
    text-align: center;
}

.profile-card-content .card-icon {
    font-size: 2.4rem;
    margin-bottom: 10px;
    display: block;
}

.profile-card-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-card-content p {
    font-size: 0.85rem;
    opacity: 0.8;
}
