/* --- Variables Globales --- */
:root {
    --bg-deep-black: #020205;
    --card-bg: rgba(10, 10, 15, 0.9);
    --electric-blue: #fff;
    --electric-blue-dim: rgba(0, 242, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.25);
    --transition-smooth: cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    background-color: var(--bg-deep-black);
    color: var(--text-primary);
    font-family: 'Poppins';
    min-height: 100vh;
    display: block;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.background-container {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, #0a1128 0%, #020205 100%);
    z-index: -1;
}

.loader-container {
    position: fixed;
    inset: 0;
    background: var(--bg-deep-black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s var(--transition-smooth), visibility 0.8s;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.loader-logo {
    width: 100px;
    height: 100px;
    content: url('/icono/icon.svg');
    filter: none;
    /* Sin resplandor */
    animation: pulseLogo 1s infinite ease-in-out;
    margin-bottom: 30px;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.loader-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: var(--electric-blue);
    animation: loadingProgress 1s var(--transition-smooth) infinite;
}

/* --- Contenedor Principal --- */
.card-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.profile-card {
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    animation: cardEntrance 1s var(--transition-smooth) 1.8s forwards;
    overflow: hidden;
}

/* --- Header & Perfil --- */

.section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin: 30px 0 15px;
    text-align: center;
    font-weight: 600;
}

.profile-header {
    height: 130px;
    position: relative;
    background: linear-gradient(135deg, #001a2e 0%, rgba(0, 242, 255, 0.1) 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-shrink: 0;
}

.profile-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid var(--electric-blue);
    box-shadow: none;
    background: #050505;
    margin-bottom: -45px;
    z-index: 2;
    object-fit: contain;
    padding: 10px;
}

.profile-content {
    padding: 60px 24px 25px;
    text-align: center;
}

.name {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.verified-svg {
    width: 20px;
    height: 20px;
    fill: var(--electric-blue);
}

.followers {
    color: var(--electric-blue);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 10px 0 15px;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 25px;
}

/* --- Botones --- */
.main-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.button {
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.button-vip {
    background: var(--electric-blue);
    color: #000;
}

.button-of {
    border: 1px solid var(--electric-blue);
    color: var(--electric-blue);
}

/* --- Enlaces Sociales --- */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
}

.social-link:active {
    background: var(--electric-blue-dim);
    transform: scale(0.98);
}

/* --- Cuadrícula de Productos --- */
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 20px 15px;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    text-align: center;
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.product-card i {
    font-size: 1.5rem;
    color: var(--electric-blue);
    margin-bottom: 5px;
}

.product-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
}

.product-card p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--electric-blue);
}

.products-grid {
    margin: 0;
    /* Alineado con el reset de redes sociales */
}

.product-card {
    padding: 25px 15px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--electric-blue);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s var(--transition-smooth);
}

.whatsapp-btn i {
    font-size: 1.2rem;
}

.whatsapp-btn:hover {
    color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* --- Footer --- */
.shouts-section {
    padding: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
    text-align: center;
    margin-top: auto;
}

/* --- Animaciones --- */
@keyframes loadingProgress {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes pulseLogo {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =============================================
   MÓVILES: PANTALLA COMPLETA & FONDO SÓLIDO
   ============================================= */

@media (max-width: 480px) {
    .background-container {
        display: none;
    }

    body {
        background-color: var(--bg-deep-black);
        /* Fondo negro puro */
    }

    .card-container {
        padding: 0;
        align-items: flex-start;
    }

    .profile-card {
        border-radius: 0;
        border: none;
        min-height: 100vh;
        width: 100%;
        margin: 0;
        box-shadow: none;
        background: var(--bg-deep-black);
        transform: none;
        opacity: 1;
        animation: none;
    }

    .profile-header {
        height: 160px;
        background: linear-gradient(180deg, #001a2e 0%, var(--bg-deep-black) 100%);
    }

    .social-links {
        gap: 0;
        margin: 0 -24px;
    }

    .social-link {
        background: transparent;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--glass-border);
        padding: 20px 25px;
    }

    .social-link:last-child {
        border-bottom: 1px solid var(--glass-border);
    }

    .shouts-section {
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(255, 255, 255, 0.02);
    }
}

@media (max-height: 650px) and (min-width: 481px) {
    .profile-header {
        height: 100px;
    }

    .profile-image {
        width: 90px;
        height: 90px;
        margin-bottom: -35px;
    }

    .profile-content {
        padding-top: 45px;
    }
}

.button {
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

@media (min-width: 481px) {
    .button:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 242, 255, 0.2);
        filter: brightness(1.1);
    }
}

.button:active {
    transform: scale(0.95);
    filter: brightness(0.9);
}

.button-vip {
    background: var(--electric-blue);
    color: #000;
}

.button-of {
    border: 1px solid var(--electric-blue);
    color: var(--electric-blue);
    background: transparent;
}

.button-of:hover {
    background: var(--electric-blue-dim);
}

.social-link {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 18px 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s var(--transition-smooth);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.06);
    padding-left: 25px;
    /* Pequeño desplazamiento a la derecha */
    border-color: var(--electric-blue);
}

@media (max-width: 480px) {
    .background-container {
        display: none !important;
    }

    body {
        background-color: var(--bg-deep-black);
        position: relative;
        overflow-y: visible;
        height: auto;
        width: 100%;
    }

    .card-container {
        display: block;
        padding: 0;
        margin: 0;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .profile-card {
        border-radius: 0;
        border: none;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0;
        box-shadow: none;
        background: var(--bg-deep-black);
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;

        display: flex;
        flex-direction: column;
    }

    .profile-header {
        height: 180px;
        background: linear-gradient(180deg, #001a2e 0%, var(--bg-deep-black) 100%);
        flex-shrink: 0;
    }

    .profile-content {
        flex: 1 0 auto;
    }

    .social-links {
        gap: 0;
        margin: 0 -20px;
    }

    .social-link {
        background: transparent;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 22px 25px;
    }

    .social-link:last-child {
        border-bottom: 1px solid var(--electric-blue);
    }

    .shouts-section {
        flex-shrink: 0;
        background: #050505;
        padding: 30px 20px;
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }

    .shouts-section {
        background: #050505;
        padding: 40px 20px;
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .whatsapp-btn {
        width: 100%;
        padding: 16px;
    }

    /* --- Footer General --- */
    .shouts-section {
        padding: 30px 24px;
        background: rgba(0, 0, 0, 0.3);
        border-top: 1px solid var(--glass-border);
        margin-top: auto;
    }

    .shouts-container {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .no-shouts {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--electric-blue);
        margin-bottom: 5px;
        font-weight: 700;
    }

    .shouts-info {
        font-size: 0.85rem;
        color: var(--text-secondary);
        margin-bottom: 20px;
    }


    .section-title {
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-secondary);
        margin: 30px 0 15px;
        text-align: center;
        font-weight: 600;
    }

    .shouts-section {
        background: #050505;
        padding: 40px 20px;
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .whatsapp-btn {
        width: 100%;
        padding: 16px;
    }

}