:root {
    --main-color: #8d096b;
    --secondary: #f4b61c;
    --white: #faf7fb;
    --grey: #c0b6bd;
    --light-grey: #ece9ed;
    --black: #291825;
    /* Variables adicionales para el nuevo diseño */
    --bg-primary: #0a0a0f;
    --bg-card: #1a1a24;
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --border-color: rgba(141, 9, 107, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    margin: 0 !important;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(141, 9, 107, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Header oculto */
header {
    display: none !important;
}

/* Sección de perfil */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem auto;
    text-align: center;
    padding-top: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--main-color);
    box-shadow: 0 0 30px rgba(141, 9, 107, 0.4);
    animation: float 3s ease-in-out infinite;
    object-fit: cover;
    object-position: center;
    display: block;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--main-color);
    margin: 0.5rem 0;
    letter-spacing: -0.02em;
    text-shadow: 0px 0px 10px rgba(141, 9, 107, 0.3);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Títulos de sección */
h2 {
    text-align: center;
    margin: 3rem 1em 1.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    width: 100%;
    animation: fadeIn 0.6s ease-out backwards;
}

h2::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--main-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -10px;
}

h2.text-inside {
    display: none;
}

/* Container de enlaces - adaptado para ACF */
.flexcolumn-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    position: relative;
    z-index: 1;
}

.flexcolumn-3 {
    display: flex;
    gap: 1rem;
    max-width: 170ch;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 90%;
}

.flexcolumn-lasts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    position: relative;
    z-index: 1;
}
h3.linktree-title {
    text-align: center;
}
/* Tarjetas de enlaces */
.eachpic {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    animation: fadeInUp .6s ease-out backwards;
    display: flex;
    flex-direction: column;
    min-width: 200px;
    width: 20%;
    max-width: 300px;
    /*    align-items: center;*/
}

.eachpic a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.eachpic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--main-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}
/*
.eachpic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--main-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}
*/
.eachpic:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--main-color);
    box-shadow: 0 8px 30px rgba(141, 9, 107, 0.3);
    cursor: pointer;
}

.eachpic:hover::after {
    opacity: 1;
}

.eachpic:hover::before {
    opacity: 0.05;
}

/* Container de la imagen */
.linktree-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 8px;
        height: 100%;
}

/* Imágenes dentro de las tarjetas */
img.linktree-pic {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

/* Contenido de texto */
.linktree-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.linktree-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.desc-linktree {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Footer */
footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

footer a {
    color: var(--main-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

footer a:hover {
    color: var(--secondary);
}

/* Responsive */

@media (max-width: 640px) {
    h1 { 
        font-size: 2rem; 
    }
    
    h2 { 
        margin: 2rem 0rem; 
    }

    .flexcolumn-2 {
        grid-template-columns: 1fr;
    }

    .flexcolumn-4, .flexcolumn-lasts {
         grid-template-columns: repeat(2, 1fr);
    }

    .linktree-content {
        padding: 0.75rem;
        gap: 0.35rem;
    }
    
    .linktree-title {
        font-size: 0.9rem;
    }
    
    .desc-linktree {
        font-size: 0.75rem;
    }
    .eachpic {
        max-height: 100px;
        width: 90%;
    }
img.linktree-pic {
    height: 50px;
    object-fit: contain;
}
.flexcolumn-lasts {
    display: flex;
    flex-direction: column;
    align-items: center;
}
}
@media (max-width: 640px) {

}
