/* ======== FUENTES LOCALES ======== */

@font-face {
    font-family: 'TM';
    src: url('fonts/TM.woff2') format('woff2'),
         url('fonts/TM.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BGm';
    src: url('fonts/BGm.woff2') format('woff2'),
         url('fonts/BGm.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* ======== CONFIGURACIÓN GENERAL ======== */

body {
    margin: 0;
    padding: 0;
    background: #000;
    font-family: 'Montserrat', sans-serif;
    color: white;
    overflow-x: hidden;
}

.container {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 20px 40px;
    min-height: 100vh;
}

/* ======== LOGO PRINCIPAL ======== */

.logo img {
    width: 180px;
    margin-top: 30px;
    opacity: 0;
    animation: fadeIn 1.2s forwards ease-out;
}

/* ======== DOMINIO ======== */

.domain-name {
    margin-top: 10px;
    font-weight: 300;
    letter-spacing: 4px;
    font-size: 28px;
    opacity: 0;
    animation: fadeInUp 1.3s forwards ease-out 0.4s;

    display: flex;
    justify-content: center;
    gap: 6px;
}

.brand {
    font-family: 'TM', sans-serif;
    font-size: 32px;
    color: #0a84ff;
}

.tld {
    font-family: 'BGm', sans-serif;
    font-size: 36px;
    color: #0a84ff;
}

/* ======== TEXTO BIENVENIDA ======== */

.welcome {
    margin-top: 20px;
    font-size: 18px;
    opacity: 0;
    animation: fadeInUp 1.3s forwards ease-out 0.8s;
}

/* ======== TARJETAS ======== */

.cards {
    margin-top: 50px;
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.division {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ======== CARD ======== */

.card {
    width: 260px;
    min-height: 300px; /* CLAVE PARA IGUALAR ALTURA */

    padding: 25px;
    text-decoration: none;
    color: white;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);

    transition: transform 0.25s ease,
                box-shadow 0.25s ease,
                border 0.25s;

    opacity: 0;
}

.card:hover {
    transform: translateY(-6px) scale(1.04);
    border: 1px solid #0042cc;
    box-shadow: 0 12px 35px rgba(0, 72, 255, 0.35);
}

/* ======== LOGO INTERNO NORMALIZADO ======== */

.card-logo {
    height: 120px; /* MISMA ALTURA PARA TODOS */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.card-logo img {
    max-height: 100%;
    max-width: 110px;
    object-fit: contain;
}

/* ======== TEXTO CARD ======== */

.card h3 {
    margin: 5px 0;
    font-size: 22px;
    font-weight: 600;
}

.card-desc {
    font-size: 14px;
    opacity: 0.9;
    min-height: 60px; /* RESERVA ESPACIO */
}

/* ======== ANIMACIONES CARD ======== */

.card.nnaocore {
    animation: zoomIn 1.2s ease-out forwards;
    animation-delay: 2s;
}

.card.nnaoart {
    animation: zoomIn 1.2s ease-out forwards;
    animation-delay: 2.5s;
}

/* ======== REDES SOCIALES ======== */

.division-socials {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;

    opacity: 0;
}

.division-socials a {
    color: #6fa8ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.division-socials a:hover {
    color: white;
}

/* Redes aparecen junto con su card */

.card.nnaocore + .division-socials {
    animation: fadeInUp 1.2s ease-out forwards;
    animation-delay: 2s;
}

.card.nnaoart + .division-socials {
    animation: fadeInUp 1.2s ease-out forwards;
    animation-delay: 2.5s;
}

/* ======== ANIMACIONES GENERALES ======== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* ======== RESPONSIVO ======== */

@media (max-width: 700px) {
    .cards {
        flex-direction: column;
        gap: 30px;
    }

    .card {
        width: 85%;
    }

    .domain-name {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .brand {
        font-size: 26px;
    }

    .tld {
        font-size: 30px;
    }

    .welcome {
        font-size: 16px;
    }
}
