:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --accent: #38bdf8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    background-attachment: fixed;
}

/* Glassmorphism utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.text-center {
    text-align: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-salir {
    background: rgba(239, 68, 68, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-salir:hover {
    background: rgba(239, 68, 68, 0.4);
    color: white !important;
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 100px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero {
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
}

.hero-content {
    z-index: 10;
    width: 100%;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent);
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.8;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.btn.primary {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    color: white;
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(56, 189, 248, 0.4);
}

.hero-shapes .shape {
    position: absolute;
    z-index: 0;
    filter: blur(60px);
}

.shape.circle {
    width: 300px;
    height: 300px;
    background: #818cf8;
    border-radius: 50%;
    top: 20%;
    left: 10%;
    opacity: 0.4;
}

.shape.blob {
    width: 400px;
    height: 400px;
    background: #38bdf8;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    bottom: 10%;
    right: 10%;
    opacity: 0.3;
}

/* Cards & Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dashboard Mockup */
.dashboard-mockup {
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    height: 450px;
}

.dash-sidebar {
    width: 220px;
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-right: 1px solid var(--glass-border);
}

.dash-sidebar ul {
    list-style: none;
}

.dash-sidebar li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.8;
    transition: all 0.3s;
}

.dash-sidebar li:hover {
    color: var(--accent);
    opacity: 1;
    padding-left: 5px;
}

.dash-main {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.dash-cards {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dash-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    font-weight: 600;
}

.dash-chart {
    flex: 1;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 2rem;
}

.bar {
    width: 8%;
    background: linear-gradient(to top, #38bdf8, #818cf8);
    border-radius: 4px 4px 0 0;
    animation: growUp 1.5s ease-out forwards;
    transform-origin: bottom;
}

@keyframes growUp {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

/* Profile */
.profile-container {
    display: flex;
    gap: 3rem;
    align-items: center;
    padding: 4rem;
    border-radius: 20px;
}

.profile-img {
    width: 150px;
    height: 150px;
    min-width: 150px;
    background: var(--glass-bg);
    border: 3px solid var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--accent);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.profile-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.profile-info h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.btn-exit {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

.btn-exit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(239, 68, 68, 0.4);
}

/* Swiper Slider */
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}
.swiper-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .profile-container {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .dashboard-mockup {
        flex-direction: column;
        height: auto;
    }

    .dash-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .dash-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .dash-sidebar li {
        border: none;
        padding: 0.5rem;
    }

    .dash-cards {
        flex-direction: column;
    }

    .dash-chart {
        height: 200px;
    }
    .swiper-slide img {
        height: 250px; /* Imágenes más bajas en móviles para que entren mejor */
    }
}