﻿/* -------------------------------------- */
/* --- Estilos para la sección How To Buy --- */
/* -------------------------------------- */

/* Contenedor principal de la sección */
.how-to-buy-section {
    background-color: #0a011f;
    color: #fff;
    padding: 80px 20px;
    overflow: hidden; /* Evita desbordamientos */
}

    /* Título de la sección */
    .how-to-buy-section h2 {
        font-size: 36px;
        text-align: center;
        margin-bottom: 20px;
    }

        .how-to-buy-section h2 span {
            color: #ff6b00;
        }

/* -------------------------------------- */
/* --- Layout Principal (2 columnas) --- */
/* -------------------------------------- */

.how-to-buy-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px; /* Espacio entre los pasos y la imagen */
    flex-wrap: wrap; /* Para que se apilen en pantallas pequeñas */
    max-width: 1200px;
    margin: 0 auto;
}

.steps-container {
    flex: 1; /* Ocupa el espacio disponible */
    min-width: 320px; /* Ancho mínimo antes de apilarse */
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 25px; /* Espacio entre las tarjetas de pasos */
}

.how-to-buy-image {
    flex: 1;
    min-width: 320px;
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .how-to-buy-image img {
        max-width: 100%;
        height: auto;
        /* Efecto de animación opcional */
        animation: float-animation 4s ease-in-out infinite;
    }

/* -------------------------------------- */
/* --- Tarjetas de Pasos (Step Cards) --- */
/* -------------------------------------- */

.step-card {
    background-color: transparent;
    border: 2px solid #3a2c5f;
    border-radius: 15px;
    padding: 10px;
    display: flex;
    align-items: flex-start; /* Alinea el número con el inicio del texto */
    gap: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

    .step-card:hover {
        transform: translateY(-5px) scale(1.02);
        border-color: #8c52ff;
        box-shadow: 0 5px 25px rgba(140, 82, 255, 0.2);
    }

.step-number {
    background-color: #8c52ff;
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-text h3 {
    font-size: 1.2em;
    margin: 0 0 10px 0;
    color: #fff;
}

.step-text p {
    font-size: 0.8em;
    line-height: 1.6;
    color: #ccc;
    margin: 0;
}

/* -------------------------------------- */
/* --- Caja de Dirección y Copia --- */
/* -------------------------------------- */

/* Hereda los estilos de tokenomics.css si están en el mismo proyecto, si no, se definen aquí */
.address-box {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 10px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.value.address {
    font-family: monospace;
    word-break: break-all;
    margin-left: 0;
}

.copy-btn {
    background-color: transparent;
    border: 1px solid #8c52ff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: background-color 0.3s ease;
}

    .copy-btn:hover {
        background-color: rgba(140, 82, 255, 0.2);
    }

.copy-icon {
    width: 10px;
    height: 10px;
    border: 1px solid #8c52ff;
    border-radius: 2px;
    position: relative;
}

    .copy-icon::before {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        width: 10px;
        height: 10px;
        border: 1px solid #8c52ff;
        border-radius: 2px;
        background-color: #13072e;
    }


/* -------------------------------------- */
/* --- Animación y Media Queries --- */
/* -------------------------------------- */

@keyframes float-animation {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 992px) {
    .how-to-buy-content {
        flex-direction: column-reverse; /* Pone la imagen arriba en móviles */
        gap: 40px;
    }
}

/* --- ESTILOS PARA LA ANIMACIÓN DE MONEDAS --- */

.how-to-buy-image {
    position: relative;
    overflow: hidden;
    /* IMPORTANTE: Si la imagen de tu panda tiene un alto fijo, 
       asegúrate de que este contenedor también lo tenga para que 
       las monedas "caigan" dentro de él.
       Ejemplo: height: 400px; 
    */
}

    .how-to-buy-image img {
        position: relative;
        z-index: 2;
    }

.coin {
    position: absolute;
    width: 35px;
    height: 35px;
    background-color: #FFD700;
    border-radius: 50%;
    box-shadow: inset 0 -3px 5px rgba(0,0,0,0.3), 0 2px 3px rgba(0,0,0,0.4);
    /* Si usas una imagen de moneda, descomenta y ajusta: */
    /* background-image: url('ruta/a/tu/imagen-de-moneda.png'); */
    /* background-size: cover; */

    opacity: 0;
    z-index: 1;
    /* Aumentamos la duración de la animación para que la caída se vea más larga */
    animation: fall 5s infinite linear;
}

/* Definición de la animación "fall" */
@keyframes fall {
    0% {
        /* Empieza mucho más arriba de la vista */
        transform: translateY(-200px) rotateZ(0deg);
        opacity: 0;
    }

    10% { /* Puede ser un poco más tarde para que aparezcan bien */
        opacity: 1;
    }

    100% {
        /* Cae hasta mucho más abajo, asegurando que crucen toda la altura del contenedor */
        transform: translateY(600px) rotateZ(720deg);
        opacity: 0;
    }
}

/* Posiciones y retrasos diferentes para cada moneda para un efecto más natural */
/* Hemos ampliado los rangos para más variedad y monedas adicionales */
.coin-1 {
    left: 10%;
    animation-delay: 0s;
}

.coin-2 {
    left: 40%;
    animation-delay: 1.5s;
}

.coin-3 {
    left: 70%;
    animation-delay: 3s;
}

.coin-4 {
    left: 85%;
    animation-delay: 0.5s;
}

.coin-5 {
    left: 25%;
    animation-delay: 2.2s;
}

.coin-6 {
    left: 55%;
    animation-delay: 3.8s;
}
/* Nuevas monedas */
.coin-7 {
    left: 5%;
    animation-delay: 1s;
}
/* Un poco más a la izquierda */
.coin-8 {
    left: 30%;
    animation-delay: 2.5s;
}

.coin-9 {
    left: 60%;
    animation-delay: 4s;
}

.coin-10 {
    left: 95%;
    animation-delay: 0.8s;
}
/* Un poco más a la derecha */

/* Considera añadir más monedas si quieres un efecto aún más denso */
/* Si añades más, simplemente sigue la secuencia .coin-11, .coin-12, etc.
   y dales un 'left' y 'animation-delay' únicos. */