:root {
    --gold: #d4af37;
    --gold-light: #f1d592;
    --bg-dark: #0a0a0a;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-heavy: rgba(0, 0, 0, 0.98);
    --transition-premium: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark);
    font-family: 'Montserrat', sans-serif;
    color: white;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeInBody 1.5s ease forwards;
}

/* EFECTO LUZ */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(212, 175, 55, 0.07) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('grupo.webp') no-repeat center center;
    background-size: cover;
    z-index: -1;
    transform: scale(1.1);
    filter: blur(4px);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

header {
    text-align: center;
    margin: 100px 0 50px;
    z-index: 10;
    opacity: 0;
    animation: slideUp 1s ease forwards 0.3s;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 12px;
    background: linear-gradient(to right, var(--gold), var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* KPIS */
.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 70px;
    z-index: 10;
    opacity: 0;
    animation: slideUp 1s ease forwards 0.6s;
}

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

.stat-number {
    display: block;
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
}

.stat-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
}

.stat-divider {
    width: 1px;
    height: 35px;
    background: rgba(212, 175, 55, 0.15);
}

/* CARDS */
.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto 120px;
    z-index: 10;
}

.card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-premium);
}

.card:nth-child(1) {
    animation: cardReveal 0.8s ease forwards 0.8s;
}

.card:nth-child(2) {
    animation: cardReveal 0.8s ease forwards 1s;
}

.card:nth-child(3) {
    animation: cardReveal 0.8s ease forwards 1.2s;
}

.card:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    background: rgba(212, 175, 55, 0.05);
}

.card img {
    max-width: 60%;
    filter: grayscale(1) brightness(1.2);
    opacity: 0.7;
    transition: 0.5s;
}

.card.logo-grande img {
    max-width: 100%;
}

.card:hover img {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    padding: 12px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 999;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
    max-width: 50px;
}

.whatsapp-float span {
    white-space: nowrap;
    opacity: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s;
    color: #fff;
}

.whatsapp-float:hover {
    max-width: 250px;
    background: var(--gold);
    color: black;
    border-color: var(--gold);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.whatsapp-float:hover span {
    opacity: 1;
    color: black;
}

/* FOOTER */
footer {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    padding: 90px 0 0;
    z-index: 10;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto 60px;
}

.footer-col h4 {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 25px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-col a,
.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 2;
    display: block;
    transition: 0.3s;
    cursor: pointer;
}

.footer-col a:hover {
    color: var(--gold);
    padding-left: 8px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.social-link {
    color: rgba(212, 175, 55, 0.5);
    font-size: 1.3rem;
    transition: 0.3s;
    text-decoration: none;
}

.social-link:hover {
    color: var(--gold);
    transform: translateY(-5px);
}

.legal-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(212, 175, 55, 0.05);
    flex-wrap: wrap;
}

.legal-bar a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    cursor: pointer;
}

.legal-bar a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding: 30px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-heavy);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(15px);
}

.modal-content {
    background: #0f0f0f;
    border: 1px solid var(--gold);
    width: 100%;
    max-width: 800px;
    padding: 60px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalIn 0.5s ease forwards;
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    color: var(--gold);
    font-size: 2rem;
    cursor: pointer;
}

.modal h2 {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 30px;
    font-weight: 300;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 15px;
}

.modal h3 {
    color: var(--gold-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 25px;
    letter-spacing: 2px;
}

.modal p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-top: 10px;
    font-weight: 300;
}

.modal ul {
    list-style: none;
    margin-top: 15px;
}

.modal li {
    margin-bottom: 15px;
    padding-left: 20px;
    border-left: 2px solid var(--gold);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes fadeInBody {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@media (max-width: 768px) {
    .footer-grid {
        text-align: center;
    }

    .stats-container {
        flex-direction: column;
        gap: 25px;
    }

    .stat-divider {
        display: none;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
}