* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --shadow: rgba(0, 0, 0, 0.3);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
}

/* Hero Section */
.hero {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* App Card */
.app-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 40px 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.app-card:hover::before {
    opacity: 1;
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px var(--shadow), 0 0 0 1px rgba(102, 126, 234, 0.2);
}

.app-card:nth-child(1) .card-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.app-card:nth-child(2) .card-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.card-icon svg {
    width: 35px;
    height: 35px;
    color: white;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.card-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    position: relative;
    z-index: 1;
}

.card-footer {
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 10px 0;
        margin-bottom: 20px;
    }

    .welcome-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 20px;
    }

    .main-content {
        gap: 25px;
        padding: 10px 0;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-description {
        font-size: 0.95rem;
    }

    .app-card {
        padding: 25px 20px;
        gap: 15px;
    }

    .card-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 5px;
    }

    .card-icon svg {
        width: 28px;
        height: 28px;
    }

    .btn-primary {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .footer {
        padding: 20px 0;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .welcome-title {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .app-card {
        padding: 20px 15px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon svg {
        width: 25px;
        height: 25px;
    }
}

/* Optimización para pantallas móviles pequeñas */
@media (max-width: 375px) and (max-height: 667px) {
    .container {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .header {
        padding: 8px 0;
        margin-bottom: 15px;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .welcome-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .main-content {
        gap: 20px;
        padding: 5px 0;
    }

    .apps-grid {
        gap: 15px;
    }

    .app-card {
        padding: 18px 12px;
        gap: 12px;
    }

    .card-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 3px;
    }

    .card-icon svg {
        width: 22px;
        height: 22px;
    }

    .card-title {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    .card-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .btn-primary {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .footer {
        padding: 15px 0;
        font-size: 0.8rem;
    }
}
