@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-glow: #4f46e588;
    --secondary: #06b6d4;
    --dark-bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    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%);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

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

.text-gradient {
    background: linear-gradient(to right, #818cf8, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Images */
.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 1rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 1rem;
    }

    .nav-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .glass-card {
        padding: 1.5rem;
    }
}

/* Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #e2e8f0;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Navigation & Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--primary-glow);
    filter: brightness(1.1);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: white;
}

/* Lists */
ul {
    list-style-position: inside;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

li {
    margin-bottom: 0.5rem;
}

/* Specific Page Styles */
.cover-page {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.index-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    opacity: 0.1;
    position: absolute;
    right: 1rem;
    top: 0;
    pointer-events: none;
}

.relative {
    position: relative;
}

/* 1. Color normal del enlace */
a {
    color: #3498db; /* Azul */
    text-decoration: none; /* Opcional: quita el subrayado */
}

/* 2. Color cuando pasas el mouse por encima (Hover) */
a:hover {
    color: #e74c3c; /* Rojo */
}

/* 3. Color cuando el enlace ya fue visitado */
a:visited {
    color: #8e44ad; /* Morado */
}

/* 4. Color justo en el momento del clic */
a:active {
    color: #2ecc71; /* Verde */
}