/* =====================================================
   MENSAJE-CONFIRMACION.CSS - Estilos para mensaje de éxito
   ===================================================== */

/* ===== CONTENEDOR DEL MENSAJE DENTRO DEL FORMULARIO ===== */
.mensaje-confirmacion {
    background: var(--color-secundario);
    border: 2px solid var(--color-resaltado);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: none;
}

.mensaje-confirmacion.mostrar {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

/* Ocultar formulario cuando se muestra el mensaje */
.contacto-formulario.mensaje-enviado form {
    display: none;
}

/* ===== ÍCONO DE CHECK ===== */
.icono-check {
    width: 60px;
    height: 60px;
    background: var(--color-resaltado);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 30px;
    color: white;
    font-weight: bold;
    animation: checkBounce 0.6s ease-out;
}

@keyframes checkBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== TEXTO DEL MENSAJE ===== */
.mensaje-confirmacion h3 {
    color: var(--color-resaltado);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.mensaje-confirmacion p {
    color: var(--color-gris);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .mensaje-confirmacion {
        padding: 2rem 1.5rem;
        margin: 0 10px;
    }
    
    .icono-check {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .mensaje-confirmacion h3 {
        font-size: 1.3rem;
    }
    
    .mensaje-confirmacion p {
        font-size: 0.9rem;
    }
}