/* -- Variables de Color y Diseño -- */
:root {
    --bg-color: #0a0a0f; /* Fondo oscuro muy profundo */
    --text-primary: #ffffff;
    --text-secondary: #b3b3cb;
    --accent-purple: #a855f7; /* Morado intenso */
    --accent-purple-glow: rgba(168, 85, 247, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.05); /* Ligeramente transparente */
    --glass-border: rgba(168, 85, 247, 0.3);
    --glass-hover-bg: rgba(168, 85, 247, 0.15);
}

.pulse-btn {
    animation: pulse-animation 2s infinite;
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.4);
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 20px 5px rgba(255, 77, 77, 0.2);
    }
    100% {
        transform: scale(1);
    }
}

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

body {
    font-family: 'Outfit', -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 3rem 1.5rem;
    position: relative;
    overflow-x: hidden;
}

/* Background animado de IA / Tecnología */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(168, 85, 247, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    transform: perspective(600px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 15s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(600px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(600px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

/* Orbe luminoso flotante */
body::after {
    content: '';
    position: fixed;
    top: 20%;
    left: 20%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    z-index: -1;
    animation: floatOrb 12s ease-in-out infinite alternate;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30%, 20%) scale(1.3); }
}

/* Partículas animadas estilo IA */
.background-particles {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.8);
    animation: moveParticle infinite linear;
}

.p1 { width: 5px; height: 5px; left: 15%; top: 25%; animation-duration: 25s; animation-direction: alternate; }
.p2 { width: 8px; height: 8px; left: 85%; top: 35%; animation-duration: 20s; animation-direction: alternate-reverse; }
.p3 { width: 4px; height: 4px; left: 45%; top: 85%; animation-duration: 30s; animation-direction: alternate; }
.p4 { width: 6px; height: 6px; left: 75%; top: 15%; animation-duration: 22s; animation-direction: alternate-reverse; }
.p5 { width: 5px; height: 5px; left: 25%; top: 65%; animation-duration: 28s; animation-direction: alternate; }
.p6 { width: 7px; height: 7px; left: 10%; top: 80%; animation-duration: 24s; animation-direction: alternate-reverse; }
.p7 { width: 4px; height: 4px; left: 90%; top: 10%; animation-duration: 26s; animation-direction: alternate; }
.p8 { width: 6px; height: 6px; left: 55%; top: 45%; animation-duration: 21s; animation-direction: alternate-reverse; }
.p9 { width: 5px; height: 5px; left: 35%; top: 10%; animation-duration: 23s; animation-direction: alternate; }
.p10 { width: 8px; height: 8px; left: 65%; top: 75%; animation-duration: 27s; animation-direction: alternate-reverse; }
.p11 { width: 4px; height: 4px; left: 5%; top: 50%; animation-duration: 29s; animation-direction: alternate; }
.p12 { width: 6px; height: 6px; left: 95%; top: 60%; animation-duration: 22s; animation-direction: alternate-reverse; }
.p13 { width: 5px; height: 5px; left: 50%; top: 5%; animation-duration: 25s; animation-direction: alternate; }
.p14 { width: 7px; height: 7px; left: 40%; top: 95%; animation-duration: 28s; animation-direction: alternate-reverse; }
.p15 { width: 4px; height: 4px; left: 80%; top: 90%; animation-duration: 24s; animation-direction: alternate; }

@keyframes moveParticle {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { opacity: 1; }
    50% { transform: translate(60px, -60px) scale(1.5); opacity: 0.5; }
    75% { opacity: 1; }
    100% { transform: translate(-40px, 40px) scale(1); opacity: 0.3; }
}

.container {
    width: 100%;
    max-width: 480px; /* Ancho optimizado para móviles y estilizado en web */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem; /* Aire y espacio en blanco */
}

/* -- Sección de Perfil -- */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
}

.profile-img-container {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    padding: 4px; /* Grosor del aro luminoso */
    background: linear-gradient(135deg, #d8b4fe, var(--accent-purple)); /* Gradiente morado */
    box-shadow: 0 0 25px var(--accent-purple-glow);
    animation: pulse-glow 3s infinite alternate; /* Animación sutil de respiración */
    margin-bottom: 0.5rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
    cursor: pointer;
}

.profile-img-container:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 0 45px rgba(168, 85, 247, 0.9);
    animation-play-state: paused;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-color);
}

.profile-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.profile-bio {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 320px;
}

/* -- Sección de Enlaces -- */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem; /* Espaciado entre botones */
}

/* Highlight (Botón principal superior) */
.highlight-btn {
    background: rgba(168, 85, 247, 0.15) !important;
    border-color: var(--accent-purple) !important;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3) !important;
    font-weight: 600 !important;
}

.highlight-btn::before {
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    animation: shine-pulse 3s infinite;
}

@keyframes shine-pulse {
    0% { left: -100%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

/* Botones estilo Cristal (Glassmorphism) */
.link-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.1rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px; /* Bordes redondeados y amigables */
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.05rem;
    backdrop-filter: blur(12px); /* Efecto cristal */
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease; /* Quitamos transform de aquí para que el JS sea fluido */
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Brillo "sheen" que pasa por el botón */
.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    transform: skewX(-25deg);
    transition: all 0.6s ease;
}

/* Animaciones al pasar el cursor o tocar */
.link-btn:hover::before {
    left: 150%;
}

.link-btn:hover, .link-btn:focus {
    background: var(--glass-hover-bg);
    border-color: var(--accent-purple);
    box-shadow: 0 10px 25px var(--accent-purple-glow);
    /* El transform se maneja por JS para el efecto 3D */
}

.link-btn:active {
    transform: translateY(1px) scale(0.98);
}

/* Elementos del botón */
.icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px; /* Ajustado para SVGs */
    height: 24px;
}

.icon svg {
    width: 100%;
    height: 100%;
}

.glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    mix-blend-mode: overlay;
    transition: opacity 0.3s ease;
}

.text {
    flex: 1; /* Ocupa el espacio restante */
    text-align: center; /* Centra el texto */
    margin-right: 2.5rem; /* Compensa el ancho del ícono para que el texto se vea centrado */
    line-height: 1.3;
}

/* Separador visual opcional */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border), transparent);
    margin: 0.5rem 0;
}

/* -- Keyframes para Animaciones -- */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 15px rgba(168, 85, 247, 0.3); }
    100% { box-shadow: 0 0 35px rgba(168, 85, 247, 0.8); }
}

/* Animaciones de entrada (fade y slide up) */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease forwards;
    animation-delay: var(--delay, 0s);
}

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

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

/* -- Ajustes Responsivos -- */
@media (max-width: 400px) {
    .link-btn {
        padding: 1rem 1.2rem;
    }
    
    .text {
        font-size: 0.95rem;
        margin-right: 2rem;
    }
    
    .profile-img-container {
        width: 110px;
        height: 110px;
    }
}

/* -- Modal Overlay -- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* -- Modal Content (Glassmorphism) -- */
.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    width: 90%;
    max-width: 420px;
    position: relative;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 20px var(--accent-purple-glow);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    line-height: 1.4;
}

/* -- Form Inputs -- */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0.4rem;
}

.input-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 0.2rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.submit-btn {
    margin-top: 0.5rem;
    padding: 1.1rem;
    background: var(--accent-purple);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.submit-btn:hover {
    background: #9333ea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

/* -- Notificaciones de Prueba Social (Social Proof) -- */
.notification-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999; /* Asegurar que esté por encima de todo */
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.social-notification {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 15px rgba(168, 85, 247, 0.2);
    animation: notif-slide-in 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    max-width: 300px;
    pointer-events: auto;
}

.social-notification.hide {
    animation: notif-slide-out 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.notif-icon {
    font-size: 1.4rem;
}

.notif-content {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.3;
    font-weight: 500;
}

@keyframes notif-slide-in {
    from { transform: translateX(-100%) scale(0.9); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes notif-slide-out {
    from { transform: translateX(0) scale(1); opacity: 1; }
    to { transform: translateX(-120%) scale(0.9); opacity: 0; }
}

/* -- Panel Estilo Cristal Reutilizable -- */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 480px) {
    .notification-container {
        bottom: 15px;
        left: 15px;
        right: 15px;
    }
    .social-notification {
        max-width: none;
        width: 100%;
    }
}
