/* Variables de colores */
:root {
    --color-primario-home: #000000; /* Fondo negro */
    --color-secundario-home: #FFD700; /* Dorado para las partículas */
    --color-blanco: #FFFFFF; /* Blanco para las líneas */
}

/* Estilos generales */
.custom-home-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh; /* Asegura que el contenedor ocupe toda la altura */
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--color-primario-home); /* Fondo negro */
}

/* Fondo de partículas */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1; /* Las partículas estarán detrás del logo */
    top: 0;
    left: 0;
    opacity: 0; /* Inicialmente invisibles */
    transition: opacity 2s ease-out; /* Hacemos que las partículas aparezcan con transición */
}

/* Sección de presentación */
.custom-home-presentation-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2; /* Logo por delante de las partículas */
}

/* Logo */
.custom-home-logo {
    max-width: 580px; /* Tamaño base del logo */
    margin-bottom: 20px;
    position: relative;
    z-index: 2; /* Logo en frente de las partículas */
    opacity: 0; /* El logo comienza invisible */
    transform: scale(0.5); /* El logo comienza pequeño */
    transition: opacity 2s ease-out, transform 2s ease-out, filter 2s ease-out; /* Agregamos la transición para el filtro */
    filter: brightness(1); /* Comienza con brillo normal */
}

/* Responsividad: Tablets y teléfonos */
@media (max-width: 768px) {
    .custom-home-logo {
        max-width: 400px; /* Reducimos el tamaño del logo para pantallas más pequeñas */
        transform: scale(0.7); /* Aumentamos un poco el tamaño del logo en pantallas medianas */
    }
    .custom-home-container {
        height: 100vh; /* Aseguramos que el contenedor ocupe toda la altura de la pantalla */
    }
}

@media (max-width: 480px) {
    .custom-home-logo {
        max-width: 300px; /* Logo más pequeño para teléfonos */
        transform: scale(0.6); /* Un poco más pequeño */
    }
    .custom-home-container {
        height: 100vh; /* Asegurar que el contenedor ocupe toda la altura en dispositivos móviles */
        padding: 20px; /* Añadir un pequeño relleno */
    }
    #particles-js {
        opacity: 0; /* Asegurar que las partículas no aparezcan por defecto en dispositivos móviles */
    }
}

/* Main Container */
.home-message-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background-color: #1A1A1A;
    color: #FFFFFF;
}

/* Home Content */
.home-content {
    flex: 1;
    padding: 0 20px 0 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 95vh;
}

.home-text-content {
    width: 80%;
}

.home-lealtad {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.home-content h3 {
    color: #ffc107;
    text-transform: uppercase;
    margin-bottom: 35px;
    font-size: 17px;
    font-weight: 200;
}

.home-content h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.home-content p {
    margin-bottom: 30px;
    font-size: 18px;
    text-align: justify;
    font-weight: 200;
}

.home-content p:last-of-type {
    font-weight: bold;
}

.home-description {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Button */
.button {
    position: relative;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    padding-block: 0.25rem;
    padding-inline: 1rem;
    background-color: #ffc107;
    border-radius: 9999px;
    width: 250px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000;
    gap: 8px;
    font-weight: bold;
    border: 3px solid #ffffff4d;
    outline: none;
    overflow: hidden;
    font-size: 20px;
    text-decoration: none;
}

.icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease-in-out;
}

.button:hover {
    transform: scale(1.05);
    border-color: #fff9;
}

.button:hover .icon {
    transform: translate(4px);
}

.button:hover::before {
    animation: shine 1.5s ease-out infinite;
}

.button::before {
    content: "";
    position: absolute;
    width: 70px;
    height: 100%;
    background-image: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0) 70%
    );
    top: 0;
    left: -70px;
    opacity: 0.6;
}

@keyframes shine {
    0% {
        left: -70px;
    }

    60% {
        left: 100%;
    }

    to {
        left: 100%;
    }
}

/* Home Image */
.home-image-container {
    position: relative;
    flex: 1;
    height: 95vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.home-svg-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.home-svg-background img {
    width: 100%;
    height: 100%;
}

.home-vault-image {
    position: absolute;
    bottom: 0;
    left: 5%;
    z-index: 2;
    width: auto;
    height: 82%;
    object-fit: cover;
}

/* Media Queries */
@media (max-width: 768px) {
    .home-main-container {
        flex-direction: column;
        padding: 20px;
    }

    .home-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .home-header .home-menu {
        margin-top: 10px;
    }

    .home-content {
        padding: 20px;
        height: auto;
        margin-bottom: 30px;
        text-align: left; /* Asegura que el texto comience desde el lado izquierdo */
        flex: 1 0 100%; /* Permite que el contenido tome todo el ancho disponible */
    }

    .home-text-content {
        width: 100%; /* Extiende el texto para que ocupe el ancho completo */
    }

    .home-lealtad {
        gap: 10px;
    }

    .home-content h1 {
        font-size: 28px;
    }

    .home-content p {
        font-size: 16px;
    }

    .home-button {
        width: 100%;
        text-align: center;
    }

    /* Ocultar imágenes en pantallas pequeñas */
    .home-svg-background,
    .home-vault-image {
        display: none;
    }
}

@media (max-width: 480px) {
    .home-content {
        padding: 15px;
        text-align: left; /* Asegura que el texto esté alineado a la izquierda */
    }

    .home-text-content {
        width: 100%; /* Asegura que el texto ocupe todo el ancho */
    }

    .home-header .home-menu a {
        font-size: 14px;
        margin-left: 10px;
    }

    .home-content h3 {
        font-size: 14px;
    }

    .home-content h1 {
        font-size: 22px;
    }

    .home-content p {
        font-size: 14px;
    }

    .button {
        width: 200px;
        height: 50px;
        font-size: 16px;
    }

    .icon {
        width: 20px;
        height: 20px;
    }
}

/* Contenedor general */
.home-login-container {
    height: 75vh;
    background-color: #000000;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Para evitar cortes en pantallas pequeñas */
}

/* Tarjeta de login */
.home-login-card {
    position: relative;
    background-color: #1A1A1A;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 520px;
    height: auto;
    text-align: center;
}

/* Contenido dentro de la tarjeta */
.home-login-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    gap: 20px;
}

/* Ícono en la parte superior */
.home-login-icon {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
}

.home-login-circle {
    width: 120px;
    height: 120px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.home-login-circle img {
    width: 75%;
    height: auto;
    object-fit: contain;
}

/* Títulos y textos */
.home-login-title h2 {
    margin: 80px 0 10px;
    font-size: 1.5rem;
    color: #FFFFFF;
}

.home-login-text p {
    margin: 0 0 20px;
    font-size: 1rem;
    color: #bbb;
}

/* Media Queries para Responsividad */

/* Pantallas pequeñas (móviles) */
@media (max-width: 768px) {
    .home-login-card {
        padding: 20px;
    }

    .home-login-circle {
        width: 80px;
        height: 80px;
    }

    .home-login-title h2 {
        font-size: 1.25rem;
    }

    .home-login-text p {
        font-size: 0.9rem;
    }

    .home-login-button a {
        font-size: 1rem;
        padding: 8px 16px;
    }
}

/* Pantallas medianas (tablets) */
@media (max-width: 1024px) {
    .home-login-card {
        max-width: 400px;
    }

    .home-login-circle {
        width: 90px;
        height: 90px;
    }

    .home-login-title h2 {
        font-size: 1.4rem;
    }

    .home-login-text p {
        font-size: 0.95rem;
    }
}