/* Contenedor del anuncio */
.anuncio-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    position: fixed; /* Fijarlo en la pantalla */
    top: 50%; /* Centrado verticalmente */
    left: 50%; /* Centrado horizontalmente */
    transform: translate(-50%, -50%); /* Ajuste de centrado */
    z-index: 9999; /* Asegurarse de que quede al frente */
    width: 90%;
    max-width: 700px;
}

/* Imagen del anuncio */
.anuncio-img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Título llamativo */
.anuncio-titulo {
    color: #007bff;
    font-size: 24px;
    margin-bottom: 10px;
}

/* Texto descriptivo */
.anuncio-texto {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Palabras resaltadas */
.resaltado {
    color: #007bff;
    font-weight: bold;
}

/* Botón de acción */
.anuncio-btn {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    cursor: pointer;
}

/* Efecto hover en el botón */
.anuncio-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Botón de cierre (X) en la parte inferior derecha */
.anuncio-close-btn {
    position: absolute;
    bottom: 10px; /* Posicionarlo en la parte inferior */
    right: 10px;  /* Alinearlo a la derecha */
    width: 30px;
    height: 30px;
    background: transparent;
    color: gray;
    border: 2px solid gray;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
}

/* Efecto hover del botón de cierre */
.anuncio-close-btn:hover {
    background: rgba(128, 128, 128, 0.2);
    color: darkgray;
}

/* Fondo oscuro para la página cuando el anuncio aparece */
.fondo-oscuro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fondo oscuro */
    z-index: 9998; /* Fondo detrás del mensaje */
    display: block;
}

/* Ajustes para animación de entrada/salida */
.anuncio-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}



.anuncio-AEYinstruments{
    width: 40%;
    max-height: 50px;
    height: auto;
 
}


@media screen and (max-width: 800px) {
    .anuncio-AEYinstruments{
        width: 55%;
    }

    /* Título llamativo */
    .anuncio-titulo {
        font-size: 14px;
    }

    .anuncio-texto {
        font-size: 12px;
        margin-bottom: 10px;
        line-height: 1.5;
    }

    .anuncio-btn {
        padding: 10px 15px;
        border-radius: 5px;
        font-size: 12px;
    }

    .anuncio-close-btn {
        position: absolute;
        bottom: 10px; /* Posicionarlo en la parte inferior */
        right: 10px;  /* Alinearlo a la derecha */
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}