* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #050505;
    background-image:
        linear-gradient(118deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 36%, rgba(201, 162, 39, 0.05) 42%, rgba(218, 165, 32, 0.14) 50%, rgba(201, 162, 39, 0.05) 58%, rgba(0, 0, 0, 0) 64%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(62deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 44%, rgba(255, 215, 0, 0.04) 48%, rgba(184, 134, 11, 0.1) 52%, rgba(255, 215, 0, 0.04) 56%, rgba(0, 0, 0, 0) 60%),
        linear-gradient(168deg, rgba(212, 175, 55, 0.06) 0%, rgba(0, 0, 0, 0) 38%),
        radial-gradient(85% 55% at 92% 8%, rgba(212, 175, 55, 0.08) 0%, rgba(0, 0, 0, 0) 55%),
        radial-gradient(65% 45% at 4% 96%, rgba(184, 134, 11, 0.07) 0%, rgba(0, 0, 0, 0) 50%);
    background-attachment: fixed;
    color: #f5f5f5;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

#particles {
    display: none;
}

.container {
    width: 92%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 3rem 0 4rem;
    position: relative;
    z-index: 1;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    max-width: 260px;
    width: 70%;
    height: auto;
    filter: drop-shadow(0 6px 24px rgba(212, 175, 55, 0.25));
}

.page-subtitle {
    text-align: center;
    color: rgba(245, 245, 245, 0.6);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    margin-bottom: 2.25rem;
}

/* Cards */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    counter-reset: card-counter;
}

.card-item {
    counter-increment: card-counter;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 14px;
    overflow: hidden;
    align-self: start;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-item:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.08);
}

.card-item:first-child {
    grid-column: 1 / -1;
    background: rgba(212, 175, 55, 0.07);
    border-color: rgba(212, 175, 55, 0.4);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    padding: 1.3rem 1.4rem;
    font-size: 1rem;
    font-weight: 700;
    color: #f5f5f5;
    transition: color 0.25s ease;
}

.card-header::before {
    content: counter(card-counter, decimal-leading-zero);
    order: -1;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
}

.card-header::after {
    content: '';
    width: 9px;
    height: 9px;
    margin-left: auto;
    flex-shrink: 0;
    border-right: 2px solid #d4af37;
    border-bottom: 2px solid #d4af37;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.card-header:hover {
    color: #d4af37;
}

.card-header.active {
    color: #d4af37;
}

.card-header.active::after {
    transform: rotate(-135deg);
}

.card-item:has(.card-header.active) {
    border-color: rgba(212, 175, 55, 0.5);
}

.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 1.4rem;
}

.card-content p {
    padding-bottom: 1rem;
    line-height: 1.65;
    color: rgba(245, 245, 245, 0.85);
    font-size: 0.94rem;
}

.card-content p:first-child {
    padding-top: 0.2rem;
}

.card-content a {
    color: #d4af37;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(212, 175, 55, 0.4);
}

.card-content a:hover {
    color: #ffd700;
}

/* Estilos responsivos */
@media (max-width: 640px) {
    .container {
        width: 94%;
        padding: 2rem 0 3rem;
    }

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

    .card-item:first-child {
        grid-column: auto;
    }

    .logo img {
        max-width: 200px;
        width: 85%;
    }

    .card-header {
        padding: 1.05rem 1.1rem;
        font-size: 0.92rem;
        gap: 10px;
    }

    .card-header::before {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }

    .card-content {
        padding: 0 1.1rem;
    }

    .card-content p {
        font-size: 0.9rem;
    }
}
