/* ===== CSS VARIABLES ===== */
:root {
    --primary: #00f2ff;
    /* Cyan Neón */
    --secondary: #7000ff;
    /* Morado Neón */
    --accent: #ff0055;
    /* Rosa Neón */
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== FONDO ANIMADO ===== */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1a0b2e 0%, #000000 100%);
}

.particle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    pointer-events: none;
}

.particle.circle {
    border: 2px solid var(--primary);
    border-radius: 50%;
}

.particle.square {
    border: 2px solid var(--primary);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.logo-icon {
    width: 32px;
    height: 32px;
    animation: pulseLogo 3s infinite;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.admin-link {
    color: var(--accent) !important;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(112, 0, 255, 0.3));
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* ===== BOTONES ===== */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ===== STATUS BADGE ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    color: #00ff88;
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: blink 2s infinite;
}

/* ===== 3D DEVICE ANIMATION ===== */
.hero-image {
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-mockup {
    width: 280px;
    height: 560px;
    background: #000;
    border-radius: 45px;
    border: 8px solid #333;
    box-shadow:
        0 0 0 2px #1a1a1a,
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 242, 255, 0.2);
    position: relative;
    transform-style: preserve-3d;
    animation: floatDevice 6s ease-in-out infinite;
    transition: transform 0.1s ease-out;
}

.device-mockup::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 48px;
    background: linear-gradient(45deg, transparent 40%, var(--primary) 50%, transparent 60%);
    z-index: -1;
    animation: borderRotate 4s linear infinite;
}

.device-screen {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a2e, #000);
    border-radius: 38px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen-content {
    text-align: center;
    color: var(--primary);
}

.lock-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: var(--primary);
    filter: drop-shadow(0 0 15px var(--primary));
    animation: unlock 2s infinite alternate;
}

.unlock-text {
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 80px 0;
    background: linear-gradient(to bottom, transparent, rgba(112, 0, 255, 0.05));
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== REGISTRATION SECTION ===== */
.registration {
    padding: 80px 0;
    position: relative;
}

.registration-card {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(20, 20, 25, 0.8);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.registration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.card-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input,
select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.form-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    display: block;
}

.btn-lg {
    width: 100%;
    justify-content: center;
    padding: 16px;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* ===== DIVIDER & STATUS CHECK ===== */
.divider {
    text-align: center;
    margin: 2.5rem 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--glass-border);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: #1a1a20;
    padding: 0 10px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.check-status-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-inline {
    display: flex;
    gap: 1rem;
}

.form-inline input {
    flex: 1;
}

/* ===== CONTACT & FOOTER ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    transition: 0.3s;
    border: 1px solid transparent;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    background: #020202;
}

.footer p {
    color: #666;
}

/* ===== KEYFRAMES & ANIMATIONS ===== */
@keyframes floatDevice {
    0%,
    100% {
        transform: translateY(0) rotateY(-10deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-25px) rotateY(10deg) rotateX(-5deg);
    }
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 242, 255, 0));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.5));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 242, 255, 0));
    }
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

@keyframes unlock {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 20px var(--primary));
    }
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-inline {
        flex-direction: column;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .device-mockup {
        width: 220px;
        height: 440px;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .container {
        padding: 0 1rem;
    }
}
