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

:root {
    --primary-red: #c8102e;
    --primary-yellow: #fdb913;
    --dark-bg: #0f1419;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 50%, #1a1520 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
    opacity: 0.1;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, 100px) rotate(90deg);
    }
    50% {
        transform: translate(0, 200px) rotate(180deg);
    }
    75% {
        transform: translate(-100px, 100px) rotate(270deg);
    }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    text-align: center;
    padding: 3rem 0 4rem;
    animation: slideDown 0.8s ease-out;
}

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

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo-image {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(200, 16, 46, 0.4));
    transition: all 0.3s ease;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 15px 50px rgba(200, 16, 46, 0.6));
}

.title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    animation: gradient 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 0.5rem;
}

.main-content {
    padding: 2rem 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: cardAppear 0.6s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(200, 16, 46, 0.1) 0%,
        rgba(253, 185, 19, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(200, 16, 46, 0.5);
    box-shadow:
        0 20px 60px rgba(200, 16, 46, 0.3),
        0 0 0 1px rgba(200, 16, 46, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red), #a00c26);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(200, 16, 46, 0.3);
}

.card-icon svg {
    width: 30px;
    height: 30px;
}

.card:hover .card-icon {
    transform: rotate(10deg) scale(1.1);
    background: linear-gradient(135deg, var(--primary-yellow), var(--primary-red));
    box-shadow: 0 15px 40px rgba(253, 185, 19, 0.4);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: var(--primary-yellow);
}

.card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.card-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    align-self: flex-end;
}

.card-arrow svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s ease;
}

.card:hover .card-arrow {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    color: white;
    transform: scale(1.1);
}

.card:hover .card-arrow svg {
    transform: translateX(5px);
}

/* WhatsApp Card Styles */
.card-whatsapp::before {
    background: linear-gradient(135deg,
        rgba(37, 211, 102, 0.1) 0%,
        rgba(37, 211, 102, 0.15) 100%) !important;
}

.card-whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.5) !important;
    box-shadow:
        0 20px 60px rgba(37, 211, 102, 0.3),
        0 0 0 1px rgba(37, 211, 102, 0.2) !important;
}

.card-whatsapp .card-icon {
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3) !important;
}

.card-whatsapp:hover .card-icon {
    background: linear-gradient(135deg, #128C7E, #25D366) !important;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5) !important;
}

.card-whatsapp:hover .card-title {
    color: #25D366 !important;
}

.card-whatsapp:hover .card-arrow {
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
}

.footer {
    text-align: center;
    padding: 3rem 0 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

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

    .header {
        padding: 2rem 0 3rem;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .logo-image {
        width: 100px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 2rem;
    }

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

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-icon svg {
        width: 25px;
        height: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
