#title {
    font-size: 2rem;
    font-weight: bold;
    color: #2e7d32;
    text-align: center;
    margin-bottom: 20px;
}

#container-btn {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    justify-content: center;
    max-width: 600px;
    margin: auto;
}

#container-btn .btn,#btnSeleccionarBeneficio {
    background: #2e7d32;
    color: #ffffff;
    border: none;
    height: 90px; 
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: 800ms ease all;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#container-btn .btn:hover {
    background: #ffffff;
    color: #2e7d32;
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.1) translateY(-3px);
    transition: 400ms ease-in-out;
}

#container-btn .btn:nth-child(3) {
    grid-column: span 2;
    text-align: center;
}


#container-btn .btn:before,
#container-btn .btn:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 2px;
    width: 0;
    background: #2e7d32;
    transition: 400ms ease all;
}

#container-btn .btn:after {
    right: inherit;
    top: inherit;
    left: 0;
    bottom: 0;
}

#container-btn .btn:hover:before,
#container-btn .btn:hover:after {
    width: 100%;
    transition: 800ms ease all;
}

#firmaContainer {
    max-width: 600px; 
    margin: 0 auto;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, border 0.3s ease;
}

#firmaDigital {
    width: 100%; 
    height: 200px; 
    border: 2px dashed #9e9e9e;
    background-color: #f5f5f5; 
    border-radius: 5px;
    cursor: crosshair; 
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#firmaDigital:hover {
    border-color: #2e7d32;
    box-shadow: 0 0 10px rgba(46, 125, 50, 0.3); 
}
#firmaDigital::after {
    content: "Por favor, firme en el recuadro";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 14px;
    font-style: italic;
    text-align: center;
    opacity: 0.8;
    pointer-events: none;
}

.btn-danger#borrarFirma {
    padding: 8px 16px; 
    font-size: 14px;
    border-radius: 5px;
 
    transition: background-color 0.3s ease, transform 0.2s ease; 
}
.mt-2 {
    margin-top: 1.5rem !important;
}
.btn-danger#borrarFirma:hover {
    background-color: #b71c1c; 
    transform: scale(1.05); 
}


.btn-danger#borrarFirma:active {
    transform: scale(0.95); 
}

#firmaContainer {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#firmaDigital.drawing {
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4);
    }
    to {
        box-shadow: 0 0 0 10px rgba(46, 125, 50, 0);
    }
}

@media (max-width: 768px) {
    #container-btn {
        flex-direction: column;
        gap: 15px;
    }

    #container-btn .btn {
        width: 100%;
        height: 60px;
        font-size: 1rem;
    }

    #title {
        font-size: 1.8rem; 
    }
}
