/* Reset y variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta principal */
    --primary-fuchsia: #FF2FB4;
    --primary-purple: #8A2BE2;
    --text-white: #FFFFFF;
    --text-secondary: #F2F2F2;
    --bg-dark-top: #0F1124;
    --bg-dark-bottom: #2C1240;
    --bg-secondary-button: #141627;
    
    /* Gradientes y fondos */
    --bg-primary: linear-gradient(180deg, #12142A 0%, #351549 100%);
    --accent-gradient: linear-gradient(100deg, #FF2FB4 0%, #C248E6 50%, #8A2BE2 100%);
    --bg-glass: rgba(20, 22, 39, 0.55);
    --bg-cards: rgba(255, 255, 255, 0.06);
    --bg-cards-hover: rgba(255, 255, 255, 0.1);
    
    /* Sombras y glows */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 12px rgba(255, 47, 180, 0.5);
    --shadow-logo: 0 0 12px rgba(255, 47, 180, 0.25);
    --shadow-button: 0 6px 28px rgba(255, 47, 180, 0.25);
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    
    --border-radius: 20px;
    --border-radius-large: 24px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    background-attachment: fixed;
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 80%, rgba(255, 47, 180, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    animation: particles 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes particles {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.07) rotate(180deg);
        opacity: 1;
    }
}

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

@keyframes glowPulse {
    0%, 100% {
        box-shadow: var(--shadow-button);
    }
    50% {
        box-shadow: var(--shadow-glow);
    }
}

@keyframes imageGlow {
    0%, 100% {
        box-shadow: 0 0 34px rgba(255, 47, 180, 0.28);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 47, 180, 0.35);
    }
}

/* Elementos decorativos flotantes */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 47, 180, 0.08), rgba(138, 43, 226, 0.05));
    animation: float 20s ease-in-out infinite;
}

.floating-circle:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.floating-circle:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: -3%;
    animation-delay: 5s;
}

.floating-circle:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 10%;
    animation-delay: 10s;
}

.floating-circle:nth-child(4) {
    width: 80px;
    height: 80px;
    top: 30%;
    right: 15%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.25;
    }
    50% {
        transform: translateY(-18px) rotate(180deg);
        opacity: 0.55;
    }
}

/* Container principal */
.container {
    max-width: 520px;
    margin: 0 auto;
    padding: 32px 24px 42px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-title {
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    letter-spacing: 0.6px;
    font-size: 30px;
    color: var(--text-white);
    margin-bottom: 12px;
    text-shadow: var(--text-shadow);
}

.profile-image-container {
    position: relative;
    margin: 0 auto 18px;
    width: 160px;
    height: 160px;
    padding: 3px;
    border-radius: 50%;
    background: var(--primary-fuchsia);
    box-shadow: 0 0 34px rgba(255, 47, 180, 0.28);
    animation: imageGlow 3s ease-in-out infinite;
    overflow: hidden;
}

.profile-image-container::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 47, 180, 0.15) 0%,
        rgba(138, 43, 226, 0) 60%
    );
    pointer-events: none;
    z-index: -1;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.profile-image:hover {
    transform: scale(1.05) rotate(2deg);
}

.hero-logo {
    max-width: 240px;
    width: 100%;
    height: auto;
    margin: 0 auto 18px;
    display: block;
    filter: drop-shadow(var(--shadow-logo));
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.04);
}

.hero p {
    font-size: 16px;
    color: #F2F2F2;
    line-height: 1.6;
    max-width: 360px;
    margin: 0 auto;
    font-weight: 400;
    text-shadow: var(--text-shadow);
}

/* Buttons section */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 46px;
}

.button {
    display: block;
    background: var(--bg-secondary-button);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 22px 26px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out calc(0.18s + var(--delay, 0s)) both;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.5s ease;
}

.button:hover::before {
    left: 100%;
}

.button:hover,
.button:active {
    background: var(--bg-secondary-button);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.12);
}

.button.primary {
    background: var(--accent-gradient);
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: glowPulse 2s ease-in-out infinite;
    box-shadow: var(--shadow-button);
}

.button.primary:hover,
.button.primary:active {
    background: linear-gradient(90deg, #FF4FC8, #9A3FF2);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 0 18px rgba(255, 47, 180, 0.45);
}

.button-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.button-icon {
    font-size: 26px;
    min-width: 26px;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.button-text {
    flex: 1;
}

.button-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-white);
    letter-spacing: 0.2px;
    text-shadow: var(--text-shadow);
}

.button-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    text-shadow: var(--text-shadow);
}

/* Disclaimer */
.disclaimer {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 26px;
    padding: 18px;
    background: rgba(20, 22, 39, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: fadeInUp 0.9s ease-out 1s both;
    text-shadow: var(--text-shadow);
}

/* Footer */
.footer {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    animation: fadeInUp 0.9s ease-out 1.1s both;
    text-shadow: var(--text-shadow);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .container {
        max-width: 460px;
        padding: 52px 34px;
    }

    .hero-logo {
        max-width: 280px;
    }

    .profile-image-container {
        width: 170px;
        height: 170px;
    }

    .buttons {
        gap: 20px;
    }

    .button {
        padding: 26px 30px;
    }

    .button-title {
        font-size: 19px;
    }
}

/* Accessibility */
.button:focus {
    outline: 2px solid rgba(255, 47, 180, 0.9);
    outline-offset: 2px;
}

/* Stagger animations for buttons */
.buttons .button:nth-child(1) { --delay: 0.35s; }
.buttons .button:nth-child(2) { --delay: 0.55s; }
.buttons .button:nth-child(3) { --delay: 0.75s; }
.buttons .button:nth-child(4) { --delay: 0.95s; }
.buttons .button:nth-child(5) { --delay: 1.15s; }

/* Prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    body {
        background: var(--bg-primary);
    }

    body::before,
    .floating-elements {
        display: none;
    }

    .button,
    .disclaimer {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.06);
    }
}
