/* Contenedor del certificado */
#image-with-text {
    position: relative;
    display: inline-block;
    text-align: center;
}

/* Imagen de fondo */
#background-image {
    width: 100%;
    height: auto;
    display: block;
}

#nombre-text {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #000;
    text-align: center;
    font-family: "Times New Roman", Times, serif;
    width: 95%; /* Más espacio horizontal */
    max-width: 100%;
    max-height: 60%; /* Permitir más líneas antes de recortar */
    white-space: normal; /* Permitir saltos de línea */
    word-wrap: break-word; /* Dividir palabras largas */
    overflow-wrap: break-word;
    word-break: break-word; /* Alternativa para compatibilidad */
    line-height: 1.3; /* Más espacio entre líneas */
    padding: 5px;
}
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam:wght@700&display=swap');

/*FOLIO*/
#folio-text {
    position: absolute;
    top: 97.5%; /* Ajusta la posición vertical */
    left: 54.5%; /* Ajusta la posición horizontal */
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    font-family: 'Be Vietnam', sans-serif;
    max-width: 100%;
    word-break: break-word;
    line-height: 1.3;
    padding: 5px;
}

/* Contenedor principal */
.elementor-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Ajuste en dispositivos móviles */
@media (max-width: 768px) {
    .elementor-container {
        padding: 0 10px;
    }
}

/* Márgenes en secciones */
.elementor-element-45ff1f07 {
    margin-top: 50px !important;
}

.elementor-element-45ff1f07:first-of-type {
    margin-top: 60px !important;
}

/* Botón centrado */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    width: 100%;
}

#downloadBtn {
    padding: 15px 30px;
    background-color: #FF853A;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#downloadBtn:hover {
    background-color: #E76C29;
}

/*NOTA*/

#recertificado-container {
    position: relative !important;
    display: inline-block;
    width: 100%;  /* Asegurar que tenga el mismo tamaño que la imagen */
    height: auto;
}

#nota-text {
    position: absolute !important;
    top: 18.3%;  /* Ajusta según sea necesario */
    left: 15.3%; /* Igual que #nombre-text */
    transform: translate(-50%, -50%); /* 📌 Centrarlo exactamente */
    font-size: inherit; 
    font-weight: bold;
    font-family: "Times New Roman", Times, serif;
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}


#nombre-text, #nota-text, #folio-text {
    user-select: none; /* Evita la selección del texto */
    pointer-events: none; /* Evita interacciones del usuario */
}


