:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(20, 25, 35, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --accent-color: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    
    --accent-comerciales: #8b5cf6;
    --accent-operaciones: #0ea5e9;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.3);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: rgba(14, 165, 233, 0.25);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.05); }
    100% { transform: translate(-30px, 50px) scale(0.95); }
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 1.5rem;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeDown 1s ease-out forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 1.5rem;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.main-title span {
    background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 3rem;
    perspective: 1000px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s ease-out forwards;
}

.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }

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

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

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

.card-image-wrapper {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-image {
    transform: scale(1.08);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
    opacity: 0.8;
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    margin-top: -40px;
}

.card-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

#card-comerciales .card-title { color: var(--accent-comerciales); }
#card-operaciones .card-title { color: var(--accent-operaciones); }

.card-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 300;
    flex-grow: 1;
}

.card-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

#card-comerciales .card-action { color: var(--accent-comerciales); }
#card-operaciones .card-action { color: var(--accent-operaciones); }

.card-action .icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.card:hover .card-action .icon {
    transform: translateX(5px);
}

#card-comerciales:hover {
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.4);
}

#card-operaciones:hover {
    box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.4);
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .main-logo {
        max-width: 140px;
    }
    
    .cards-grid {
        gap: 2rem;
    }
    
    .card-image-wrapper {
        height: 200px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-content {
        padding: 1.5rem;
        margin-top: -30px;
    }
}
